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}};