title: Error using JPA SELECT NEW with Timestamp on constructor
body: <p>I have the following JPA Query:</p>
  
  <pre><code>SELECT NEW test.vo.HappyVO(o.acid, o.dest, o.dep, o.time) FROM HappyTable1 o
  </code></pre>
  
  <p>My HappyVO has the following constructor:</p>
  
  <pre><code>public HappyVO(String a, String b, String c, java.sql.Timestamp e)
  </code></pre>
  
  <p>When i run this query i get the following error:</p>
  
  <pre><code> org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [test.vo.HappyVO]
  </code></pre>
  
  <p>if i change the constructor to </p>
  
  <pre><code>public HappyVO(String a, String b, String c, Object e)
  </code></pre>
  
  <p>the error doesn't occur and variable <em>e</em> is an instance of java.sql.Timestamp </p>
  
  <p>Forgot to mention i'm using a MySQL database, and the column is of type timestamp and declared type of the time field in HappyTable1 is java.sql.Timestamp</p>