title: How to pass list of arguments in criteria query , jpa?
body: <p>I am new in JPA but have to implement my project in that technology</p>
  
  <p>what I'm trying to do is build via <code>CriteriaQuery</code> some db query, but have no idea how to pass list Of parameters to the code below :</p>
  
  <pre><code>CriteriaBuilder qb = em.getCriteriaBuilder();
      CriteriaQuery&lt;MyClass&gt; c = qb
              .createQuery(MyClass.class);
      Root&lt;MyClassPK&gt; p = c
              .from(MyClass.class);
  
      c.where(qb.equal(qb.trim((p.&lt;MyClass&gt; get("id")).&lt;String&gt; get("Name")),
      HERE LIST OF ARGS HOW TO PASS ?? ));    
  TypedQuery&lt;MyClass&gt; q = em.createQuery(c);
  </code></pre>
  
  <p>the code looks pretty complex cause of complex database architecutre. Could somebody tell me how to resolve my problem ? Or maybe only one solution is for (...) ? </p>