nhibernate - use of ID generator from Oracle custom function -
i'm using nhibernate trying primary key id after insert (.saveorupdate() call). our oracle table generate pk id own custom function, sequence.nextval isn't correct id that's saved in table. how define mapping (.hbm.xml file) can actual id that's inserted table?
i have following, sequence coming not valid one:
<generator class="native"> <param name="sequence">seq_jobid</param> </generator>
is there other way inserted pk client?
thanks.
Comments
Post a Comment