Top  Previous  Next

- identity <value name | attribute name, value name | attribute name, ...>


Used to convert value objects into entity objects. Entity objects can be persisted to the database with the help of an EntityManager. The main difference between an entity object and a value object is that an entity object has an identity. In addition to persistence, identity affects the equals, compareTo and toString methods.


For example:


<Employee identity="ID">
    <ID type="positiveInteger"></ID>