Header Ad

Wednesday, January 1, 2014

org.hibernate.AnnotationException: No identifier specified for entity:




This is simple mistake you might be making.
Do as following:

  1.  Got to the POJO class where you are seeing this error.
  2. Look for the property which is primary key of your database table, mostly Id etc.
  3. Add @Id annotation on the property of variable.
  4. Test your code again.



Remember:- Help more people by sharing this link, and you may comment if you have any suggestion.

No comments:

Post a Comment