java JPQL:向日期列添加天数
我有一个表,它有以下列:
APPLICATION
int id; -- PK
Date createdDate; -- date of creation
int actionReqdIn; -- no of days in which resolution is required.
我想写一个查询,查找过期的APPLICATION
,即createdDate + actionReqdIn > todays Date
我使用的是JPA谓词&;JPQL来编写我的查询。 如何使用谓词表达式来表示这个条件? 如果需要其他信息,请告诉我
共 (0) 个答案