Hello,
I have an "Employee" object, this object has a "DayOff" collection as
property.
When I do a session.Get(id); the "DayOff" collection for this employee is
loaded too. I'd like limit the content of this collection at the current
year (for exemple).
When I add a DayOff to the collection and save the employee, I'd like (if
it's possible) than NH continue to save this collection.
The mapping (Employee) :
<bag name="DayOffs" generic="true" inverse="true" cascade="all" table
="EmployeeDayOff">
<key column="EmployeeId" foreign-key="FK_Employee_EmployeeDayOff"/>
<one-to-many class="EmployeeDayOff"/>
</bag>
The mapping (DayOff)
<many-to-one name="Employee" class="Employee" column="EmployeeId" />
Thanks for your help,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---