Since the Guid is already generated, NH thinks that the row already exists
and tries to update. Explicitly Save() the instance to force an insert.

-Markus

2009/7/16 YJingLee <[email protected]>

>
> Mapping:
>  <class name ="A">
>    <id name="Id" column="AId">
>      <generator class="guid.comb"/>
>    </id>
>    <version name="Version"/>
>    <property name="Number" unique="true"/>
> </class>
>  >
>

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