Details
-
Enhancement
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
None
Description
Assuming we'll baseline on Java7, it would be very nice to have the following code valid and changing the default Fetch to LAZY:
Query query = queryBuilder.all().createQuery(); CacheQuery cacheQuery = searchManager.getQuery(query, Bean.class); for (Object object : cacheQuery) { ... }
the problem is the implicit iterable opened needs to be closed.
see also ISPN-2874.