{"record":{"id":"5c180374bec82129","repo":"hibernate/hibernate-orm","slug":"unable-to-determine-attribute-nature-s-s","errorCode":null,"errorMessage":"Unable to determine attribute nature : %s#%s","messagePattern":"Unable to determine attribute nature : (.+?)#(.+?)","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java","lineNumber":481,"sourceCode":"\t\t\t}\n\t\t\telse if ( subtype instanceof EntityType ) {\n\t\t\t\tattributeMapping = MappingModelCreationHelper.buildSingularAssociationAttributeMapping(\n\t\t\t\t\t\tbootPropertyDescriptor.getName(),\n\t\t\t\t\t\tnavigableRole.append( bootPropertyDescriptor.getName() ),\n\t\t\t\t\t\tattributeIndex,\n\t\t\t\t\t\tattributeIndex,\n\t\t\t\t\t\tbootPropertyDescriptor,\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tcreationProcess.getEntityPersister( bootDescriptor.getOwner().getEntityName() ),\n\t\t\t\t\t\t(EntityType) subtype,\n\t\t\t\t\t\trepresentationStrategy.resolvePropertyAccess( bootPropertyDescriptor ),\n\t\t\t\t\t\tcompositeType.getCascadeStyle( attributeIndex ),\n\t\t\t\t\t\tcreationProcess\n\t\t\t\t);\n\t\t\t\tcolumnPosition += bootPropertyDescriptor.getColumnSpan();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new MappingException(\n\t\t\t\t\t\tString.format(\n\t\t\t\t\t\t\t\tLocale.ROOT,\n\t\t\t\t\t\t\t\t\"Unable to determine attribute nature : %s#%s\",\n\t\t\t\t\t\t\t\tbootDescriptor.getOwner().getEntityName(),\n\t\t\t\t\t\t\t\tbootPropertyDescriptor.getName()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tattributeConsumer.accept( attributeMapping );\n\n\t\t\tattributeIndex++;\n\t\t}\n\n\t\tcompletionCallback.success();\n\t\treturn true;\n\t}\n","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java#L463-L499","documentation":"Error \"Unable to determine attribute nature : %s#%s\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown during metamodel building when an embeddable attribute's nature (basic, to-one, plural, any) cannot be determined from its mapping.","commonSituations":"See trigger scenarios.","solutions":["Check the mapping of the named attribute: it must be resolvable as basic, embedded, to-one, or plural. Fix conflicting annotations on the attribute."],"exampleFix":null,"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"}