Interface IHibernateIdGeneratorCalculator

  • All Superinterfaces:
    ICalculator, java.io.Serializable
    All Known Implementing Classes:
    IdentityCalculator, SequenceCalculator

    public interface IHibernateIdGeneratorCalculator
    extends ICalculator
    Calculate ids using Hibernate native id generators.

    These calculators do not calculate, instead delegate calculation in hibernate.

    It's used for generate id using Hibernate id generator. Instead of programming the calculation with this calculate we use it to generate the xml code to insert in .hbml.xml file.

    Author:
    Javier Paniza
    • Method Detail

      • hbmGeneratorCode

        java.lang.String hbmGeneratorCode()
        Returns the xml code to insert inside 'id' element in .hbml file.