Query q = em.createQuery(
"SELECT r FROM Reserve r WHERE cast(r.date as date) = :date");
Observe que o banco de dados subjacente deve suportar ANSI
cast(... as ...)
sintaxe. Query q = em.createQuery(
"SELECT r FROM Reserve r WHERE cast(r.date as date) = :date");
cast(... as ...)
sintaxe.