{"record":{"id":"2179ff6824cf69e0","repo":"hibernate/hibernate-orm","slug":"assignment-referred-to-column-of-a-joined-associat-2179ff","errorCode":null,"errorMessage":"Assignment referred to column of a joined association: ${columnReference}","messagePattern":"Assignment referred to column of a joined association: (.+?)","errorType":"exception","errorClass":"SemanticException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/inline/InlineUpdateHandler.java","lineNumber":626,"sourceCode":"\t\t\tBiConsumer<String, TableReference> consumer) {\n\t\tconsumer.accept( tableReference.getIdentificationVariable(), tableReference );\n\t}\n\n\tprivate void collectTableReference(\n\t\t\tTableReferenceJoin tableReferenceJoin,\n\t\t\tBiConsumer<String, TableReference> consumer) {\n\t\tcollectTableReference( tableReferenceJoin.getJoinedTableReference(), consumer );\n\t}\n\n\tprivate TableReference resolveTableReference(\n\t\t\tColumnReference columnReference,\n\t\t\tMap<String, TableReference> tableReferenceByAlias) {\n\t\tfinal TableReference tableReferenceByQualifier = tableReferenceByAlias.get( columnReference.getQualifier() );\n\t\tif ( tableReferenceByQualifier != null ) {\n\t\t\treturn tableReferenceByQualifier;\n\t\t}\n\n\t\tthrow new SemanticException( \"Assignment referred to column of a joined association: \" + columnReference );\n\t}\n\n\tprivate NamedTableReference resolveUnionTableReference(\n\t\t\tTableReference tableReference,\n\t\t\tString tableExpression) {\n\t\tif ( tableReference instanceof UnionTableReference ) {\n\t\t\treturn new NamedTableReference(\n\t\t\t\t\ttableExpression,\n\t\t\t\t\ttableReference.getIdentificationVariable(),\n\t\t\t\t\ttableReference.isOptional()\n\t\t\t);\n\t\t}\n\t\treturn (NamedTableReference) tableReference;\n\t}\n}\n","sourceCodeStart":608,"sourceCodeEnd":642,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/inline/InlineUpdateHandler.java#L608-L642","documentation":"Error \"Assignment referred to column of a joined association: ${columnReference}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"An UPDATE/INSERT assignment targets columns that cannot be handled by the mutation strategy.","commonSituations":"Bulk HQL update/insert statements assigning columns spread across multiple tables or columns of joined associations.","solutions":["The UPDATE assignment targets a column of a joined association, which the inline update handler does not support.","Update the joined table separately or restructure the mapping."],"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"}