Class IdentityCalculator

  • All Implemented Interfaces:, ICalculator, IHibernateIdGeneratorCalculator

    public class IdentityCalculator
    extends java.lang.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"/>
    It does not work with EJB2. It works with Hibernate and EJB3 JPA.
    Javier Paniza
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object calculate()  
      java.lang.String hbmGeneratorCode()
      Returns the xml code to insert inside 'id' element in .hbml file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait