{"record":{"id":"f697773f78eaf3a9","repo":"hibernate/hibernate-orm","slug":"unable-to-determine-tablereference-s-for-s-f69777","errorCode":null,"errorMessage":"Unable to determine TableReference (`%s`) for `%s`","messagePattern":"Unable to determine TableReference \\(`(.+?)`\\) for `(.+?)`","errorType":"exception","errorClass":"UnknownTableReferenceException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/MappedByTableGroup.java","lineNumber":128,"sourceCode":"\t}\n\n\t@Override\n\tpublic List<TableReferenceJoin> getTableReferenceJoins() {\n\t\treturn Collections.emptyList();\n\t}\n\n\t@Override\n\tpublic TableReference resolveTableReference(\n\t\t\tNavigablePath navigablePath,\n\t\t\tString tableExpression) {\n\t\tfinal TableReference tableReference = getTableReference(\n\t\t\t\tnavigablePath,\n\t\t\t\ttableExpression,\n\t\t\t\ttrue\n\t\t);\n\n\t\tif ( tableReference == null ) {\n\t\t\tthrow new UnknownTableReferenceException(\n\t\t\t\t\ttableExpression,\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\tLocale.ROOT,\n\t\t\t\t\t\t\t\"Unable to determine TableReference (`%s`) for `%s`\",\n\t\t\t\t\t\t\ttableExpression,\n\t\t\t\t\t\t\tnavigablePath\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn tableReference;\n\t}\n\n\t@Override\n\tpublic TableReference resolveTableReference(\n\t\t\tNavigablePath navigablePath,\n\t\t\tValuedModelPart modelPart,\n\t\t\tString tableExpression) {","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/MappedByTableGroup.java#L110-L146","documentation":"Error \"Unable to determine TableReference (`%s`) for `%s`\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A column reference qualifier cannot be resolved against a mapped-by table group.","commonSituations":"Joining through a mapped-by (inverse) association and referencing a column by an alias that the table group does not qualify.","solutions":["The column reference qualifier does not match any table reference known to the mapped-by table group. Check the query's qualification and the association's mappedBy configuration.","If generated internally, report it as a Hibernate bug with the query and mappings."],"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"}