title: Casting error after jpa query on database
body: <p>This query gives a array ob objects instead of giving me the Tracking object back.</p>
  
  <p>In the log i see:
  java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.quoka.qis.ads.web.tracking.Tracking</p>
  
  <pre><code>@NamedNativeQuery(
  name = "Tracking.findByNo", 
  query = "select * " +
      "from inet.TRACKING t " +
      "where t.prditmNO = ?1"
  )
  
  
  TypedQuery&lt;Tracking&gt; q = em.createNamedQuery("Tracking.findByNo", Tracking.class);
  q.setParameter(1, adno);
  List&lt;Tracking&gt; list = q.getResultList();
  return list.isEmpty()?null:list.get(0);
  </code></pre>
  
  <p>Thanks for you help. </p>