helllo,
i have a collection of objetcs of some common type,
and i wonder if is possible to use the Session.createFilter method
to well, filter, the collection based on the subclass
or is it possible to do it other way without having to fetch all the objetcs first??
for instance, say i have a user with a collection of books, and those books are of different kind, is it possible to say something like:
Code:
session.createFilter(user.getBooks(), "where book.class instanceof Thesis") ;
thanks in advance for any help