title: JPA getResultList() returns BigInteger for MySQL but Integer for Microsoft SQL server
body: <p>I have following method:</p>
  
  <pre><code>Query q = getEntityManager().createNativeQuery("SELECT COUNT(1) FROM table1 WHERE column = :column_id " + "UNION " + "SELECT COUNT(1) FROM table2 WHERE column = :column_id");
  q.setParameter("column_id", column_id);
  </code></pre>
  
  <p>When I want to get the list of counts (which will be 2 rows), I perform this action:</p>
  
  <pre><code>List&lt;BigInteger&gt; counts = (List&lt;BigInteger&gt;) q.getResultList();
  </code></pre>
  
  <p>This is working fine in MySQL. But as soon as I connect to MS SQL server, I'm getting a List of Integer objects:</p>
  
  <pre><code>List&lt;Integer&gt;
  </code></pre>
  
  <p>Any idea why there is a difference?</p>