Class TableHiLoGenerator

All Implemented Interfaces:
Configurable, IdentifierGenerator, PersistentIdentifierGenerator

public class TableHiLoGenerator extends TableGenerator
hilo

An IdentifierGenerator that returns a Long, constructed using a hi/lo algorithm. The hi value MUST be fetched in a separate 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
See Also: