org.hibernate.MappingException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • hibernate properties not found
    via Stack Overflow by Samprity Kashyap
    ,
  • AppFuse - Dev - Named SQL query in Maven
    via by Unknown author,
  • Hibernate set up
    via Stack Overflow by Vivek Shankar
    ,
  • HIbenate unable to run session
    via Stack Overflow by Meelan Lakhoo
    ,
    • org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.model.User"/> at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1606) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514) at org.hibernate.cfg.Configuration.configure(Configuration.java:1434) at org.hibernate.cfg.Configuration.configure(Configuration.java:1420) at com.sample.HibernateUtil.configureSessionFactory(HibernateUtil.java:26) at com.sample.HibernateUtil.<clinit>(HibernateUtil.java:20) at com.sample.App.checkUser(App.java:34)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,