Class IdentityCalculator

java.lang.Object
org.openxava.calculators.IdentityCalculator
All Implemented Interfaces:
Serializable, ICalculator, IHibernateIdGeneratorCalculator

public class IdentityCalculator extends Object implements IHibernateIdGeneratorCalculator
To use identity database id generation.

An example of use:

  <property name="id" key="true" type="int" hidden="true">
                <default-value-calculator class="org.openxava.calculators.IdentityCalculator" on-create="true"/>
        </property>
  
It does not work with EJB2. It works with Hibernate and EJB3 JPA.
Author:
Javier Paniza
See Also: