Home  >  Forum  >  Hibernate
Post New Query

org.hibernate.AnnotationException: No identifier specified for entity



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)





Replied on May 19, 2013
The entity must have @Id or @EmbeddedId

Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us