Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Querying on many to many collections

 
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic