File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
generator-web/src/main/resources/templates/code-generator Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import java.util.List;
9
9
*/
10
10
@Data
11
11
public class ${classInfo.className} implements Serializable {
12
+
12
13
private static final long serialVersionUID = 1L;
13
14
14
15
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0 >
@@ -23,4 +24,4 @@ public class ${classInfo.className} implements Serializable {
23
24
}
24
25
</#if >
25
26
26
- }
27
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ import java.util.List;
12
12
@Data
13
13
@Table(name="${classInfo.tableName} ")
14
14
public class ${classInfo.className} implements Serializable {
15
+
15
16
private static final long serialVersionUID = 1L;
17
+
16
18
@Id
17
19
@GeneratedValue
18
20
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0 >
@@ -27,4 +29,4 @@ public class ${classInfo.className} implements Serializable {
27
29
}
28
30
</#if >
29
31
30
- }
32
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import java.util.List;
7
7
* @author ${authorName} ${.now?string('yyyy-MM-dd') }
8
8
*/
9
9
public class ${classInfo.className} implements Serializable {
10
+
10
11
private static final long serialVersionUID = 1L;
11
12
12
13
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0 >
@@ -34,4 +35,4 @@ public class ${classInfo.className} implements Serializable {
34
35
35
36
</#list >
36
37
</#if >
37
- }
38
+ }
You can’t perform that action at this time.
0 commit comments