title: HQL How to query Table with List of Objects as a set of conditions?
body: <p>I have a class called form</p>
  
  <pre><code>Class Form {
      String id;
      String version;
      String minVersion;  
  }
  </code></pre>
  
  <p>Now I have a <code>List&lt;Form&gt;</code> with me.
  I have to query a table which satisfies the condition such that the id, version, type all as a set satisfies ie. I want to find all the {id, version, minVersion} which is the exact same in the table from my list. For example</p>
  
  <p>I have a table like this</p>
  
  <pre>
  +----+---------+------------+---------+
  | id | version | minVersion | passage |
  +----+---------+------------+---------+
  |  1 |       2 |          2 | Hi      |
  |  1 |       3 |          1 | Hello   |
  |  2 |       2 |          2 | Hi      |
  |  3 |       3 |          3 | Hi      |
  +----+---------+------------+---------+
  </pre>
  
  <p>I want to select 2 rows from it given as a List: {id: 1, version: 3, minVersion: 1} and {id: 2, version: 2, minVersion: 2} </p>
  
  <p>I wrote a query like this,</p>
  
  <pre><code>SELECT id, version, type, passage FROM Content WHERE (id, version, type) IN (:id, :version, :minVersion);
  </code></pre>
  
  <p>But how do to convert into HSQL and setParameter for it?</p>