hibernate/hibernate-orm · error · UnsupportedMappingException
AttributeContainer [${className}] does not generic embeddabl
Error message
AttributeContainer [${className}] does not generic embeddables What it means
Error "AttributeContainer [${className}] does not generic embeddables" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/AttributeContainer.java:69
throw new UnsupportedMappingException(
"AttributeContainer [" + getClass().getName() + "] does not support identifiers"
);
}
default void applyVersionAttribute(SingularPersistentAttribute<J, ?> versionAttribute) {
throw new UnsupportedMappingException(
"AttributeContainer [" + getClass().getName() + "] does not support versions"
);
}
default void applyNaturalIdAttribute(PersistentAttribute<J, ?> versionAttribute) {
throw new UnsupportedMappingException(
"AttributeContainer [" + getClass().getName() + "] does not support natural ids"
);
}
default void addConcreteGenericAttribute(PersistentAttribute<J, ?> idAttribute) {
throw new UnsupportedMappingException(
"AttributeContainer [" + getClass().getName() + "] does not generic embeddables"
);
}
/**
* Called when configuration of the type is complete
*/
void finishUp();
}
}
View on GitHub (pinned to fad1729dce)
Solutions
- Avoid generic embeddable handling on this container; use a concrete embeddable type.
When it happens
Trigger: Thrown when a generic embeddable mapping is requested from an attribute container that does not support embeddables.
Common situations: See trigger scenarios.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/2e3962598ac4f5aa.
Report an issue: GitHub.