Skip to content

Commit

Permalink
SAK-40586 Replaced delete with the lock method version (sakaiproject#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored Sep 11, 2018
1 parent 987d9f1 commit 6505917
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import org.hibernate.CacheMode;
import org.hibernate.FetchMode;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Restrictions;
import org.hibernate.transform.Transformers;
Expand Down Expand Up @@ -311,7 +312,7 @@ public boolean removeConnection(final ProfileFriend profileFriend) {

//delete
try {
getHibernateTemplate().delete(profileFriend);
getHibernateTemplate().delete(profileFriend, LockMode.NONE);
return true;
} catch (final Exception e) {
log.error("removeConnection failed. " + e.getClass() + ": " + e.getMessage());
Expand Down

0 comments on commit 6505917

Please sign in to comment.