Basically I want to have another option for the initializeObjectsWith Method to be able to specify a custom loader that is to be checked right after the persistence context but before the 2nd level cache. This should be done on the specific fullTextQuery instance so a user can enable that for specific queries only (that would kill the problem with different versions of initialized objects, i.e. the one is fully initialized and the other not).
something like this:
{code} FullTextQuery query = session.createFullTextQuery(luceneQuery, User.class); query.initializeObjectWith( ObjectLookupMethod.SECOND_LEVEL_CACHE, DatabaseRetrievalMethod.QUERY, _MY_INITIALIZER_); {code}
|