While i was working on JPA, I have encountered the following exception
Hibernate : ids for this class must be manually assigned before calling save()
I was trying to create a Entity class, with a primary key identified by the annotation @id.
This issue was fixed by @GeneratedValue(strategy = GenerationType.IDENTITY)
No comments:
Post a Comment