title: Complex queries with JPA Criteria builder
body: <p>Can someone suggest me how to build up the following query using JPA Criteria builder API?</p>
  
  <pre><code>SELECT id,status,created_at from transactions where status='1' 
     and currency='USD' and appId='123' order by id
  </code></pre>
  
  <p>It's better if I can find a solution which creates dynamically based on the parameters given as a <code>Map&lt;String,String&gt;</code> using metamodel classes or any other way.</p>