Hi everyone, I have the following problem. I have a reserve table in my MySQL database, date columns are defined by DATETIME. I need to make a request using sleep mode to find all reserves in one day, regardless of hour, only month and date of the same year, and I do it
public List<Reserve> bringAllResByDate(Date date){ em = emf.createEntityManager(); Query q = em.createQuery("SELECT r FROM Reserve r WHERE r.date=:date "); q.setParameter("date", date);
...
I really donβt know how to do this, and will bring me only from the indicated date, any help?
source share