This content has been marked as final.
Show 2 replies
-
1. Re: ejb3 question, Compare date only for a TIMESTAMP field?
gavin.king Jun 20, 2006 6:34 AM (in response to liudan2005)There is no good way to do this within the EJB3 spec unfortunately.
In Hibernate, the following should work:from A a where day(a.datetime) = :day and month(a.datetime) = :month and year(a.datetime) = :year
On a lot of databases, the following will also work:from A a where date(a.datetime) = :date
-
2. Re: ejb3 question, Compare date only for a TIMESTAMP field?
liudan2005 Jun 20, 2006 4:31 PM (in response to liudan2005)Thanks Gavin. Problem solved.