org.hibernate.mappingexception unknown entity

Problem exception :

org.hibernate.mappingexception unknown entity


Solution:

Your entity is not correctly annotated, you must use the correct annotation .Check your imports.

Correct:
@javax.persistence.Entity
Wrong:
 @org.hibernate.annotations.entity

134 total views, no views today