How to compare dates in hibernate

后端 未结 8 693
予麋鹿
予麋鹿 2020-12-10 11:39

In my Data base dates are as 2012-04-09 04:02:53 2012-04-09 04:04:51 2012-04-08 04:04:51, etc, I need to retrieve data which have curr

相关标签:
8条回答
  • 2020-12-10 12:33
    Restrictions.between("dateColumn", midnight1, midnight2)
    
    0 讨论(0)
  • 2020-12-10 12:33

    // datetime comparison Hibernate 4.3

         Select c from Customer c where c.date<{d '2000-01-01'}
    
    0 讨论(0)
提交回复
热议问题