org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.drinkupstream.heroes.Hero"/>

Hibernate JIRA | Jared Warren | 1 decade ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="entities.Employee"/>

    Stack Overflow | 10 months ago | Harshit
    org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="entities.Employee"/>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.MappingException

      An AnnotationConfiguration instance is required to use <mapping class="com.drinkupstream.heroes.Hero"/>

      at org.hibernate.cfg.Configuration.parseMappingElement()
    2. Hibernate
      SchemaExport.main
      1. org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1478)
      2. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
      3. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
      4. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
      5. org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
      6. org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:359)
      6 frames