I want to create a query with JPA using dates. I´ve created this query with Oracle
"SELECT * FROM PMAR_PRON WHERE to_char(PRO_DATE,'mm')=10 and
to_char(PRO_DATE,'YYYY') = 2015;"
it works well but i don´t know how to convert it at JPA.
SELECT * FROM PMAR_PRON WHERE to_char(PRO_DATE,'mm')=10 and
to_char(PRO_DATE,'YYYY') = 2015;"
I want to get records of month 10 and year 2015.