分享至
朋友圈
微信
qq空间
qq
微博
复制
直接
from XXX as x where x.date between ? and ?;
然后再填参数
setDate(0,xxxx)
setDate(1,xxxx) //xxxx为 util.Date()类型
放心,Hibernate很智能~