Hibernate : ids for this class must be manually assigned before calling save()

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:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days