I have native query added in JPA and want to format the date as yyyy-MM-dd
select to_char(date,\'yyyy-MM-dd\') from table1 where date > sysdate;