first of all, I'm a newbe to NH... Then: my problem is that I have to
entities: MupRuns and Mappings. The first one is the master entity and
the second one contains the children of each of the first one... When
I get access to the first one, if I set lazy="true" when I try to
dislpay the children of each of the master it return an error saying
that there is no session active...
To be precise consider that in the hbm.xml of the master the child is
setted as bag and in the master class the children list is setted as
an IList<Mappings>. Both these 2 entities aren't to be persisted on
Of course if I leave both 2 in lazy="false" all works fine, but the
performances decrease impressively...
Is there someone that can explain clearly and with some example how to
set a correct lazyloading?
Thx in advance