title: Hibernate Restrictions - how can I query with multiple values?
body: <p>I am new to Hibernate Restrictions and need some help:</p>
  
  <p>I am having a scenario that I need to find all the records where "identifier" is "HB001" or "HB002", "HB003" &amp;"HB004". That is to say, it should return 4 rows, each row has "identifier" as "HB00*".</p>
  
  <pre><code>//here is the code
  Criteria criteria = hibernateSession.createCriteria(ENTITY_CLASS); 
  
  List&lt;String&gt; ids = getIds(); //ids contains "HB001", "HB002", "HB003", "HB004" and I am sure this step has no issue. 
  criteria.add(Restrictions.eq("identifier", ids));
  ...
  </code></pre>
  
  <p>looks like the <code>criteria.add(Restrictions.eq("identifier", ids))</code> is not correct and the query returns null.</p>
  
  <p>Can anyone help? </p>