p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Hibernate (http://p2p.wrox.com/forumdisplay.php?f=148)
-   -   Week Diff in Hibernate (http://p2p.wrox.com/showthread.php?t=49939)

GauravAvi November 7th, 2006 03:15 AM

Week Diff in Hibernate
 
Hello Friends,

I'm using Hibernate/Mysql
I'm applying filter on weeks e.g I could see last weeks' records.
But when there are records of the same month it displays them correct but when there is a month difference (I want to see records of 03/11/2006 to 29/10/2006 then filter is not applying correctly)
not filtering.
The filter applied is given below:

myClassName.start_Date>=current_date-7 and myClassName.start_Date<=current_date

Thanks!
Gaurav




All times are GMT -4. The time now is 08:21 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.