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