org.hibernate.id
Class IncrementGenerator
java.lang.Object
org.hibernate.id.IncrementGenerator
- Configurable, IdentifierGenerator
public class IncrementGenerator
extends java.lang.Object
increment
An IdentifierGenerator that returns a long, constructed by
counting from the maximum primary key value at startup. Not safe for use in a
cluster!
Mapping parameters supported, but not usually needed: tables, column.
(The tables parameter specified a comma-separated list of table names.)
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.
|
configure
public void configure(Type type,
Properties params,
Dialect dialect)
throws MappingException
Configure this instance, given the value of parameters
specified by the user as <param> elements.
This method is called just once, following instantiation.
- configure in interface Configurable
params
- param values, keyed by parameter name