Session s = null; LogEvent le = new LogEvent(method.getName(), new Date()); try { s = factory.openSession(); s.save(le); } catch (Exception ex) { // log the exception } finally { s.close(); }
return this.factory;
this.factory = factory;