Closed dgryoo closed 3 years ago
reference : https://stackoverflow.com/questions/43524569/how-to-execute-a-query-stored-as-string-with-spring-data-jpa
Use EntityManager like this
String query = "select bla from bla" List<T> result = entityManager.createNativeQuery(query ).getResultList();
reference : https://stackoverflow.com/questions/43524569/how-to-execute-a-query-stored-as-string-with-spring-data-jpa