Is it possible to make an attribute (not primary key) as a @GeneratedValue(strategy = GenerationType.AUTO)
?
I've tried that by putting this in my code, but it doesn't work.
@Column(name = "form_rg")
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer rg;
If not how can I deal that ?
Any help please ?