|
During construction of org.hibernate.internal.SessionFactoryImpl, an anonymous class (SessionFactoryOptions) is created. This class has an implicit references to redundant objects. As result the garbage collector cannot delete them. I think that it's better to create this class not as anonymous one and construct him with only relevant parameters (my implementation is attached).
|