added jpa entity generator
This commit is contained in:
parent
cae512ded0
commit
66c3f7be5b
|
@ -59,7 +59,7 @@ public class {{name}} {
|
||||||
{{modelType}} {{modelName}} = new {{modelType}}();
|
{{modelType}} {{modelName}} = new {{modelType}}();
|
||||||
|
|
||||||
{{#fields}}
|
{{#fields}}
|
||||||
{{#isRecord}}{{type.isCollection}}
|
{{#isRecord}}{{#type.isCollection}}
|
||||||
{{modelName}}.set{{namePascalCase}}(this.{{name}} != null ? this.{{name}}.stream().map({{type.name}}::toModel).collect(Collectors.toList()) : Collections.emptyList());
|
{{modelName}}.set{{namePascalCase}}(this.{{name}} != null ? this.{{name}}.stream().map({{type.name}}::toModel).collect(Collectors.toList()) : Collections.emptyList());
|
||||||
{{/type.isCollection}}{{^type.isCollection}}
|
{{/type.isCollection}}{{^type.isCollection}}
|
||||||
{{modelName}}.set{{namePascalCase}}(this.{{name}} != null ? this.{{name}}.toModel() : null);
|
{{modelName}}.set{{namePascalCase}}(this.{{name}} != null ? this.{{name}}.toModel() : null);
|
||||||
|
|
Loading…
Reference in a new issue