All,
The TableHiLoGenerator says the following:
Quote:
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 Hibernate is fetching connections from an application server datasource or when the user is supplying connections. In these cases a SequenceHiLoGenerator would be a better choice (where supported).
Does this mean that I:
1. Open a session
2. Open a transaction, generate and Id, commit the transaction
3. Open another transaction, populate my object with the id, save, the object and close the transaction.
4. Close the session
How do I get a reference to the Generator for this specific object?
Thanks!