Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZWI1ZjE5MzBl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14102?atlOrigin=eyJpIjoiZWI1Zj...
) HHH-14102 (
https://hibernate.atlassian.net/browse/HHH-14102?atlOrigin=eyJpIjoiZWI1Zj...
) orphanRemoval behaviour differ from lazy to eager loading (
https://hibernate.atlassian.net/browse/HHH-14102?atlOrigin=eyJpIjoiZWI1Zj...
)
Change By: Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
)
In a @ oneToMany relation you have different behaviours if you removing a children from
the collection.
If you remove a children from a fetched collection, the children wouldnt will not be
removed deleted from the database.
If your collection is lazy fetched, the children would will be deleted from the database.
See attached Testcase for example. Execute via
{code:java}
mvn test
{code}
(
https://hibernate.atlassian.net/browse/HHH-14102#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14102#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:bf400b0 )