Nathan Xu (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-14113 (
https://hibernate.atlassian.net/browse/HHH-14113?atlOrigin=eyJpIjoiYzA2Ym...
)
Re: Entity Graph attribute resolution not based on selected entity (
https://hibernate.atlassian.net/browse/HHH-14113?atlOrigin=eyJpIjoiYzA2Ym...
)
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=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14113#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:5d840a8 )