|Query Object Graph by Levels [message #1102884]
||Fri, 06 September 2013 06:51
| Hannes Kühtreiber
Registered: June 2013
Lets say I have the following object graph:|
Bicycle -> Wheel -> Spoke -> Manufacturer -> Address
all 1:n relations.
when I query for the Bike, I also want to load the Wheel objects, but I am not interested in the Spoke Manufacturer and its Address.
But if I load the Spoke, I do want the Manufacturer, and if I load the Manufacturer I also want the Address.
So, with every query I want the Object asked for plus one level down, but not the whole graph.
Is there a way in mapping or designing the query to do this?
Powered by FUDForum
. Page generated in 0.01974 seconds