Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Converter is not applied on JPQL MAX query

Hi,

We are using converter for Date(converts java.sql.Timestamp into
com.util.Date).
for example .

   <basic name="effectiveDate">
	        <convert>Date</convert>
   </basic>
	     
In JPQL , if we write following ,
"select max(a.effectiveDate) from com.test.StandAloneEntity a".

converter is not getting applied. Query results are in java.sql.Timestamp.
We want results in com.util.Date.

As this is migration project we can not write special code in java after
query execution which will convert results into com.util.Date .

Please help.









--
View this message in context: http://eclipse.1072660.n5.nabble.com/Converter-is-not-applied-on-JPQL-MAX-query-tp158490.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


Back to the top