{"record":{"id":"2e3962598ac4f5aa","repo":"hibernate/hibernate-orm","slug":"attributecontainer-classname-does-not-generic","errorCode":null,"errorMessage":"AttributeContainer [${className}] does not generic embeddables","messagePattern":"AttributeContainer \\[(.+?)\\] does not generic embeddables","errorType":"exception","errorClass":"UnsupportedMappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/AttributeContainer.java","lineNumber":69,"sourceCode":"\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\n\t\t */\n\t\tvoid finishUp();\n\t}\n}\n","sourceCodeStart":51,"sourceCodeEnd":80,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/AttributeContainer.java#L51-L80","documentation":"Error \"AttributeContainer [${className}] does not generic embeddables\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when a generic embeddable mapping is requested from an attribute container that does not support embeddables.","commonSituations":"See trigger scenarios.","solutions":["Avoid generic embeddable handling on this container; use a concrete embeddable type."],"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"}