:start_date\"" />
开发者

EJBQL date comparison

开发者 https://www.devze.com 2022-12-14 22:40 出处:网络
In EJBQL how can compare two date val开发者_Python百科ues; suppose \"Select e from Employee e where e.start_date > :start_date\"

In EJBQL how can compare two date val开发者_Python百科ues; suppose

"Select e from Employee e where e.start_date > :start_date" If I set query parameter with setParameter("start_date", new Date());

An Exception occurs on running..

I wait for your suggestions


Ok, I found solution sorry for bothering;

Rather I needed to use setParameter("start_date", new Date(), TemporalType.DATE)

0

精彩评论

暂无评论...
验证码 换一张
取 消