HQL相当于Postgres的“时区日期时间”

时间:2018-11-01 14:32:22

标签: postgresql hql java-7

我正在HQL中搜索此sql查询的等效项

select date_creation at time zone 'Europe/Paris',
       date_cloture at time zone 'Europe/Paris' 
from cot

我试图在休眠状态下执行它时遇到异常。

  

org.hibernate.hql.ast.QuerySyntaxException:意外令牌:位于第1行附近。..

我的目标是加载保存在数据库中的datetime值。

0 个答案:

没有答案
相关问题