select m
from ClassM m
where m.dtval >= '2008-01-01 23:12:09' and m.dval < '2008-02-01'
This makes dynamic query generation somewhat simpler than having to use and set date parameters within the Query object (my original approach).
select m
from ClassM m
where m.dtval >= '2008-01-01 23:12:09' and m.dval < '2008-02-01'
1 comment:
Thanks a lot. I am working in a project with JSF, GlassFish, SQL Server 2005 and EJBeans :D and I was trying to compare different dates. Thanks :D
Post a Comment