-
Enhancement
-
Resolution: Done
-
Minor
-
None
-
None
In example for Books in https://docs.jboss.org/author/display/ISPN/Querying+Infinispan
~~ snip snip ~~
CacheQuery query = searchManager.getQuery(luceneQuery, Book.class);
// and there are your results!
List<Book> objectList = query.list();
~~ snip snip ~~
This doesn't actually work. CacheQuery.list() returns List<Object>
Thus, you will need to cast: List<Book> books = (List<Book>) cq.list();
But this wouldn't work... Instead you'll end up doing: List<Book> books = (List<Book>)(List<?>) cq.list();
- relates to
-
ISPN-2529 Simplify Query API
- Closed