[hibernate-issues] [JIRA] (HHH-14125) Selecting EntityCollection fails ("not an entity")

Benjamin Maurer (JIRA) jira at hibernate.atlassian.net
Thu Jul 30 06:06:56 EDT 2020


Benjamin Maurer ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f1862af1084620015f82ef2 ) *commented* on HHH-14125 ( https://hibernate.atlassian.net/browse/HHH-14125?atlOrigin=eyJpIjoiMWIyMGQ3Y2ExODU5NGJhNTk3N2Q5NmJjYjdkY2IxNzYiLCJwIjoiaiJ9 )

Re: Selecting EntityCollection fails ("not an entity") ( https://hibernate.atlassian.net/browse/HHH-14125?atlOrigin=eyJpIjoiMWIyMGQ3Y2ExODU5NGJhNTk3N2Q5NmJjYjdkY2IxNzYiLCJwIjoiaiJ9 )

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=eyJpIjoiMWIyMGQ3Y2ExODU5NGJhNTk3N2Q5NmJjYjdkY2IxNzYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14125#add-comment?atlOrigin=eyJpIjoiMWIyMGQ3Y2ExODU5NGJhNTk3N2Q5NmJjYjdkY2IxNzYiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200730/f2cdc050/attachment.html 


More information about the hibernate-issues mailing list