Hi,

I have a many-to-many association with additional fields in the link
table. What I've done is create a class and a map to store the
additional link fields and the associations have become one-to-many
and many-to-one on both sides of the association entity.

What I have is a Team class which has a collection of PlayersContext.
Each PlayerContext has some value properties (active, etc.) as well as
a Player (class) property.

What I want is to load one team with all its PlayersContexts and every
Player for each PlayersContext in a minimum of queries / row count.

What's the best way to do that? Must I load and assign each part (the
team, the PlayersContext collection and the collection of Players
where Id in <Ids of PlayersContext>) individually? Could MultiCriteria
be a solution?

Thank you!
--~--~---------~--~----~------------~-------~--~----~
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