SyntaxFix
Write A Post
Hire A Developer
Questions
Using MySQL, only this approach was working for me:
@Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Long id;
The other 2 approaches stated by Pascal in his answer were not working for me.