#467 - Delete bean with unloaded version property throws OptimisticLockException

This commit is contained in:
Robin Bygrave committed 2015-11-26 15:12:59 +13:00
1 parent 872f0e21cb
commit a2ee0bfdbe
2 files changed
+21 -1

No files matched your search

@@ -528,7 +528,7 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
* Check for optimistic concurrency exception.
*/
public final void checkRowCount(int rowCount) {
if (rowCount != 1) {
if (ConcurrencyMode.VERSION == concurrencyMode && rowCount != 1) {
String m = Message.msg("persist.conc2", "" + rowCount);
throw new OptimisticLockException(m, null, bean);
}