{"record":{"id":"9ddc14633856512d","repo":"hibernate/hibernate-orm","slug":"not-all-named-supertypes-extends-were-found-t","errorCode":null,"errorMessage":"Not all named supertypes (extends) were found : <toBeLinkedQueue.keySet()>","messagePattern":"Not all named supertypes \\(extends\\) were found : <toBeLinkedQueue\\.keySet\\(\\)>","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/EntityHierarchyBuilder.java","lineNumber":70,"sourceCode":"\t *\n\t * @return The built hierarchies\n\t *\n\t * @throws HibernateException Indicates subclass mappings still waiting to be linked to their super types\n\t */\n\tpublic List<EntityHierarchySourceImpl> buildHierarchies() throws HibernateException {\n\t\tif ( toBeLinkedQueue != null && !toBeLinkedQueue.isEmpty() ) {\n\t\t\tif ( BOOT_LOGGER.isDebugEnabled() ) {\n\t\t\t\tfor ( var waitingListEntry : toBeLinkedQueue.entrySet() ) {\n\t\t\t\t\tfor ( var waitingEntry : waitingListEntry.getValue() ) {\n\t\t\t\t\t\tBOOT_LOGGER.entitySupertypeExtendsNotFound(\n\t\t\t\t\t\t\t\twaitingListEntry.getKey(),\n\t\t\t\t\t\t\t\twaitingEntry.sourceMappingDocument.getOrigin(),\n\t\t\t\t\t\t\t\twaitingEntry.sourceMappingDocument.determineEntityName( waitingEntry.jaxbSubEntityMapping )\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow new HibernateException(\n\t\t\t\t\t\"Not all named supertypes (extends) were found : \" + toBeLinkedQueue.keySet()\n\t\t\t);\n\t\t}\n\n\t\treturn entityHierarchyList;\n\t}\n\n\t/**\n\t * Called for each mapping document.\n\t *\n\t * @param mappingDocument The {@code hbm.xml} document to index\n\t */\n\tpublic void indexMappingDocument(MappingDocument mappingDocument) {\n\t\tBOOT_LOGGER.indexingMappingDocumentForHierarchyOrdering( String.valueOf( mappingDocument.getOrigin() ) );\n\t\tfinal var mappingBinding = mappingDocument.getDocumentRoot();\n\n\t\t// iterate all root class definitions at the hibernate-mapping level\n\t\tfor ( var jaxbRootEntity : mappingBinding.getClazz() ) {","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/EntityHierarchyBuilder.java#L52-L88","documentation":"Error \"Not all named supertypes (extends) were found : <toBeLinkedQueue.keySet()>\" 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":["Correct the extends attribute in the hbm.xml <subclass/>/<joined-subclass/> so it names an entity mapped earlier in the same or an already-processed document."],"exampleFix":"Correct the extends attribute in the hbm.xml <subclass/>/<joined-subclass/> so it names an entity mapped earlier in the same or an already-processed document.","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"}