如何实施@>;Java标准API中Postgres日期范围类型的(contains)子句?
有没有办法用Java标准API实现带有Postgres specific@>运算符(witch的意思是“contains”)的where子句 原始SQL是:如何实施@>;Java标准API中Postgres日期范围类型的(contains)子句?,java,postgresql,jpa,criteria-api,Java,Postgresql,Jpa,Criteria Api,有没有办法用Java标准API实现带有Postgres specific@>运算符(witch的意思是“contains”)的where子句 原始SQL是: select * from rent_seasons rs where rs.period @> date '2019-07-16' 表: create table rent_seasons ( id integer not null, name varchar(191), per
select * from rent_seasons rs where rs.period @> date '2019-07-16'
表:
create table rent_seasons
(
id integer not null,
name varchar(191),
period daterange not null
);
什么是相关的Java标准API代码?尝试实现标准API提供的接口(谓词、表达式等)尝试实现标准API提供的接口(谓词、表达式等)