@Test public void createNativeQuery() { assertNotNull(repository.save(EntityUtil.getSamplePermission())); final Query nativeQuery = queryService.createNativeQuery("SELECT * FROM bpermission"); assertNotNull(nativeQuery); final List<?> resultList = nativeQuery.getResultList(); assertNotNull(resultList); assertFalse(resultList.isEmpty()); }
public Query createNativeQuery(final String sql) { return entityManager.createNativeQuery(sql); }
QueryService { public Query createNativeQuery(final String sql) { return entityManager.createNativeQuery(sql); } }
QueryService { public Query createNativeQuery(final String sql) { return entityManager.createNativeQuery(sql); }  }
QueryService { public Query createNativeQuery(final String sql) { return entityManager.createNativeQuery(sql); }  Query createQuery(final String qls); Query createQuery(final String qls, final Class<?> clazz); Query createNativeQuery(final String sql); Query createNativeQuery(final String sql, final Class<?> clazz); }
QueryService { public Query createNativeQuery(final String sql) { return entityManager.createNativeQuery(sql); }  Query createQuery(final String qls); Query createQuery(final String qls, final Class<?> clazz); Query createNativeQuery(final String sql); Query createNativeQuery(final String sql, final Class<?> clazz);  }