Skip to content
Snippets Groups Projects
Commit d91f8831 authored by srosse's avatar srosse
Browse files

OO-1853: don't remove a possible QuestionItemImpl from the cache for the lock

parent f2fca1f3
No related branches found
No related tags found
No related merge requests found
...@@ -260,10 +260,6 @@ public class QuestionItemDAO { ...@@ -260,10 +260,6 @@ public class QuestionItemDAO {
} }
public QuestionItemImpl loadForUpdate(QuestionItemShort item) { public QuestionItemImpl loadForUpdate(QuestionItemShort item) {
if(item instanceof QuestionItemImpl) {
//remove from the cache
dbInstance.getCurrentEntityManager().detach(item);
}
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("select item from questionitem item where item.key=:key"); sb.append("select item from questionitem item where item.key=:key");
QuestionItemImpl lockedItem = dbInstance.getCurrentEntityManager() QuestionItemImpl lockedItem = dbInstance.getCurrentEntityManager()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment