title: How to get multiple columns from table using JPA?
body: <p>For example I have a table as <strong>Student</strong> it's contain columns like <strong>id</strong>, <strong>name</strong>, <strong>age</strong> 
  I am reverting particular column values by using <strong>NativeQuery</strong> like below.</p>
  
  <pre><code>Query query = entityManager.createNativeQuery("SELECT age FROM Student");
  List list=query.getResultList(); 
  </code></pre>
  
  <p>By using above query We will get list of ages in <strong>Student</strong> table
  Now I want to get <strong>age</strong> and <strong>name</strong> from table.</p>
  
  <pre><code>Query query = entityManager.createNativeQuery("SELECT age,name FROM Student");
  List list=query.getResultList();
  </code></pre>
  
  <p>If I do like this My code is execute well, but How can I get name in one list and age in another list.So how can I do this. Thank you very much</p>
  
  <p><strong>Note</strong>
  I don't have any Entity class or POJO classes in my project I am getting table from Database using Native Query.</p>