org.hibernate.MappingException: Following superclasses referenced in extends not found: EntityHasName

Hibernate JIRA | Stefan Wachter | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The following mapping yields an exception: <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class lazy="true" entity-name="EntityHasName" table="F5_ENTITY_HASNAME"> <id name="id" column="ID" type="long"> <generator class="native"/> </id> <property name="attrName" type="string"> <column name="NAME"/> </property> </class> <joined-subclass lazy="true" entity-name="EntityCompany" table="F5_ENTITY_COMPANY" extends="EntityHasName"> <key column="REF_ID"/> </joined-subclass> </hibernate-mapping> org.hibernate.MappingException: Following superclasses referenced in extends not found: EntityHasName at org.hibernate.cfg.Configuration.processExtendsQueue(Configuration.java:918) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:852) at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:586) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:64) at org.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:210) at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:136) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

    Hibernate JIRA | 1 decade ago | Stefan Wachter
    org.hibernate.MappingException: Following superclasses referenced in extends not found: EntityHasName
  2. 0

    The following mapping yields an exception: <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class lazy="true" entity-name="EntityHasName" table="F5_ENTITY_HASNAME"> <id name="id" column="ID" type="long"> <generator class="native"/> </id> <property name="attrName" type="string"> <column name="NAME"/> </property> </class> <joined-subclass lazy="true" entity-name="EntityCompany" table="F5_ENTITY_COMPANY" extends="EntityHasName"> <key column="REF_ID"/> </joined-subclass> </hibernate-mapping> org.hibernate.MappingException: Following superclasses referenced in extends not found: EntityHasName at org.hibernate.cfg.Configuration.processExtendsQueue(Configuration.java:918) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:852) at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:586) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:64) at org.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:210) at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:136) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

    Hibernate JIRA | 1 decade ago | Stefan Wachter
    org.hibernate.MappingException: Following superclasses referenced in extends not found: EntityHasName

    Root Cause Analysis

    1. org.hibernate.MappingException

      Following superclasses referenced in extends not found: EntityHasName

      at org.hibernate.cfg.Configuration.processExtendsQueue()
    2. Hibernate
      SchemaExportTask.execute
      1. org.hibernate.cfg.Configuration.processExtendsQueue(Configuration.java:918)
      2. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:852)
      3. org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:586)
      4. org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:64)
      5. org.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:210)
      6. org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:136)
      6 frames
    3. Ant
      Main.startAnt
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      2. org.apache.tools.ant.Task.perform(Task.java:364)
      3. org.apache.tools.ant.Target.execute(Target.java:341)
      4. org.apache.tools.ant.Target.performTasks(Target.java:369)
      5. org.apache.tools.ant.Project.executeTarget(Project.java:1214)
      6. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
      7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      8. org.apache.tools.ant.Task.perform(Task.java:364)
      9. org.apache.tools.ant.Target.execute(Target.java:341)
      10. org.apache.tools.ant.Target.performTasks(Target.java:369)
      11. org.apache.tools.ant.Project.executeTarget(Project.java:1214)
      12. org.apache.tools.ant.Project.executeTargets(Project.java:1062)
      13. org.apache.tools.ant.Main.runBuild(Main.java:673)
      14. org.apache.tools.ant.Main.startAnt(Main.java:188)
      14 frames
    4. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
      2 frames