| See how to apply the result transformer to FullTextQueries. We might need an additional option when building the query, so that a FullTextQuery<R> is returned even though it targets entities of type T, with T != R. See javax.persistence.EntityManager#createQuery(java.lang.String, java.lang.Class<T>) for instance: the class parameter denotes the return type of the query, not the targeted entity type. |