{"record":{"id":"2e9bf23e772e8a9b","repo":"hibernate/hibernate-orm","slug":"attributecontainer-classname-does-not-support-2e9bf2","errorCode":null,"errorMessage":"AttributeContainer [${className}] does not support versions","messagePattern":"AttributeContainer \\[(.+?)\\] does not support versions","errorType":"exception","errorClass":"UnsupportedMappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/AttributeContainer.java","lineNumber":57,"sourceCode":"\t\t\t\tEmbeddableDomainType<?> idClassType) {\n\t\t\tthrow new UnsupportedMappingException(\n\t\t\t\t\t\"AttributeContainer [\" + getClass().getName() + \"] does not support identifiers\"\n\t\t\t);\n\t\t}\n\n\t\t/**\n\t\t * todo (6.0) : we still need to implement this properly and the contract may change\n\t\t * \t\t- specifically I am not certain we will be able to re-use `SingularPersistentAttribute`\n\t\t * \t\tbecause of its dependence on declaring-type, etc that we may not be able to do\n\t\t */\n\t\tdefault void applyIdClassAttributes(Set<SingularPersistentAttribute<? super J, ?>> idClassAttributes) {\n\t\t\tthrow new UnsupportedMappingException(\n\t\t\t\t\t\"AttributeContainer [\" + getClass().getName() + \"] does not support identifiers\"\n\t\t\t);\n\t\t}\n\n\t\tdefault void applyVersionAttribute(SingularPersistentAttribute<J, ?> versionAttribute) {\n\t\t\tthrow new UnsupportedMappingException(\n\t\t\t\t\t\"AttributeContainer [\" + getClass().getName() + \"] does not support versions\"\n\t\t\t);\n\t\t}\n\n\t\tdefault void applyNaturalIdAttribute(PersistentAttribute<J, ?> versionAttribute) {\n\t\t\tthrow new UnsupportedMappingException(\n\t\t\t\t\t\"AttributeContainer [\" + getClass().getName() + \"] does not support natural ids\"\n\t\t\t);\n\t\t}\n\n\t\tdefault void addConcreteGenericAttribute(PersistentAttribute<J, ?> idAttribute) {\n\t\t\tthrow new UnsupportedMappingException(\n\t\t\t\t\t\"AttributeContainer [\" + getClass().getName() + \"] does not generic embeddables\"\n\t\t\t);\n\t\t}\n\n\t\t/**\n\t\t * Called when configuration of the type is complete","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/AttributeContainer.java#L39-L75","documentation":"Error \"AttributeContainer [${className}] does not support versions\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when version access is requested from an attribute container that does not support versioning.","commonSituations":"See trigger scenarios.","solutions":["Use an entity type (which supports @Version) instead of this container when version access is needed."],"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"}