org.hibernate.id
Class TableHiLoGenerator
- Configurable, IdentifierGenerator, PersistentIdentifierGenerator
public class TableHiLoGenerator
hilo
An IdentifierGenerator that returns a Long, constructed using
a hi/lo algorithm. The hi value MUST be fetched in a seperate transaction
to the Session transaction so the generator must be able to obtain
a new connection and commit it. Hence this implementation may not
be used when the user is supplying connections. In this
case a SequenceHiLoGenerator would be a better choice (where
supported).
Mapping parameters supported: table, column, max_lo
static String | MAX_LO - The max_lo parameter
|
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
The max_lo parameter
configure
public void configure(Type type,
Properties params,
Dialect d)
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 TableGenerator
params
- param values, keyed by parameter name