Make preDelete consistent with postCreate
This commit is contained in:
parent
5589990eb5
commit
7ea7bd45cf
|
@ -192,7 +192,7 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
|
|||
|
||||
validateOkToDelete(deleteConflicts, entity);
|
||||
|
||||
preDelete(resourceToDelete);
|
||||
preDelete(resourceToDelete, entity);
|
||||
|
||||
// Notify interceptors
|
||||
if (theRequestDetails != null) {
|
||||
|
@ -722,7 +722,8 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
|
|||
* Subclasses may override to provide behaviour. Invoked within a delete
|
||||
* transaction with the resource that is about to be deleted.
|
||||
*/
|
||||
protected void preDelete(T theResourceToDelete) {
|
||||
@SuppressWarnings("unused")
|
||||
protected void preDelete(T theResourceToDelete, ResourceTable theEntityToDelete) {
|
||||
// nothing by default
|
||||
}
|
||||
|
||||
|
|
|
@ -98,8 +98,8 @@ public class FhirResourceDaoSearchParameterDstu3 extends FhirResourceDaoDstu3<Se
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void preDelete(SearchParameter theResourceToDelete) {
|
||||
super.preDelete(theResourceToDelete);
|
||||
protected void preDelete(SearchParameter theResourceToDelete, ResourceTable theEntityToDelete) {
|
||||
super.preDelete(theResourceToDelete, theEntityToDelete);
|
||||
markAffectedResources(theResourceToDelete);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue