public class SequenceGenerator
extends java.lang.Object
implements org.hibernate.id.IdentifierGenerator, org.hibernate.id.Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_NAME |
| Constructor and Description |
|---|
SequenceGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.hibernate.type.Type type,
java.util.Properties params,
org.hibernate.service.ServiceRegistry serviceRegistry) |
java.io.Serializable |
generate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
java.lang.Object object) |
public static final java.lang.String KEY_NAME
public void configure(org.hibernate.type.Type type,
java.util.Properties params,
org.hibernate.service.ServiceRegistry serviceRegistry)
throws org.hibernate.MappingException
configure in interface org.hibernate.id.Configurableorg.hibernate.MappingExceptionpublic java.io.Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
java.lang.Object object)
throws org.hibernate.HibernateException
generate in interface org.hibernate.id.IdentifierGeneratororg.hibernate.HibernateException