{"record":{"id":"08342b9d0dcd50d9","repo":"hibernate/hibernate-orm","slug":"error-processing-entity-attributes","errorCode":null,"errorMessage":"Error processing entity attributes : {}","messagePattern":"Error processing entity attributes : (.+?)","errorType":"exception","errorClass":"TransformationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java","lineNumber":2117,"sourceCode":"\t\t\t// if we can't load the class, skip transient generation\n\t\t}\n\t}\n\n\tprivate void transferBaseEntityAttributes(\n\t\t\tEntityInfo hbmEntity,\n\t\t\tJaxbEntityImpl mappingEntity,\n\t\t\tEntityTypeInfo entityTypeInfo) {\n\t\ttry {\n\t\t\tmappingEntity.setAttributes( new JaxbAttributesContainerImpl() );\n\t\t\ttransferBaseAttributes(\n\t\t\t\t\tentityTypeInfo.getPersistentClass().getEntityName(),\n\t\t\t\t\thbmEntity.getAttributes(),\n\t\t\t\t\tentityTypeInfo,\n\t\t\t\t\tmappingEntity.getAttributes()\n\t\t\t);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new TransformationException( \"Error processing entity attributes : \" + entityTypeInfo.getPersistentClass().getEntityName(), e, origin() );\n\t\t}\n\t}\n\n\tprivate void transferBaseAttributes(\n\t\t\tString roleBase,\n\t\t\tList<?> hbmAttributeMappings,\n\t\t\tManagedTypeInfo managedTypeInfo,\n\t\t\tJaxbAttributesContainer attributes) {\n\t\tfor ( Object hbmAttributeMapping : hbmAttributeMappings ) {\n\t\t\tif ( hbmAttributeMapping instanceof JaxbHbmBasicAttributeType basic ) {\n\t\t\t\ttry {\n\t\t\t\t\tfinal var propertyInfo = managedTypeInfo.propertyInfoMap().get( basic.getName() );\n\t\t\t\t\tattributes.getBasicAttributes().add( transformBasicAttribute( basic, propertyInfo ) );\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tthrow new TransformationException( \"Error transforming <property/> : \" + basic.getName(), e, origin() );\n\t\t\t\t}\n\t\t\t}","sourceCodeStart":2099,"sourceCodeEnd":2135,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java#L2099-L2135","documentation":"Catch-all wrapper around transferBaseEntityAttributes: any exception thrown while transferring an hbm entity's attribute set into the new mapping model is rethrown with the entity name for context. The root cause (in the cause chain) is the actual attribute-processing failure.","triggerScenarios":"The hbm.xml to mapping.xml transformer hits an unexpected structure.","commonSituations":"Converting legacy hbm.xml documents containing constructs the transformer does not handle.","solutions":["Check the wrapped exception for the specific attribute of the entity that failed transformation.","Validate the hbm.xml entity definition against the expected attributes (id, property, associations) before transforming.","Simplify or correct the offending attribute mapping and re-run the transformation."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}