> However, how can I query all those many-to-many relations?? I mean, > the relations are stored in a intermediate table that I should not > query (or should I?) so how can I find all the OperatingSystem linked > with a specific FileInstance? Did you read the docs about queries? It is relatively simple with HQL:
select os from FileInstance fi, OperatingSystem os join fetch os.Files f where fi.Name= :filename and fi in elements(os.Files) -Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
