Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15545 (
https://hibernate.atlassian.net/browse/HHH-15545?atlOrigin=eyJpIjoiZTk0ZD...
)
Re: @NotFound(Ignore) defaults to eager loading (
https://hibernate.atlassian.net/browse/HHH-15545?atlOrigin=eyJpIjoiZTk0ZD...
)
So I dunno, the situation here is pretty weird. There actually is one test that looks
superficially like it exercises @NotFound on a collection, but it’s pretty weird case with
a @OneToMany. (I really don’t see how @NotFound could possibly make sense for
@OneToMany.)
The test is JoinFormulaOneToManyNotIgnoreLazyFetchingTest which, despite its name, has
nothing to of with @JoinFormula. And I can make this test pass just by using
@OneToMany(fetch = FetchType.EAGER) instead of @NotFound , so it doesn’t look like a legit
test for @NotFound at all! So, AFAICT, this test is just bogus, and should never have been
pushed.
The referenced issue in the test is
https://hibernate.atlassian.net/browse/HHH-12770 (
https://hibernate.atlassian.net/browse/HHH-12770 ) , and it looks like it was written by a
user and pushed by Vlad as part of this PR:
https://github.com/hibernate/hibernate-orm/pull/2459 (
https://github.com/hibernate/hibernate-orm/pull/2459 ).
Apart from that bogus-looking test, there’s no test for @NotFound on a collection.
(
https://hibernate.atlassian.net/browse/HHH-15545#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15545#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#100207- sha1:1c92a42 )