In lines

On Thu, Feb 17, 2011 at 12:46 AM, Elmer <[email protected]> wrote:

> Thanks for the replies!
>
> Since the POID generators, HiLo, guid and guid.comb are all "*orm style
> generators*" unlike the "*identity*" generator, will these cause
> duplications or primary key violations in my table?
>

What you think ? can we give you such advise if it will cause PK duplication
exceptions ?


>
> Can NHibernate assume that the value the the orm style generator will not
> be duplicated if ever it will generate an ID for another instance of an
> object?
>

NH's embedded generators are implemented by people who knows what mean PK.


> I have auto-incremented column as my primary key in my table (MySQL is my
> database), will the "orm style generators" be a good choice, instead of
> using the "identity/increment?
>

Yes, for sure!

P.S. I'm still waiting the proof that GUID have lower performance than
guid.comb ay least in MSSQL/ORACLE (proof = difference in time)

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