title: How to compare dates in hibernate
body: <p>In my Data base dates are as <code>2012-04-09 04:02:53</code> <code>2012-04-09 04:04:51</code> <code>2012-04-08 04:04:51</code>, etc, I need to retrieve data which have current date in there date field. I mean i need to match only <code>2012-04-09'</code> . How can i do it using hibernate criteria.</p>