/**
* HibernatePlugin
- * @version $Id: HibernatePlugin.java,v 1.1 2003/09/05 20:23:59 idfx Exp $
+ * @version $Id: HibernatePlugin.java,v 1.2 2003/09/18 21:42:17 idfx Exp $
* @author idefix
*/
public class HibernatePlugin implements PlugIn {
*/
public void init(ActionServlet actionServlet, ModuleConfig config)
throws ServletException {
- try {
- SessionFactory factory =
- new Configuration().configure().buildSessionFactory();
- actionServlet.getServletContext()
- .setAttribute(ServletConstants.SESSION_FACTORY, factory);
- } catch (HibernateException e) {
- throw new ServletException(e);
- }
+ try {
+ SessionFactory factory =
+ new Configuration().configure().buildSessionFactory();
+ actionServlet.getServletContext()
+ .setAttribute(ServletConstants.SESSION_FACTORY, factory);
+ } catch (HibernateException e) {
+ throw new ServletException(e);
+ }
}
}