title: Why do we need to create native query?
body: <p>I am working in a project which uses JPA ORM and framework provides two kinds of method to create queries.</p>
  
  <ul>
  <li>entityManager.createQuery(query1);</li>
  <li>entityManager.createNativeQuery(query2);</li>
  </ul>
  
  <p>I understand the kinds of query string is to be passed to use them, but I don't know exactly why do we need to create native query? Probably we don't want to use ORM capabilities there?</p>