Hello,
I have a class with default-lazy="true" that contains bag of children
with cascade="all-delete-orphan". However, this bag gets eager fetched
with a left join. If i change the cascade to "save-update" it gets
lazy loaded. Does cascade="all-delete-orphan" and lazy loading not
work together? I asked google but it could not find an answer for
me...
This is what the mapping looks like:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-
lazy="true" assembly="InExchange.Domain"
namespace="InExchange.Domain.Authentication">
<class name="AuthOrganization" table="auth_Organization">
<id name="Id" column="ID">
<generator class="assigned"></generator>
</id>
<bag name="Workgroups" cascade="all-delete-orphan">
<key column="OrganizationID"></key>
<one-to-many class="Workgroup"/>
</bag>
</class>
</hibernate-mapping>
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---