title: How to add custom column name Spring Data JPA?
body: <p>I have lots of column in my DB and don't want to write custom queries for all of them so consider the below method runs for every column name dynamicaly which i give as <strong>column_name</strong>. Is something like this possible or are there any other way to do that?</p>
  
  <pre><code>      @Query("select #column_name from Item Where #column_name like %?2% ")
        List&lt;Item&gt; getUniqueColumn(String column_name,String column_text);
  </code></pre>
  
  <p>By the way in spring documantation this case not mentioned.</p>