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

richard.bizik (JIRA) jira at hibernate.atlassian.net
Tue Mar 24 01:59:10 EDT 2020


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

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

Issue Type: Improvement Affects Versions: 5.4.12 Assignee: richard.bizik ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e25b15b2ca5600ca8c00a1c ) Components: hibernate-core Created: 23/Mar/2020 22:59 PM Labels: core Priority: Major Reporter: richard.bizik ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e25b15b2ca5600ca8c00a1c ) Original Estimate: 8h Remaining Estimate: 8h

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:

https: //github.com/richardbizik/hibernate-orm/commit/74bd74355964305376f01561c93a7857e1123ca5

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

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/74e14ad1/attachment.html 


More information about the hibernate-issues mailing list