Skip to content

Commit

Permalink
Merge branch 'improve_jpa_indexes' of github.com:jamesagnew/hapi-fhir…
Browse files Browse the repository at this point in the history
… into improve_jpa_indexes
  • Loading branch information
jamesagnew committed Jun 27, 2018
2 parents a63205e + a77896f commit 74bca05
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,15 @@ protected void postPersist(ResourceTable theEntity, T theResource) {
// nothing
}

/**
* Subclasses may override to provide behaviour. Called when a pre-existing resource has been updated in the database
*
* @param theEntity The resource
*/
protected void postDelete(ResourceTable theEntity) {
// nothing
}

/**
* Subclasses may override to provide behaviour. Called when a pre-existing resource has been updated in the database
*
Expand Down Expand Up @@ -2027,6 +2036,10 @@ protected ResourceTable updateEntity(RequestDetails theRequest, final IBaseResou

postPersist(theEntity, (T) theResource);

} else if (theEntity.getDeleted() != null) {

postDelete(theEntity);

} else {
theEntity = myEntityManager.merge(theEntity);

Expand Down

0 comments on commit 74bca05

Please sign in to comment.