hibernate tweaks

This commit is contained in:
Athou
2013-06-06 09:54:17 +02:00
parent c907abbf62
commit be6db080fd
18 changed files with 40 additions and 56 deletions

View File

@@ -17,7 +17,7 @@ public class FeedEntryService {
FeedEntryStatus status = feedEntryStatusDAO.findById(user, entryId);
if (status != null) {
status.setRead(read);
feedEntryStatusDAO.update(status);
feedEntryStatusDAO.saveOrUpdate(status);
}
}
@@ -25,7 +25,7 @@ public class FeedEntryService {
FeedEntryStatus status = feedEntryStatusDAO.findById(user, entryId);
if (status != null) {
status.setStarred(starred);
feedEntryStatusDAO.update(status);
feedEntryStatusDAO.saveOrUpdate(status);
}
}
}