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!
According to the link that you provided, It will only work if you're using Hibernate 5.2.11+ ....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With