-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.2
-
Component/s: Write Operations
-
Labels:None
For Entities that have non DB-Generated IDs, "Saves" to the DB are not optimistically locked. For example, it is possible to have two Versioned Entities with the same primary key and null versions and one will overwrite the other. This is undesirable when primary keys are meaningful and meaningful data is associated with the Entity.
This behavior is exposed by the following test:
{{
@Test(expected = ConcurrentModificationException.class)
public void testManuallyVersionedConcurrentModification()
}}