【发布时间】:2009-11-09 06:26:36
【问题描述】:
我只想获得一周的价值。我正在使用以下 JPA 查询:
SELECT a
FROM questions.dao.hibernate.Questions a
WHERE (a.posted_date-CURRENT_DATE)>= 7
但我收到类似的错误消息
org.hibernate.QueryException: could not resolve property: posted_date of: questions.dao.hibernate.Questions [SELECT a FROM questions.dao.hibernate.Questions a WHERE (a.posted_date-CURRENT_DATE)>=7]
请帮帮我。
谢谢
【问题讨论】:
-
接受之前对您的问题的一些回答,并提供有关您的休眠映射的更多详细信息