• Post Reply Bookmark Topic Watch Topic
  • New Topic

Querying on many to many collections

Johann Spitz
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two objects (User and Asset) that are mapped like this:
(on user.hbm.xml)

(and on asset

Now I want to search for users that are assigned to some assets via the m-n table userToAsset. I tried:

But that only gives me:

I know this is possible somehow, but I just don't get it. Reading the Documentation again and again got me nowhere. Please help

[ May 03, 2005: Message edited by: Johann Spitz ]
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!