Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16946 (
https://hibernate.atlassian.net/browse/HHH-16946?atlOrigin=eyJpIjoiZGNhYm...
)
Re: Entity with a composite id using an @IdClass with a bidirectionnal @OneToOne not
deleted when L2 cache disabled (
https://hibernate.atlassian.net/browse/HHH-16946?atlOrigin=eyJpIjoiZGNhYm...
)
Hi Erwan Moutymbo (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=640210c...
) ,
in you mapping SpecialProduct has a bidirectional relation with SpecialPricePoint so when
you try to delete a SpecialProduct Hibernate detect that there is an instance of
SpecialPricePoint referring to the deleted SpecialProduct with cascade PERSIST and so does
not delete the PecialProduct My advice is to remove the cascade PERSIST from the @OneToOne
{{ SpecialPricePoint wholesalePrice;}}
(
https://hibernate.atlassian.net/browse/HHH-16946#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16946#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#100232- sha1:304e1c7 )