diff --git a/templates/jpa-entity.java.mustache b/templates/jpa-entity.java.mustache index bbaf7c2..94cd3db 100644 --- a/templates/jpa-entity.java.mustache +++ b/templates/jpa-entity.java.mustache @@ -40,9 +40,9 @@ public class {{name}} { {{#fields}} {{#description}}/** {{.}} **/{{/description}}{{#isPkey}} @Id{{/isPkey}}{{#id_generator}} - @GeneratedValue({{#name}}generator = {{.}}{{/name}}){{#strategy}} - @GenericGenerator(name = {{name}}, strategy = {{.}}){{/strategy}}{{#type}} - @Type(type = {{.}}){{/type}}{{/id_generator}}{{#type.isCollection}} + @GeneratedValue({{#name}}generator = "{{.}}"{{/name}}){{#strategy}} + @GenericGenerator(name = "{{name}}", strategy = "{{.}}"){{/strategy}}{{#type}} + @Type(type = "{{.}}"){{/type}}{{/id_generator}}{{#type.isCollection}} @OneToMany{{/type.isCollection}} @Column(nullable = {{nullable}}, unique = {{unique}}){{#isEnum}} @Enumerated(EnumType.STRING){{/isEnum}}{{#updateTimestamp}}