I'm using Spring Boot 1.5.13.RELEASE
and I'm trying to use the javax.persistence.Tuple
to receive the results from a native query, like:
Query q = em.createNativeQuery(QUERY_STRING, Tuple.class);
q.setParameter(1, param1);
q.getResultList();
But I receive the following error on getResultList
:
org.hibernate.MappingException: Unknown entity: javax.persistence.Tuple
Accordly with some links, this should work.
So, how use the Tuple
on native queries? Is it possible?
Thanks!