Get the hibernate implementation of the query this factory wishes to generate. Any parameters for the
query should be set, as should whether the query is cacheable or not. Limits (offset/max results) will
be set by the DAO.
session - the hibernate session in which to create the query
parameters - the parameters to be set on the query