date « Eclipse « JPA Q&A





1. Example of using CURRENT_DATE in JPA query    stackoverflow.com

Can anyone point me to an example on how to use CURRENT_DATE in a JPA query? CURRENT_DATE is specified in JPA but I haven't been able to make it work. I always ...

2. Eclipselink Date Range Queries (with Group by)    stackoverflow.com

I am trying to do a date range query with Eclipselink JPA 2.0, but everthing i try fails. The native SQL-Query would look like this:

SELECT booked FROM household_bookings WHERE YEAR(booked) = ...

3. Date literals in Hibernate    stackoverflow.com

I wonder how to use date literals in Hibernate query language. I did as follows in my JPA project (as Eclipselink the provider) and it works.

SELECT m FROM Me m WHERE ...