I am working in a project which uses JPA ORM and framework provides two kinds of method to create queries.
- entityManager.createQuery(query1);
- entityManager.createNativeQuery(query2);
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?