ErikFK wrote:
Have you tried something like
Quote:
query.add(Expression.between(Y, X, Z));
Erik
You put me on the right path. Here is what basically worked
Criteria searchCriteria = session.createCriteria(RevisionData.class);
searchCriteria.createCriteria("correspondence").add(Expression.between("dateReceived",
search.getCorrespondenceStartDateRange(),
search.getCorrespondenceEndDateRange()));
where I had a RevisionData class that contains a Correspondence class and I wanted to find all revisions with a correspondece that fell between two dates.
Thanks!
And for anyone with Hibernate in Action, check page 254