I have two tables, Users and Networks, with a many-to-many relationship table UserNetworks to indicate which Users are in which Networks. I do not have a UserNetwork class to correspond to the UserNetworks table.
How can I construct a query using the Criteria API to retrieve all Networks that belong to a User? I'm aware that I can simply load up a User first, then traverse over its Networks property, but I was wondering how you would do it if you wanted to do it via a query instead. -- 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.
