Home  >  Forum  >  Hibernate
Post New Query

org.hibernate.AnnotationException: No identifier specified for entity


joined on
May 11,2013
Asked on May 19,2013
Hi Friends,
Any clue for below error.

org.hibernate.AnnotationException: No identifier specified for entity
at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:272)
at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:227)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:712)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)


joined on
March 18,2013
Replied on May 19,2013

The entity must have @Id or @EmbeddedId

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us