Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Querying on many to many collections

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 ]
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic