I have a FormulaConstant (see below the mapping document) item with Id = 1
Use case:
User U1 get FormulaConstant by id 1 (RowVersion = 0)
User U2 get FormulaConstant by id 1 (RowVersion = 0)
U1 updates FormulaConstant(1), so RowVersion = 1
U2 deletes FormulaConstant with (RowVersion = 0), no exception is thrown.
-------------------
Hibernate version: 1.0.4
Mapping documents:
Code:
<class name="ObjectModel.Config.FormulaConstant, ObjectModel" table="Config_FormulaConstant">
<id name="Id" type="Int32" column="Id" access="field.pascalcase-m-underscore">
<generator class="hilo">
<param name="table">NH_Key_Config</param>
<param name="column">Config_FormulaConstant</param>
<param name="max_lo">0</param>
</generator>
</id>
<version name="RowVersion" column="RowVersion" type="Int32" unsaved-value="negative" />
<property name="ConstantValue" column="ConstantValue" type="String" />
<property name="CreateTimestamp" column="CreateTimestamp" type="DateTime" />
<property name="CreateUser" column="CreateUser" type="Int32" />
<property name="Description" column="Description" type="String" />
<property name="Guid" column="Guid" type="Guid" />
<property name="UpdateTimestamp" column="UpdateTimestamp" type="DateTime" />
<property name="UpdateUser" column="UpdateUser" type="Int32" />
<property name="UserCode" column="UserCode" type="String" />
</class>
Name and version of the database you are using: MSSQL 2000