{"record":{"id":"39dd307d58f6bcde","repo":"hibernate/hibernate-orm","slug":"unable-to-determine-tablereference-s-for-s-39dd30","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/ColumnReferenceQualifier.java","lineNumber":42,"sourceCode":"\t *\n\t * @param navigablePath The path for which to look up the table reference, may be null\n\t * @param tableExpression The table expression for which to look up the table reference\n\t *\n\t * @throws UnknownTableReferenceException to indicate that the given tableExpression could not be resolved\n\t */\n\tdefault TableReference resolveTableReference(\n\t\t\tNavigablePath navigablePath,\n\t\t\tString tableExpression) {\n\t\tassert tableExpression != null;\n\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\tdefault TableReference resolveTableReference(\n\t\t\tNavigablePath navigablePath,\n\t\t\tValuedModelPart modelPart,\n\t\t\tString tableExpression) {\n\t\tassert modelPart != null;","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/ColumnReferenceQualifier.java#L24-L60","documentation":"Error \"Unable to determine TableReference (`%s`) for `%s`\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A column reference qualifier cannot be resolved to any known table reference.","commonSituations":"Referencing a column qualified by an alias/table name that is not part of the query's FROM clause, e.g. a typo'd alias or a join omitted from the query.","solutions":["The column reference qualifier does not match any known table reference in the query's from-clause. Check that the alias/qualification used in the query actually exists.","If the qualifier is generated internally, report it as a Hibernate bug with the query and stack trace."],"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"}