Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I was thinking to do that, How do i list the classes in the session factory configuration. Commented Dec 25, 2010 at 15:14
  • Thanks for the update, I got this error now org.hibernate.AnnotationException: No identifier specified for entity: edu.acct.tsegay.model.User Commented Dec 25, 2010 at 15:37
  • 1
    I fixed the error above. I was using @NaturalId for the Identifier and I changed to @Id. now it is working fine. Commented Dec 25, 2010 at 15:43
  • And if you have configured the session facory in hibernate.cfg.xml, then add the mapping in here as well. Commented Dec 5, 2012 at 15:13