Hi - I am trying to load a graph of objects in one go to the database. The graph of objects look like this:
Project | * ProjectPlan -* Step | * Activity The Project is the "root" of the aggregate. Currently the loading of the ProjectPlan instances with its two bags of Step and Activity instances results in separate selects for both Step and Activity. The only solution I can think of is to break the association in the mapping file between ProjectPlan, Step and Activity and then load the individual ProjectPlans, Steps and Activities using a MultiCriteria. However, the price of that is that I now have to manually build the object hierarchy, moreover querying will become more difficult. :-( Can anyone else think of a solution? The motivation for all of this is performance. This object graph is loaded on each web-request due to the fact that we are not allowed to use the users web session. :-| Cheers, Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
