Create version mappings |
Use a Version Mapping to specify the database field used by a persistent entity for optimistic locking.
Select the Employee entity in the Package Explorer view.
In the JPA Structure view, select the version field of the Employee entity. The JPA Details view (for attributes) displays the properties for the field.
In the Map As field, select Version.
Dali automatically selects the Version column in the EMPLOYEE database table. In the JPA Structure, the Version field is identified as a version mapping, as shown in the following figure:
Congratulations! All of the entities have been successfully mapped.