

package gov.va.med.tfs.persistence.hibernate;



import org.hibernate.SessionFactory;


public abstract class AbstractHibernatePersistenceManager
{
    protected SessionFactory sessionFactory;


    /**
     * Loads the session factory on start-up as directed by Spring injection.
     * 
     * @param aSessionFactory session factory passed in from spring injection.
     */
    final public void setSessionFactory( SessionFactory aSessionFactory )
    {
        System.out.println("thread Id: " + Thread.currentThread().getName() );
    	System.out.println("injected sessionFactory: " + aSessionFactory);
        sessionFactory = aSessionFactory;
    }

}
