java.lang.Object | |||
↳ | org.hibernate.engine.TransactionHelper | ||
↳ | org.hibernate.id.TableGenerator | ||
↳ | org.hibernate.id.TableHiLoGenerator |
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
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MAX_LO | The max_lo parameter |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.id.TableGenerator
| |||||||||||
From interface
org.hibernate.id.IdentifierGenerator
| |||||||||||
From interface
org.hibernate.id.PersistentIdentifierGenerator
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.hibernate.id.PersistentIdentifierGenerator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configure this instance, given the value of parameters
specified by the user as <param> elements.
| |||||||||||
Generate a new identifier.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.id.TableGenerator
| |||||||||||
From class
org.hibernate.engine.TransactionHelper
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.id.Configurable
| |||||||||||
From interface
org.hibernate.id.IdentifierGenerator
| |||||||||||
From interface
org.hibernate.id.PersistentIdentifierGenerator
|
Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.
params | param values, keyed by parameter name |
---|
Generate a new identifier.
obj | the entity or toplevel collection for which the id is being generated |
---|