hibernate/hibernate-orm · error · TransformationException
Error transforming <property/> : {}
Error message
Error transforming <property/> : {} What it means
Error "Error transforming <property/> : {}" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java:2133
}
catch (Exception e) {
throw new TransformationException( "Error processing entity attributes : " + entityTypeInfo.getPersistentClass().getEntityName(), e, origin() );
}
}
private void transferBaseAttributes(
String roleBase,
List<?> hbmAttributeMappings,
ManagedTypeInfo managedTypeInfo,
JaxbAttributesContainer attributes) {
for ( Object hbmAttributeMapping : hbmAttributeMappings ) {
if ( hbmAttributeMapping instanceof JaxbHbmBasicAttributeType basic ) {
try {
final var propertyInfo = managedTypeInfo.propertyInfoMap().get( basic.getName() );
attributes.getBasicAttributes().add( transformBasicAttribute( basic, propertyInfo ) );
}
catch (Exception e) {
throw new TransformationException( "Error transforming <property/> : " + basic.getName(), e, origin() );
}
}
else if ( hbmAttributeMapping instanceof JaxbHbmCompositeAttributeType hbmComponent ) {
try {
final String componentRole = roleBase + "." + hbmComponent.getName();
final var componentTypeInfo = transformationState.getEmbeddableInfoByRole().get( componentRole );
final var jaxbEmbeddable = componentHandler.applyEmbeddable(
roleBase,
hbmComponent,
componentTypeInfo
);
final var embedded = componentHandler.transformEmbedded( jaxbEmbeddable, hbmComponent, componentTypeInfo );
transferAccess(
hbmComponent.getAccess(),
embedded::setAccess,
embedded::setAttributeAccessor
);
attributes.getEmbeddedAttributes().add( embedded );View on GitHub (pinned to fad1729dce)
Solutions
- Inspect the reported <property/> element in the hbm.xml for unsupported or malformed attributes (type, column, formula).
- Check the causal exception to find which aspect of the property failed to transform.
- Fix the property mapping (e.g. correct type name, column references) and retry.
When it happens
Trigger: The hbm.xml to mapping.xml transformer hits an unexpected structure.
Common situations: Converting legacy hbm.xml documents containing constructs the transformer does not handle.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/ce70b005a01bd028.
Report an issue: GitHub.