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 error in Java Netbeans
    via Stack Overflow by Miguel Bestia
    ,
  • HIbenate unable to run session
    via Stack Overflow by Meelan Lakhoo
    ,
    • org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.drinkupstream.heroes.Hero"/> at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1478) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390) at org.hibernate.cfg.Configuration.configure(Configuration.java:1310) at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:359)

    Users with the same issue

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