{"record":{"id":"281d36311cddab30","repo":"hibernate/hibernate-orm","slug":"unable-to-determine-attribute-nature-s-s-281d36","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/EmbeddableMappingTypeImpl.java","lineNumber":637,"sourceCode":"\t\t\t}\n\t\t\telse if ( subtype instanceof EntityType subentityType ) {\n\t\t\t\tattributeMapping = buildSingularAssociationAttributeMapping(\n\t\t\t\t\t\tbootPropertyDescriptor.getName(),\n\t\t\t\t\t\tvalueMapping.getNavigableRole().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\tsubentityType,\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\tif ( isPolymorphic() ) {\n\t\t\t\tfinal String declaringClass = bootDescriptor.getPropertyDeclaringClass( bootPropertyDescriptor );\n\t\t\t\tfor ( var entry : concreteEmbeddableBySubclass.entrySet() ) {\n\t\t\t\t\tif ( isDefinedInClassOrSuperclass( bootDescriptor, declaringClass, entry.getKey() ) ) {\n\t\t\t\t\t\tentry.getValue().declaredAttributes.set( attributeMapping.getStateArrayPosition() );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n","sourceCodeStart":619,"sourceCodeEnd":655,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java#L619-L655","documentation":"Error \"Unable to determine attribute nature : %s#%s\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown during embeddable mapping type initialization when an attribute's nature cannot be classified from its value mapping.","commonSituations":"See trigger scenarios.","solutions":["Fix the attribute mapping so it can be classified (basic/embedded/to-one/plural); remove conflicting or unsupported annotations from the embeddable 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"}