mirror of https://github.com/apache/openjpa.git
OPENJPA-1561: Cache criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f0f89c7e0e
commit
572d593427
|
@ -1042,8 +1042,8 @@ public class EntityManagerImpl
|
|||
return newQueryImpl(kernelQuery);
|
||||
}
|
||||
|
||||
protected <X> QueryImpl<X> newQueryImpl(org.apache.openjpa.kernel.Query kernelQuery) {
|
||||
return new QueryImpl<X>(this, _ret, kernelQuery);
|
||||
protected <T> QueryImpl<T> newQueryImpl(org.apache.openjpa.kernel.Query kernelQuery) {
|
||||
return new QueryImpl<T>(this, _ret, kernelQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1565,7 +1565,7 @@ public class EntityManagerImpl
|
|||
|
||||
org.apache.openjpa.kernel.Query kernelQuery =_broker.newQuery(CriteriaBuilderImpl.LANG_CRITERIA, criteriaQuery);
|
||||
|
||||
QueryImpl<T> facadeQuery = newQueryImpl(kernelQuery);
|
||||
QueryImpl<T> facadeQuery = newQueryImpl(kernelQuery).setId(criteriaQuery.toString());
|
||||
Set<ParameterExpression<?>> params = criteriaQuery.getParameters();
|
||||
|
||||
for (ParameterExpression<?> param : params) {
|
||||
|
|
Loading…
Reference in New Issue