Restrictions Between for Date in Hibernate Criteria

前端 未结 4 1525
情书的邮戳
情书的邮戳 2020-12-05 18:17

Hello I am using hibernate in my example.For bean Table Audit Trial I want to fetch audit trial between a date range with inclusion of upper & lower limits. My code is l

4条回答
  •  旧巷少年郎
    2020-12-05 18:55

    criteria.add(Restrictions.between("DATE(auditDate)", sDate, eDate)); use this for ignoring time from date.

提交回复
热议问题