IHibernateIdGeneratorCalculator.java :  » ERP-CRM-Financial » OpenXava-3.0 » org » openxava » calculators » Java Open Source

Java Open Source » ERP CRM Financial » OpenXava 3.0 
OpenXava 3.0 » org » openxava » calculators » IHibernateIdGeneratorCalculator.java
package org.openxava.calculators;

/**
 * Calculate ids using Hibernate native id generators. <p>
 * 
 * These calculators do not calculate, instead delegate calculation
 * in hibernate. <p>
 * 
 * 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. <p>
 * 
 * @author Javier Paniza
 */

public interface IHibernateIdGeneratorCalculator extends ICalculator {
  
  /**
   * Returns the xml code to insert inside 'id' element in .hbml file.
   */
  String hbmGeneratorCode();

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.