Benjamin Maurer (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f1862a...
) *commented* on HHH-14125 (
https://hibernate.atlassian.net/browse/HHH-14125?atlOrigin=eyJpIjoiMWIyMG...
)
Re: Selecting EntityCollection fails ("not an entity") (
https://hibernate.atlassian.net/browse/HHH-14125?atlOrigin=eyJpIjoiMWIyMG...
)
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…”).
(
https://hibernate.atlassian.net/browse/HHH-14125#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14125#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )