Expert |
|
Joined: Mon Jan 09, 2006 5:01 pm Posts: 311 Location: Sacramento, CA
|
do you need some handle to the "generator" or are you interested in just getting the "ID" that is assigned to the record?
if the first, then perhaps something off of
"configuration" object when you create the SessionFactory.
The second would be had, but simply issuing the session.save(object) - the ID is assigned at this point, and the actual insert is not given to the DB until the flush() or commit() - so you can see the ID prior to insert.
_________________ -JT
If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.
|
|