General J2EE: hibernate

  1. hibernate (1 messages)

    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.

    Threaded Messages (1)

  2. Small solution[ Go to top ]

    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.