Doing polymorphic queries with interfaces results in exception SqmRoot not yet resolved to TableGroup
Description
Query SELECT COUNT(xref) from org.hibernate.bugs.IEntityA xref
results in exception
java.lang.IllegalArgumentException: org.hibernate.query.sqm.InterpretationException: Error interpreting query [SqmRoot not yet resolved to TableGroup]; this may indicate a semantic (user query) problem or a bug in the parser [SqmRoot not yet resolved to TableGroup]
Please also try some more complex queries with interfaces, like subqueries, joins etc as they are also not working and not sure if it is because of the same root cause or not
Query SELECT COUNT(xref) from org.hibernate.bugs.IEntityA xref
results in exception
java.lang.IllegalArgumentException: org.hibernate.query.sqm.InterpretationException: Error interpreting query [SqmRoot not yet resolved to TableGroup]; this may indicate a semantic (user query) problem or a bug in the parser [SqmRoot not yet resolved to TableGroup]