Hi, i have this class.
Office ----> Account -->AccountSettings-->AccountSetting_Authorization--->Authorization.
In AccountSettings i've mapped a bag, like this:
<bag name="AccountSetting_AuthorizationCollection" table="AccountSetting_Authorization">
<key column="IdSetting"/>
<composite-element class="AccountSetting_Authorization">
<parent name ="IdSettingSource"/>
<many-to-one name="IdAuthorizationsSource"
column="IdAuthorizations"
not-null ="true"/>
<property name="DateCreated" column="DateCreated"/>
<property name ="Status"/>
<property name ="Description"/>
<property name ="Scope"/>
</composite-element>
</bag>
.....
if i call Critera.List() and than sessio.close(), i get all the results but not the many-to-many associations. In the quick view in VS2005 debug the message is ("session closed").
Instead, if i don't call session.close() the many-tomany association works.
But i'm not sure if i can leave the session opened.
Can someone explane this littel problem (for me :-( )!
Thanks
|