public class IncrementGenerator extends java.lang.Object implements IdentifierGenerator, Configurable
ENTITY_NAME| Constructor and Description |
|---|
IncrementGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Type type,
java.util.Properties params,
Dialect dialect)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
java.io.Serializable |
generate(SessionImplementor session,
java.lang.Object object)
Generate a new identifier.
|
public java.io.Serializable generate(SessionImplementor session, java.lang.Object object) throws HibernateException
IdentifierGeneratorgenerate in interface IdentifierGeneratorobject - the entity or toplevel collection for which the id is being generatedHibernateExceptionpublic void configure(Type type, java.util.Properties params, Dialect dialect) throws MappingException
Configurableconfigure in interface Configurableparams - param values, keyed by parameter nameMappingExceptionCopyright © 2013. All Rights Reserved.