Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate - How do I get entities which contain ALL values

 
Matias Socolinsky
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I have the following entities:





I need to get all the contacts that have attended a given selection of events. For example, all contacts that have attended events 1, 4 and 6. Using an in restriction in a Criteria would not work, since that would bring all contacts that have attended events 1, 4 or 6.

Any ideas?

Thanks in advance for your help!

Matías
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!