On of Ayende's posts sums up the issue quite nicely:
http://ayende.com/Blog/archive/2009/06/03/nhibernate-mapping-ndash-ltmapgt.aspx
"When we load the commentors, we join directly to the posts (value),
but we have to use a different query to load the user. This is
something that you should be aware of, when using a <map/> with entity
key."

Is there any way around this? I've tried fetch=extra, join=subselect,
etc. but to no avail.

I'd love to be able to lazy load the entity keys as proxies just like
a many-to-one reference would. This would solve all of my problems at
the moment. Alternatively, it would be awesome if there was a more
intelligent load of the entities using a WHERE entity.id IN ( list of
entity ID's retrieved originally).

Are there any other workarounds? Using a custom loader? Custom
CollectionPersister? Other Ideas? :) Thanks for your time!
-- 
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.


Reply via email to