Constructor used in building "child sessions".
Check if there is a Hibernate or JTA transaction in progress and, if there is
not, flush if necessar
detect in-memory changes, determine if the changes are to tables named in the
query and, if so, comp
clear all the internal collections, just to help the garbage collector, does not
clear anything that
Retrieve a list of persistent objects using a hibernate query