Hi Graham,
i do not exactly understand what you want to achieve, but as far as i
understand you want to get A with a filled List af Bs without changing
the default lazy loading behavior.
This can easily be done by overriding fetching strategy for this
special Query like this:
session.CreateCriteria(typeof(A)).SetFetchMode("Bs",FetchMode.Join);
or
session.CreateQuery("from a join fetch a.Bs");
Proxies of objects are not removed by the cache or other objects
automatically. On first Touch the proxy decides,wheather to get the
items from the cache or the database.
Note that NHibernate ignores the default lazy mapping on HQL queries
and simply gets what is defined in the query.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---