org.hibernate.id
Class SequenceHiLoGenerator
- Configurable, IdentifierGenerator, PersistentIdentifierGenerator
public class SequenceHiLoGenerator
seqhilo
An IdentifierGenerator that combines a hi/lo algorithm with an underlying
oracle-style sequence that generates hi values. The user may specify a
maximum lo value to determine how often new hi values are fetched.
If sequences are not available, TableHiLoGenerator might be an
alternative.
Mapping parameters supported: sequence, max_lo, parameters.
void | configure(Type type, Properties params, Dialect d) - Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable | generate(SessionImplementor session, Object obj) - Generate a new identifier.
|
MAX_LO
public static final String MAX_LO
configure
public void configure(Type type,
Properties params,
Dialect d)
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
- configure in interface SequenceGenerator
params
- param values, keyed by parameter name