From f8e2a4cda612a94ba286d1448015d9f6e584bf74 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 18 Sep 2021 16:18:49 +0200 Subject: [PATCH] added jpa entity generator --- templates/jpa-entity.java.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/jpa-entity.java.mustache b/templates/jpa-entity.java.mustache index af9a958..ec21a79 100644 --- a/templates/jpa-entity.java.mustache +++ b/templates/jpa-entity.java.mustache @@ -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}}