You can use Restrictions.le("date2",date2) and Restrictions.gt("date1",date1) while querying.
see this link.
http://www.mkyong.com/hibernate/hibernate-criteria-examples/
following is also very useful
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html