However, here is a simple way to query, ignoring the time, and only using hibernate expressions.
day(g.transactionDate) = day(:transactionDate) and month(g.transactionDate) = month(:transactionDate) and year(g.transactionDate) = year(:transactionDate)
And here is a link to the relevant Hibernate Docs.
No comments:
Post a Comment