@Test public void createQuery() { assertNotNull(repository.save(EntityUtil.getSamplePermission())); final Query query = queryService.createQuery("select e from BPermission e"); assertNotNull(query); final List<?> resultList = query.getResultList(); assertNotNull(resultList); assertFalse(resultList.isEmpty()); }
public Query createQuery(final String qls) { return entityManager.createQuery(qls); }
QueryService { public Query createQuery(final String qls) { return entityManager.createQuery(qls); } }
QueryService { public Query createQuery(final String qls) { return entityManager.createQuery(qls); }  }
QueryService { public Query createQuery(final String qls) { return entityManager.createQuery(qls); }  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 createQuery(final String qls) { return entityManager.createQuery(qls); }  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);  }