|
1 | | - |
2 | 1 | <#-- /** default constructor */ --> |
3 | 2 | public ${pojo.getDeclarationName()}() { |
4 | 3 | } |
| 4 | +<#if pojo.needsMinimalConstructor()><#-- /** minimal constructor */ --> |
5 | 5 |
|
6 | | -<#if pojo.needsMinimalConstructor()> <#-- /** minimal constructor */ --> |
7 | 6 | public ${pojo.getDeclarationName()}(${c2j.asParameterList(pojo.getPropertyClosureForMinimalConstructor(), jdk5, pojo)}) { |
8 | | -<#if pojo.isSubclass() && !pojo.getPropertyClosureForSuperclassMinimalConstructor().isEmpty()> |
9 | | - super(${c2j.asArgumentList(pojo.getPropertyClosureForSuperclassMinimalConstructor())}); |
10 | | -</#if> |
11 | | -<#list pojo.getPropertiesForMinimalConstructor() as field> |
| 7 | + <#if pojo.isSubclass() && !pojo.getPropertyClosureForSuperclassMinimalConstructor().isEmpty()> |
| 8 | + super(${c2j.asArgumentList(pojo.getPropertyClosureForSuperclassMinimalConstructor())}); |
| 9 | + </#if> |
| 10 | + <#list pojo.getPropertiesForMinimalConstructor() as field> |
12 | 11 | this.${c2j.keyWordCheck(field.name)} = ${c2j.keyWordCheck(field.name)}; |
13 | | -</#list> |
| 12 | + </#list> |
14 | 13 | } |
15 | | -</#if> |
16 | | -<#if pojo.needsFullConstructor()> |
17 | | -<#-- /** full constructor */ --> |
18 | | - public ${pojo.getDeclarationName()}(${c2j.asParameterList(pojo.getPropertyClosureForFullConstructor(), jdk5, pojo)}) { |
19 | | -<#if pojo.isSubclass() && !pojo.getPropertyClosureForSuperclassFullConstructor().isEmpty()> |
20 | | - super(${c2j.asArgumentList(pojo.getPropertyClosureForSuperclassFullConstructor())}); |
21 | 14 | </#if> |
22 | | -<#list pojo.getPropertiesForFullConstructor() as field> |
23 | | - this.${c2j.keyWordCheck(field.name)} = ${c2j.keyWordCheck(field.name)}; |
24 | | -</#list> |
| 15 | +<#if pojo.needsFullConstructor()><#-- /** full constructor */ --> |
| 16 | + |
| 17 | + public ${pojo.getDeclarationName()}(${c2j.asParameterList(pojo.getPropertyClosureForFullConstructor(), jdk5, pojo)}) { |
| 18 | + <#if pojo.isSubclass() && !pojo.getPropertyClosureForSuperclassFullConstructor().isEmpty()> |
| 19 | + super(${c2j.asArgumentList(pojo.getPropertyClosureForSuperclassFullConstructor())}); |
| 20 | + </#if> |
| 21 | + <#list pojo.getPropertiesForFullConstructor() as field> |
| 22 | + this.${c2j.keyWordCheck(field.name)} = ${c2j.keyWordCheck(field.name)}; |
| 23 | + </#list> |
25 | 24 | } |
26 | | -</#if> |
| 25 | +</#if> |
0 commit comments