public class IncrementGenerator extends Object implements IdentifierGenerator, Configurable
ENTITY_NAME, JPA_ENTITY_NAME
Constructor and Description |
---|
IncrementGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Type type,
Properties params,
Dialect dialect)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable |
generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
public Serializable generate(SessionImplementor session, Object object) throws HibernateException
IdentifierGenerator
generate
in interface IdentifierGenerator
session
- The session from which the request originatesobject
- the entity or collection (idbag) for which the id is being generatedHibernateException
- Indicates trouble generating the identifierpublic void configure(Type type, Properties params, Dialect dialect) throws MappingException
Configurable
configure
in interface Configurable
params
- param values, keyed by parameter nameMappingException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.