// configure.getEventListeners().setPreUpdateEventListeners(
// new PreUpdateEventListener[] { new PreUpdateListener() });
// configure.getEventListeners().setLoadEventListeners(
// new LoadEventListener[] { new LoadListener(),
// new DefaultLoadEventListener() });
final SessionFactory sessionFactory = configure.buildSessionFactory();
// Session session = sessionFactory.openSession();
// Transaction transaction = session.beginTransaction();
// session.createQuery("from Stanowisko").list();
// Stanowisko s = (Stanowisko) session.load(Stanowisko.class, 1);
// s.setNazwa(System.currentTimeMillis() + " miro");