If I remember correctly, the Hibernate tutorial demonstrates the use of a "HibernateUtil" class that has a static method to fetch the Session Factory.
Originally Posted by skadiy000
This is how you could declare your Session Factory (using this HibernateUtil that is discussed in the Hibernate tutorial) in your spring beans document:
Using a static factory method is discussed here: http://static.springframework.org/sp...factory-method
<bean id="sessionFactory" class="util.HibernateUtil" factory-method="getSessionFactory" />