common: added jpa_sql attribute to user model

master
Niclas Thobaben 2021-09-18 14:01:41 +02:00
parent 0628fa454a
commit bcd1edd47c
1 changed files with 3 additions and 2 deletions

View File

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