title: How to implement @> (contains) clause for Postgres daterange type in Java Criteria API?
body: <p>Is there any way to implement a where-clause with Postgres specific @> operator (witch means "contains") with Java Criteria API?</p>
  
  <p>The original SQL is:</p>
  
  <pre><code>select * from rent_seasons rs where rs.period @&gt; date '2019-07-16'
  </code></pre>
  
  <p>Table:</p>
  
  <pre><code>create table rent_seasons
  (
      id         integer not null,
      name       varchar(191),
      period     daterange not null
  );
  </code></pre>
  
  <p>What is the relevant Java Criteria API code?</p>