return sessionFactory.getCurrentSession(). createQuery(\"FROM Weather WHERE city_id = :id AND date \" + \"BETWEEN now()::date AND now
Take a look at http://www.postgresql.org/docs/8.1/static/sql-createcast.html
Try using cast. To me it worked like a charm.