Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] cacheQueryResults in JPA ?

hello,

Im trying to enable query result set caching, but i fail to understand how to do it in JPA .

ELUG example is:
ReadObjectQuery query = new ReadObjectQuery(SurveillanceCompany.class);
query.cacheQueryResults();
SurveillanceCompany sc = (SurveillanceCompany) session.executeQuery(query);

thanks
 gustav


Back to the top