return context.executeQuery(jpaQuery);
}
private Query createJpaQuery(CdiQueryInvocationContext context) {
Parameters params = context.getParams();
QueryRoot root = context.getDaoMethod().getQueryRoot();
String jpqlQuery = context.applyQueryStringPostProcessors(root.getJpqlQuery());
context.setQueryString(jpqlQuery);
Query result = params.applyTo(context.getEntityManager().createQuery(jpqlQuery));
return applyRestrictions(context, result);
}