【发布时间】:2020-02-22 02:24:43
【问题描述】:
我使用 PostgreSQL 作为数据库,我有一个 timestamptz 列 我想把它转换成给定的时区。
select
shipment0_.estimated_delivery_date_time at time zone 'IST'
from
shipment shipment0_
是查询, 如何使用带有时区的 JPA 标准作为用户输入来实现它。 我不能使用本机查询或 JPQL,因为我已经有其他使用条件 API 的过滤器
【问题讨论】:
标签: postgresql hibernate spring-data-jpa hibernate-criteria