[hibernate-issues] [JIRA] (HHH-13900) Skip deletion of referenced entities during soft delete

richard.bizik (JIRA) jira at hibernate.atlassian.net
Tue Mar 24 02:27:35 EDT 2020


richard.bizik ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e25b15b2ca5600ca8c00a1c ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HHH-13900?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 ) HHH-13900 ( https://hibernate.atlassian.net/browse/HHH-13900?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 ) Skip deletion of referenced entities during soft delete ( https://hibernate.atlassian.net/browse/HHH-13900?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 )

Change By: richard.bizik ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e25b15b2ca5600ca8c00a1c )

Hibernate now removes all references from entities that are being deleted to avoid foreign key violations. This behavior is not wanted for soft delete operations. We want to keep the references and mark entities as deleted.

proposed solution is in this repository:

{code :java }
https://github.com/richardbizik/hibernate-orm/commit/ 74bd74355964305376f01561c93a7857e1123ca5
9a8296411ad97480bd371219b1fb2d052a3786e9 {code}

( https://hibernate.atlassian.net/browse/HHH-13900#add-comment?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13900#add-comment?atlOrigin=eyJpIjoiMjU1YWY0NzAwZmExNDU2NmE5NTJkZGE3NjllN2IxYzQiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- sha1:092c6a7 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200324/06fd697b/attachment.html 


More information about the hibernate-issues mailing list