Header Ad

Wednesday, January 1, 2014

org.hibernate.MappingException: Unknown entity:

I must tell you that don't give up by seeing such error, you might get frustrated initially but hold your emotions these errors will help you to learn more. 


Now what you should do? Check below steps

  1. Open your POJO classes which recently you have created.
  2. Look for annotation @Entity at class level.
  3. You must be missing it now add it there.
  4. Run 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