added jpa entity generator
parent
3b93857844
commit
d780ed3551
|
@ -44,8 +44,8 @@ public class {{name}} {
|
|||
{{#description}}/** {{.}} **/{{/description}}{{#isPkey}}
|
||||
@Id{{#id_generator}}
|
||||
@GeneratedValue({{#name}}generator = "{{.}}"{{/name}}){{#strategy}}
|
||||
@GenericGenerator(name = "{{name}}", strategy = "{{.}}"){{/strategy}}
|
||||
{{#id_type}}@Type(type = "{{.}}"){{/id_type}}{{/id_generator}}{{/isPkey}}{{#type.isCollection}}
|
||||
@GenericGenerator(name = "{{name}}", strategy = "{{.}}"){{/strategy}}{{#id_type}}
|
||||
@Type(type = "{{.}}"){{/id_type}}{{/id_generator}}{{/isPkey}}{{#type.isCollection}}
|
||||
@OneToMany{{/type.isCollection}}
|
||||
@Column(
|
||||
nullable = {{nullable}},
|
||||
|
|
Loading…
Reference in New Issue