{"record":{"id":"0a14530b41318402","repo":"hibernate/hibernate-orm","slug":"mixed-inheritance-strategies-not-supported","errorCode":null,"errorMessage":"Mixed inheritance strategies not supported","messagePattern":"Mixed inheritance strategies not supported","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/EntityHierarchySourceImpl.java","lineNumber":366,"sourceCode":"\t}\n\n\t@Override\n\tpublic InheritanceType getHierarchyInheritanceType() {\n\t\treturn hierarchyInheritanceType;\n\t}\n\n\t@Override\n\tpublic RootEntitySourceImpl getRoot() {\n\t\treturn rootEntitySource;\n\t}\n\n\tpublic void processSubclass(SubclassEntitySourceImpl subclassEntitySource) {\n\t\tfinal InheritanceType inheritanceType = Helper.interpretInheritanceType( subclassEntitySource.jaxbEntityMapping() );\n\t\tif ( hierarchyInheritanceType == InheritanceType.NO_INHERITANCE ) {\n\t\t\thierarchyInheritanceType = inheritanceType;\n\t\t}\n\t\telse if ( hierarchyInheritanceType != inheritanceType ) {\n\t\t\tthrow new MappingException( \"Mixed inheritance strategies not supported\", subclassEntitySource.getOrigin() );\n\t\t}\n\n\t\tcollectedEntityNames.add( subclassEntitySource.getEntityNamingSource().getEntityName() );\n\t}\n\n\n\tprotected JaxbHbmRootEntityType entityElement() {\n\t\treturn rootEntitySource.jaxbEntityMapping();\n\t}\n\n\t@Override\n\tpublic IdentifierSource getIdentifierSource() {\n\t\treturn identifierSource;\n\t}\n\n\t@Override\n\tpublic VersionAttributeSource getVersionAttributeSource() {\n\t\treturn versionAttributeSource;","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/EntityHierarchySourceImpl.java#L348-L384","documentation":"Error \"Mixed inheritance strategies not supported\" thrown in hibernate/hibernate-orm.","triggerScenarios":"An hbm.xml / orm.xml mapping document violates a mapping rule during bootstrap.","commonSituations":"Legacy XML mappings with invalid combinations (column+formula, mixed inheritance, missing identifiers, bad extends references).","solutions":["Use a single inheritance strategy (table-per-class, joined, or union-subclass) throughout the entity hierarchy in the hbm.xml mappings."],"exampleFix":"Use a single inheritance strategy (table-per-class, joined, or union-subclass) throughout the entity hierarchy in the hbm.xml mappings.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}