title: Writing JPQL query in Spring boot with ':' as a part of the query string
body: <p>I have to write a JPQL query in spring boot which is equivalent to the below query.</p>
  
  <p><strong>QUERY:</strong></p>
  
  <pre><code>SELECT * FROM flow.logs where feature_id like '%|data:6789%';
  </code></pre>
  
  <p><strong>JPQL Query made by me:</strong></p>
  
  <pre><code>@Query("SELECT logs FROM Logs logs WHERE logs.featureId like '%|data\\: :data%'")
      public List&lt;Logs&gt; getLogsByStationId(@Param("data")Integer data);
  </code></pre>
  
  <p><strong>The query is not working and giving the below exception:</strong>
  <code>Unknown parameter position: 1; nested exception is</code> <code>java.lang.IllegalArgumentException: Unknown parameter position: 1</code></p>
  
  <p>Can anyone tell me what is wrong with my code.</p>