hibernate/hibernate-orm · error · UnknownTableReferenceException
Unable to determine TableReference (`%s`) for `%s`
Error message
Unable to determine TableReference (`%s`) for `%s`
What it means
Error "Unable to determine TableReference (`%s`) for `%s`" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/EmbeddableFunctionTableReference.java:89
@Override
public String getTableId() {
return tableExpression;
}
@Override
public Boolean visitAffectedTableNames(Function<String, Boolean> nameCollector) {
return nameCollector.apply( tableExpression );
}
@Override
public TableReference resolveTableReference(
NavigablePath navigablePath,
String tableExpression) {
if ( this.tableExpression.equals( tableExpression ) ) {
return this;
}
throw new UnknownTableReferenceException(
tableExpression,
String.format(
Locale.ROOT,
"Unable to determine TableReference (`%s`) for `%s`",
tableExpression,
navigablePath
)
);
}
@Override
public TableReference getTableReference(
NavigablePath navigablePath,
String tableExpression,
boolean resolve) {
return this.tableExpression.equals( tableExpression ) ? this : null;
}
View on GitHub (pinned to fad1729dce)
Solutions
- The column reference qualifier does not match the embeddable function table reference. Verify the function/table qualification used in the query.
- If generated internally by Hibernate, report it as a Hibernate bug with the query and stack trace.
When it happens
Trigger: A column reference qualifier cannot be resolved against an embeddable function table reference.
Common situations: Using an embeddable-valued function table (e.g. unnest/table function mapped as embeddable) and qualifying a column with an alias the function table does not expose.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/779d07e6130cfd20.
Report an issue: GitHub.