From bcd1edd47c42891621fadaa192c656f082be2886 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 18 Sep 2021 14:01:41 +0200 Subject: [PATCH] common: added jpa_sql attribute to user model --- templates/jpa-entity.java.mustache | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/jpa-entity.java.mustache b/templates/jpa-entity.java.mustache index 4076c67..8ffa56d 100644 --- a/templates/jpa-entity.java.mustache +++ b/templates/jpa-entity.java.mustache @@ -35,8 +35,9 @@ public class {{name}} { {{#fields}} {{#description}}/** {{.}} **/{{/description}} - {{#isPkey}}@Id{{/isPkey}} - {{#isCollection}}@OneToMany{{/isCollection}} + {{#isPkey}} + @Id{{/isPkey}}{{#isCollection}} + @OneToMany{{/isCollection}} @Column(nullable = {{nullable}}) private {{{type.name}}} {{name}};