JPA 时间查询

1.Between - findByStartDateBetween … where x.startDate between ?1 and ?2

2.LessThan/LessThanEqual

LessThan - findByEndLessThan … where x.start< ?1

LessThanEqual findByEndLessThanEqual … where x.start <= ?1

3.GreaterThan/GreaterThanEqual

GreaterThan - findByStartGreaterThan … where x.end> ?1

GreaterThanEqual - findByStartGreaterThanEqual … where x.end>= ?1

posted @ 2018-06-10 11:58  zhh  阅读(2602)  评论(0编辑  收藏  举报