added jpa entity generator

master
Niclas Thobaben 2021-09-18 16:18:49 +02:00
parent d43b2433ab
commit f8e2a4cda6
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ public class {{name}} {
? this.{{name}}.stream()
.map({{type.baseType}}::toModel)
.collect(Collectors.toList())
: Collections.emptyList());
: Collections.emptyList()
);
{{/type.isCollection}}{{^type.isCollection}}
{{modelName}}.set{{namePascalCase}}(this.{{name}} != null ? this.{{name}}.toModel() : null);
{{/type.isCollection}}