How to compare dates in hibernate

后端 未结 8 719
予麋鹿
予麋鹿 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

    // datetime comparison Hibernate 4.3

         Select c from Customer c where c.date<{d '2000-01-01'}
    

提交回复
热议问题