[hibernate-issues] [JIRA] (HHH-14113) Entity Graph attribute resolution not based on selected entity

Nathan Xu (JIRA) jira at hibernate.atlassian.net
Sun Jul 26 19:12:57 EDT 2020


Nathan Xu ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Af1c90216-c2ff-4df7-8e20-9d0e140d7f64 ) *commented* on HHH-14113 ( https://hibernate.atlassian.net/browse/HHH-14113?atlOrigin=eyJpIjoiYzA2YmVkOWEwMDI1NDY5MmIwZDA3NTlmMjM4MjY1YjMiLCJwIjoiaiJ9 )

Re: Entity Graph attribute resolution not based on selected entity ( https://hibernate.atlassian.net/browse/HHH-14113?atlOrigin=eyJpIjoiYzA2YmVkOWEwMDI1NDY5MmIwZDA3NTlmMjM4MjY1YjMiLCJwIjoiaiJ9 )

I think we’d better separate the concern. How to support `select u.groups from User u` in terms of entity graph is a big question as you can see from the zulip chat. As you have known, we only support very limited HQL to enforce entity graph (e.g. select u from User u where .... ) currently, so applying entity graph is exception not norm. We might add some logging to remind the user that some entity graph is applied, however.

Entity Graph is awkward feature in Hibernate v5 for the late feature is not elegantly implemented in existing infrastructure. However, we will reconsider the issue in v6 whose design makes nontrivial refactoring possible. The combination of entity graph and HQL is a great gray area and we need thorough design if we wanna support applying Group graph for select u.groups from User u.

( https://hibernate.atlassian.net/browse/HHH-14113#add-comment?atlOrigin=eyJpIjoiYzA2YmVkOWEwMDI1NDY5MmIwZDA3NTlmMjM4MjY1YjMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14113#add-comment?atlOrigin=eyJpIjoiYzA2YmVkOWEwMDI1NDY5MmIwZDA3NTlmMjM4MjY1YjMiLCJwIjoiaiJ9 )

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:5d840a8 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200726/11a8dd19/attachment.html 


More information about the hibernate-issues mailing list