title: Spring Hibernate find all records that have value in set
body: <p>I have entity Doctor</p>
  
  <pre><code>@Entity
      public class Doctor extends Account {         
      //other attributes
      @Column
      @ElementCollection(targetClass = Speciality.class, fetch = FetchType.EAGER)
      private Set&lt;Speciality&gt; speciality = new HashSet&lt;Speciality&gt;(0);        
      //getters and setters
      }
  </code></pre>
  
  <p>and entity Speciality</p>
  
  <pre><code>@Entity
      public class Speciality {
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private int id;
      String name;
      //getters and setters here
  }
  </code></pre>
  
  <p>Now in my application user can choose speciality of doctor that want to visit. For example user choose 
  endocrinologist and now my application needs to find all doctors that have speciality endocrinologist in Set speciality. <strong>How to do this?</strong></p>