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:

 My Attempt to learn AI  GPT Generative Pretrained Transformer Created by Google in 2017 with the publication of the paper "Attention ...

Popular in last 30 days