• Post Reply Bookmark Topic Watch Topic
  • New Topic

Querying on many to many collections  RSS feed

 
Johann Spitz
Greenhorn
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

(etc...)
[ May 03, 2005: Message edited by: Johann Spitz ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!