mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2025-12-26 05:48:33 +08:00
Merge pull request #60 from gaohanghang/master
更新实体类模板,将 serialVersionUID 所在行的代码换行,使代码更加美观
This commit is contained in:
commit
f746461188
@ -9,6 +9,7 @@ import java.util.List;
|
||||
*/
|
||||
@Data
|
||||
public class ${classInfo.className} implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
@ -23,4 +24,4 @@ public class ${classInfo.className} implements Serializable {
|
||||
}
|
||||
</#if>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,9 @@ import java.util.List;
|
||||
@Data
|
||||
@Table(name="${classInfo.tableName}")
|
||||
public class ${classInfo.className} implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
@ -27,4 +29,4 @@ public class ${classInfo.className} implements Serializable {
|
||||
}
|
||||
</#if>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import java.util.List;
|
||||
* @author ${authorName} ${.now?string('yyyy-MM-dd')}
|
||||
*/
|
||||
public class ${classInfo.className} implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
@ -34,4 +35,4 @@ public class ${classInfo.className} implements Serializable {
|
||||
|
||||
</#list>
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user