@@ -32,8 +32,15 @@ public void defaults(RecipeSpec spec) {
32
32
spec
33
33
.recipeFromResources ("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0" )
34
34
.parser (JavaParser .fromJavaVersion ()
35
- .classpath ("spring-context" , "spring-data-jpa" , "spring-web" ,
36
- "spring-boot" , "spring-core" , "persistence-api" , "validation-api" , "xml.bind-api" ));
35
+ .classpath (
36
+ "spring-context" ,
37
+ "spring-data-jpa" ,
38
+ "spring-web" ,
39
+ "spring-boot" ,
40
+ "spring-core" ,
41
+ "persistence-api" ,
42
+ "validation-api" ,
43
+ "xml.bind-api" ));
37
44
}
38
45
39
46
@ DocumentExample
@@ -50,18 +57,18 @@ void xmlBindMissing() {
50
57
<groupId>org.springframework.samples</groupId>
51
58
<artifactId>spring-petclinic</artifactId>
52
59
<version>2.7.3</version>
53
-
60
+
54
61
<parent>
55
62
<groupId>org.springframework.boot</groupId>
56
63
<artifactId>spring-boot-starter-parent</artifactId>
57
64
<version>2.7.3</version>
58
65
</parent>
59
66
<name>petclinic</name>
60
-
67
+
61
68
<properties>
62
69
<java.version>1.8</java.version>
63
70
</properties>
64
-
71
+
65
72
<dependencies>
66
73
<dependency>
67
74
<groupId>org.springframework.boot</groupId>
@@ -84,18 +91,18 @@ void xmlBindMissing() {
84
91
<groupId>org.springframework.samples</groupId>
85
92
<artifactId>spring-petclinic</artifactId>
86
93
<version>2.7.3</version>
87
-
94
+
88
95
<parent>
89
96
<groupId>org.springframework.boot</groupId>
90
97
<artifactId>spring-boot-starter-parent</artifactId>
91
98
<version>3.0.13</version>
92
99
</parent>
93
100
<name>petclinic</name>
94
-
101
+
95
102
<properties>
96
103
<java.version>17</java.version>
97
104
</properties>
98
-
105
+
99
106
<dependencies>
100
107
<dependency>
101
108
<groupId>jakarta.xml.bind</groupId>
@@ -184,6 +191,8 @@ public void setName(String name) {
184
191
@Table(name = "specialties")
185
192
public class Specialty implements Serializable {
186
193
194
+ private static final long serialVersionUID = 1;
195
+
187
196
@Id
188
197
@GeneratedValue(strategy = GenerationType.IDENTITY)
189
198
private Integer id;
@@ -353,6 +362,8 @@ public void setLastName(String lastName) {
353
362
@Table(name = "vets")
354
363
public class Vet implements Serializable {
355
364
365
+ private static final long serialVersionUID = 1;
366
+
356
367
@Id
357
368
@GeneratedValue(strategy = GenerationType.IDENTITY)
358
369
private Integer id;
0 commit comments