I'm trying to use HQL to find records where two date fields are within 1 month of each other.
Query query = session.createQuery("from com.ep.cqprojects.db.Projects "
+ "where active_date - kickoff_meeting_date < interval '1' month ");
Unfortunately the database used apparently doesn't understand interval.
How can I compare the interval between two date fields?