title: JPA and JSON operator native query
body: <p>I'm trying to make this query work in JPA:</p>
  
  <pre><code>SELECT * FROM contrat WHERE contrat_json @&gt; '{"nom" :"hever"}';
  </code></pre>
  
  <p>It works perfectly with <code>postgresql</code> but when I integrate it with JPA, I get the following error:</p>
  
  <blockquote>
    <p>Parameter with that position [1] did not exist</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code> @Transactional
   @Query(nativeQuery = true,value = "select p from Contrat p where contrat_json @&gt; '{\"nom\":\":nom\"}'")
      public List&lt;Contrat&gt; findByNomRestrict(@Param("nom") String nom);
  </code></pre>
  
  <p>I think it does not recognize <code>@&gt;</code> despite native query, do you have an idea?</p>