Beginner |
|
Joined: Tue Nov 28, 2006 4:26 pm Posts: 32 Location: Montreal, Quebec, Canada
|
In order to maintain as much portability I use the "native" generator for my identifiers. Oracle uses sequences for ID generation. Normally, I would create a sequence and then a trigger before insert to fetch and assign this ID.
However, when native is the generator for Oracle, NHibernate makes its own call to the sequence to get the ID then a second call to do the actual insert of the record.
Is there a way to tell NHibernate not to use 2 calls and let Oracle do the assignment of the ID itself using the trigger option? I looked at the documentation and nothing was obvious to me.
|
|