hibernate/hibernate-orm · error · TransformationException

Error processing entity attributes : {}

Error message

Error processing entity attributes : {}

What it means

Error "Error processing entity attributes : {}" thrown in hibernate/hibernate-orm.

Source

Thrown at hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java:2117

			// if we can't load the class, skip transient generation
		}
	}

	private void transferBaseEntityAttributes(
			EntityInfo hbmEntity,
			JaxbEntityImpl mappingEntity,
			EntityTypeInfo entityTypeInfo) {
		try {
			mappingEntity.setAttributes( new JaxbAttributesContainerImpl() );
			transferBaseAttributes(
					entityTypeInfo.getPersistentClass().getEntityName(),
					hbmEntity.getAttributes(),
					entityTypeInfo,
					mappingEntity.getAttributes()
			);
		}
		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() );
				}
			}

View on GitHub (pinned to fad1729dce)

Solutions

  1. Check the wrapped exception for the specific attribute of the entity that failed transformation.
  2. Validate the hbm.xml entity definition against the expected attributes (id, property, associations) before transforming.
  3. Simplify or correct the offending attribute mapping and re-run the transformation.

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/08342b9d0dcd50d9. Report an issue: GitHub.