hibernate/hibernate-core — pull request #206 by nafeger (2011-10-31 16:22:09+00:00)
Title: Propose removing the dependecy of Session on SessionFactoryImpl

I'm not sure if the appropriate way to begin this discussion is with a pull request, but with some code at least it could be discussed. This change Modifies AbstractSession and it's decendant classes such that they only rely on SessionFactoryImplementor instead of SessionFactoryImpl.

This change would allow an end user to make a delegate session that can properly conform to the interface.

Ultimately, my goal is to be able to create a threadlocal statistics service, (not necessarily packed with hibernate, but as a client of the library) and this is one step in that direction.

Thanks,
Nathan