As mentioned in the pull-request, I think something wrong is going on in org.hibernate.hql.internal.ast.tree.SelectClause#initializeExplicitSelectClause There seem to be two branches for non-subqueries and non fetches - scalar and non-scalar. Since we’re selecting a CollectionType, the non-scalar path is chosen with triggers an Exception in org.hibernate.hql.internal.ast.tree.FromElementType#renderIdentifierSelect The scalar path wouldn’t create a valid query either (something like “SELECT .* FROM…”). |