General J2EE: hibernate
I am following hibernate tutorial 3.2. when servlet is compiled with ant it is giving errors like getCurrentSession(), getTransaction() not found. I included import org.hibernate.SessionFactory, org.hibernate.impl.SessionImpl; but the program giving errors. Not able to know how to resolve. Any help is appreciated. Thanks in advance. Bye.
I use commands pattern to wrap the transactions and sessions. Look at http://fishbolt.org/java/org.fishbolt.hibernate/doc/article.en.html#Architecture for the details. Do not forget about the CoreManagerFilter class in example.