Hibernate version: 3.2.5.ga
Hi,
I read in
http://hibernate.org/42.html#A11 about the HibernateUtil class. This class works perfectly in my web application (including c3p0 pool).
But,
the Hibernate Tools, in the Reverse Engineering option, always generate two classes for each table: <TABLE_NAME>.java and <TABLE_NAME>Home.java.
The generated <TABLE_NAME>Home.java don't use my HibernateUtil.java to open the session. Is possible to make Hibernate Tools generate the class whitout the
Code:
getSessionFactory()
method, and using
Code:
HibernateUtil.getSession()
instead
Code:
sessionFactory.getCurrentSession()
?
Thanks the support.