JPQL problem with Date
751258Apr 8 2010 — edited Apr 9 2010Hi,
I have a JPQL like..
select o from objectClass o where o.dateField : P_DATE
And the query don't returns nothing.
The types of variables are java.sql.Date, my _DB is Oracle 10.
If I look the server console i get the transformed SQL, someting like
SELECT * FROM tableMapping t WHERE t.dateField = ?
If I put a TRUNC in my parameter, its works fine.
So.. How make this in my JPQL?
Any Idea