com.easyjf.dbo
Class HibIdGenerator

java.lang.Object
  extended bycom.easyjf.dbo.HibIdGenerator
All Implemented Interfaces:
org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator

public class HibIdGenerator
extends java.lang.Object
implements org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator


Field Summary
 
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
 
Constructor Summary
HibIdGenerator()
           
 
Method Summary
 void configure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect dialect)
           
 java.io.Serializable generate(org.hibernate.engine.SessionImplementor session, java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibIdGenerator

public HibIdGenerator()
Method Detail

generate

public java.io.Serializable generate(org.hibernate.engine.SessionImplementor session,
                                     java.lang.Object obj)
                              throws org.hibernate.HibernateException
Specified by:
generate in interface org.hibernate.id.IdentifierGenerator
Throws:
org.hibernate.HibernateException

configure

public void configure(org.hibernate.type.Type type,
                      java.util.Properties params,
                      org.hibernate.dialect.Dialect dialect)
               throws org.hibernate.MappingException
Specified by:
configure in interface org.hibernate.id.Configurable
Throws:
org.hibernate.MappingException