/**
* HibernatePlugin
- * @version $Id: HibernatePlugin.java,v 1.2 2003/09/18 21:42:17 idfx Exp $
+ * @version $Id: HibernatePlugin.java,v 1.3 2003/09/30 19:28:42 idfx Exp $
* @author idefix
*/
public class HibernatePlugin implements PlugIn {
+ private SessionFactory factory;
/**
* @see org.apache.struts.action.PlugIn#destroy()
*/
public void destroy() {
+ if(factory != null){
+ try {
+ factory.close();
+ } catch (HibernateException e) {
+ e.printStackTrace();
+ }
+ }
}
/**