title: How to select all the data of two columns from a table using JPA query method
body: <p>I want to add in my <code>Repository</code> interface a method for the following SQL query:</p>
  
  <pre><code>SELECT ID, NAME  FROM TABLE_NAME
  </code></pre>
  
  <p>This SQL query works as expected, but I want to write it as a JPA query method, I've tried in many ways but didn't get it working, Please help me.</p>
  
  <p>Following which I've tried but didn't work:</p>
  
  <pre><code>findAllByIdName(){}
  findAllByIdAndName(){}
  findByIdName(){}
  findByIdAndName(){}
  </code></pre>