I am executing this query using hibernate to get confirmed and waitlisted reservations grouped by start date. The startDate is of type Date in DB (therefore, the use of str_