title: Set list parameter to native query
body: <p>I would like to set parameter to a native query,</p>
  
  <pre><code>javax.persistence.EntityManager.createNativeQuery
  </code></pre>
  
  <p>Something like that</p>
  
  <pre><code>Query query = em.createNativeQuery("SELECT * FROM TABLE_A a WHERE a.name IN ?");
  List&lt;String&gt; paramList = new ArrayList&lt;String&gt;();
  paramList.add("firstValue");
  paramList.add("secondValue");
  query.setParameter(1, paramList);
  </code></pre>
  
  <p>Trying this query result in Exception:</p>
  
  <pre><code>Caused by: org.eclipse.persistence.exceptions.DatabaseException:
  Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
  You have  an error in your SQL syntax; check the manual that corresponds to your MySQL server 
  version for the right syntax to use near
  '_binary'??\0♣sr\0‼java.util.ArrayListx??↔??a?♥\0☺I\0♦sizexp\0\0\0☻w♦\0\0\0t\0
  f' at line 1
  Error Code: 1064
  Call: SELECT * FROM Client a WHERE a.name IN ?
          bind =&gt; [[firstValue, secondValue]]
  Query: ReadAllQuery(referenceClass=TABLE_A sql="SELECT * FROM TABLE_A a WHERE a.name IN ?")
  </code></pre>
  
  <p>Is it any way to set list parameter for native query, without cast to string and append it to sql query?</p>
  
  <p>P.S. I'm use EclipseLink 2.5.0 and MySQL server 5.6.13</p>
  
  <p>Thanks</p>