Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 EJBQL 中如何比较两个日期值;认为
"Select e from Employee e where e.start_date > :start_date" 如果我用 setParameter("start_date", new Date());
运行时出现异常..
我等你的建议
好的,我找到了抱歉打扰的解决方案;
相反,我需要使用 setParameter("start_date", new Date(), TemporalType.DATE)