title: How to query with Spring JPA on jsonb columns?
body: <p>I'm using spring JPA with PostgreSQL database. I have an Entity as follow:</p>
  <pre><code>@Entity
  @TypeDef(name=&quot;json_binary&quot;, typeClass = com.vladmihalcea.hibernate.type.json.JsonBinaryType.class)
  public class LiveTokens {
  
     @Id
     @GeneratedValue()
     private Long id;
  
     private String username;
  
     @Type(type=&quot;json_binary&quot;)
     @Column(columnDefinition = &quot;jsonb&quot;)
     private Token token
  }
  </code></pre>
  <p>and <code>Token</code>:</p>
  <pre><code>public class Token {
     private Long expireTime;
     private String accessToken;
  }
  </code></pre>
  <p>For saving object to column with Hibernate, I use <a href="https://github.com/vladmihalcea/hibernate-types" rel="nofollow noreferrer">Hibernate Types</a> project.
  Now I want to get All <code>LiveToken</code>s that expired. I can't do it with Spring JPA. How do I query to posgresql jsonb column with Spring data JPA?</p>