I want to write a criteria query in Hibernate using which i can select dates of a particular month for multiple years(four years in total).
For example I want it fetch the rows for whose date should be
(1st april 2011 and 1st May 2011) or the date should be between
(1st april 2010 and 1st May 2010) or the date should be between
(1st april 2009 and 1st May 2009) or the date should be between
(1st april 2008 and 1st May 2008)