LOGGER.error("Exception Occured while creating Log database Hibernate session"+ex);
}
}
+
+ private HibernateSession(){
+ /**
+ empty implementation
+ */
+ }
+
public static Session getSession(){
return logSessionFactory.openSession();
}
+
+ public static void setSession(SessionFactory logSessionFactory1){
+ logSessionFactory = logSessionFactory1;
+ }
+
}