A -> BCollection
   -> CCollection
   -> DCollection

To avoid cartesian product when eagerly loading a graph of A:s, I split the 
query into three different ones...
select a from A a left join fetch a.BCollection b where [X]
select a from A a left join fetch a.CCollection c where [X]
select a from A a left join fetch a.DCollection d where [X]

The problem I'm having is when/if the where clause filters out one or more 
collection. Then I end up with a proxy for the "missing" collection. In these 
scenarios I want to say to nhib/the proxy "I assure you, this collection is 
empty. No record in the db for this one!". Is this possible? Or is there any 
nice work around that I've missed? How do you solve this?

/Roger

--~--~---------~--~----~------------~-------~--~----~
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