Thursday, 17 January 2013

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

No comments:

Post a Comment

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...