SyntaxFix
Write A Post
Hire A Developer
Questions
if you use to generate the id = GenerationType.AUTO strategy in your entity.
id = GenerationType.AUTO
Replaces user.setId (1) by user.setId (null), and the problem is solved.
user.setId (1)
user.setId (null)