{"record":{"id":"494065750f48a452","repo":"hibernate/hibernate-orm","slug":"support-for-plural-attributes-with-index-type-s","errorCode":null,"errorMessage":"Support for plural attributes with index type [%s] not yet implemented","messagePattern":"Support for plural attributes with index type \\[(.+?)\\] not yet implemented","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java","lineNumber":1419,"sourceCode":"\t\t\t\t\t\tassociatedEntity,\n\t\t\t\t\t\tcreationProcess\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tcreationProcess.registerInitializationCallback(\n\t\t\t\t\t\"PluralAttributeMapping( \" + bootValueMapping.getRole() + \") - index descriptor\",\n\t\t\t\t\t() -> indexDescriptor.finishInitialization(\n\t\t\t\t\t\t\tcollectionDescriptor,\n\t\t\t\t\t\t\tbootValueMapping,\n\t\t\t\t\t\t\tindexEntityType.getRHSUniqueKeyPropertyName(),\n\t\t\t\t\t\t\tcreationProcess\n\t\t\t\t\t)\n\t\t\t);\n\n\t\t\treturn indexDescriptor;\n\t\t}\n\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\"Support for plural attributes with index type [\" + bootMapKeyDescriptor + \"] not yet implemented\"\n\t\t);\n\t}\n\n\tprivate static CollectionPart interpretElement(\n\t\t\tCollection bootDescriptor,\n\t\t\tString tableExpression,\n\t\t\tCollectionPersister collectionDescriptor,\n\t\t\tString sqlAliasStem,\n\t\t\tMappingModelCreationProcess creationProcess) {\n\t\tfinal Value element = bootDescriptor.getElement();\n\n\t\tif ( element instanceof BasicValue basicElement ) {\n\t\t\tfinal var selectableMapping = SelectableMappingImpl.from(\n\t\t\t\t\ttableExpression,\n\t\t\t\t\tbasicElement.getSelectables().get( 0 ),\n\t\t\t\t\tbasicElement.getSelectables().get( 0 ).isFormula()\n\t\t\t\t\t\t\t? getCollectionPropertyPath( collectionDescriptor )","sourceCodeStart":1401,"sourceCodeEnd":1437,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java#L1401-L1437","documentation":"Error \"Support for plural attributes with index type [%s] not yet implemented\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when a plural attribute's index (list index or map key) has a Java type for which persistent index support is not implemented.","commonSituations":"See trigger scenarios.","solutions":["Use a supported index/key type for the collection (basic-typed map key or list index)."],"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"}