StatelessSession ignore relations.
You need to save both Contact and Staff

2009/6/1 jalchr <[email protected]>:
>
> I used IStatelessSession to do my bulk operation.
> I have a one-to-one relation between two tables.
> The first table is successfully populated, while the second one
> doesn't and no error is thrown.
>
> table 1:
>  <class name="Contact" table="Contact" dynamic-insert="false" dynamic-
> update="false">
>    <id name="contactID" column="ContactID" access="field" >
>      <generator class="assigned" />
>    </id> ...
>
> table 2:
> <class name="Staff" table="Staff" dynamic-insert="false" dynamic-
> update="false">
>    <id name="userID" column="ContactID" access="field" >
>      <generator class="assigned" />
>    </id> ....
>
> The insert operation works for the first table while nothing gets
> inserted and no errors thrown.
>
> Note. I works perfectly using normal ISession.
> >
>



-- 
Jozef

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