Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-13174 (
https://hibernate.atlassian.net/browse/HHH-13174?atlOrigin=eyJpIjoiZjBkMz...
)
Re: L1 Cache object updating issue (
https://hibernate.atlassian.net/browse/HHH-13174?atlOrigin=eyJpIjoiZjBkMz...
)
This is expected and is actually the reason why the {{ON}}clause is disallowed for fetch
joins. Changing the elements of a collection through a filter condition changes the
persistent state that Hibernate observes, so this kind of query might even lead to
elements being deleted.
You should never use a filter condition on a join alias of a fetch joined collection or
singular attribute reached through a fetch join of a collection.
You should use a custom projection without join fetching instead.
SELECT u, c from User u JOIN u.childrenList s WHERE s.id = 1
(
https://hibernate.atlassian.net/browse/HHH-13174#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13174#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#100133- sha1:ead1094 )