mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2025-12-26 05:48:33 +08:00
为实体类生成添加显示的默认构造方法
This commit is contained in:
parent
6fb2cbae63
commit
f65fdcaabf
@ -19,6 +19,8 @@ public class ${classInfo.className} implements Serializable {
|
||||
private ${fieldItem.fieldClass} ${fieldItem.fieldName};
|
||||
|
||||
</#list>
|
||||
public ${classInfo.className}() {
|
||||
}
|
||||
</#if>
|
||||
|
||||
}
|
||||
@ -23,6 +23,8 @@ public class ${classInfo.className} implements Serializable {
|
||||
private ${fieldItem.fieldClass} ${fieldItem.fieldName};
|
||||
|
||||
</#list>
|
||||
public ${classInfo.className}() {
|
||||
}
|
||||
</#if>
|
||||
|
||||
}
|
||||
@ -20,6 +20,9 @@ public class ${classInfo.className} implements Serializable {
|
||||
</#if>
|
||||
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
public ${classInfo.className}() {
|
||||
}
|
||||
|
||||
<#list classInfo.fieldList as fieldItem>
|
||||
public ${fieldItem.fieldClass} get${fieldItem.fieldName?cap_first}() {
|
||||
return ${fieldItem.fieldName};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user