ah... and don't forget that you should use one of new dialects
Oracle8iDialectOracle9iDialect
Oracle10gDialect


2009/4/6 Fabio Maulo <[email protected]>

> http://fabiomaulo.blogspot.com/2009/02/nh210-new-generators.html
>
> 2009/4/6 BL <[email protected]>
>
>
>> Hi all,
>>
>> I'm actually evaluating NHibernate while migrating our solutions
>> on .NET.  We are using an Oracle database, with triggers before insert
>> using sequences for affecting primary keys values.
>> I've found the way for using sequences with NHibernate, which is
>> invoking directly the sequence to affect the Id (select
>> my_sequence.nextval from dual), and the result is inconsistent because
>> of the triggers.
>> I can't drop the triggers, because our modules  won't be migrated all
>> together, and the old ones have to continue running.
>> So.. is there a way to tell NHibernate that the Id is given by the
>> database and he has just to retrieve it (with a insert into...
>> returning... query for example) ?
>>
>> B.L.
>>
>> >>
>>
>
>
> --
> Fabio Maulo
>



-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to