2008/9/30 Pedro Santos <[EMAIL PROTECTED]>

>
> I currently use generator=native, but I've bee reading on the
> documentation and on this list that there are better options.


native mean the native of the RDBMS you are using.


> I have googled to search for pros/cons on the generators, but I
> haven't find anything. So, what's your suggestion?


The WhitePaper available on files of this group.


> Could you advise on
> the best generator?


Each have pros/cons but in general, to work with ORM, is better to use a
generator that don't need an hit to DB to know the entity ID after an
insert. In NH there are various as guid, guid.comb, uuid. There are some
other that allow you the use of Int32 or Int64 as ID and limits the hit to
DB as hilo, seqhilo.


> And maybe give some insights on why it's the best?


The whitepaper allow you to understand which is the best for you.

-- 
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