List of usage examples for org.hibernate.event.service.internal EventListenerRegistryImpl EventListenerRegistryImpl
EventListenerRegistryImpl
From source file:edu.nps.moves.mmowgli.hibernate.AbstractVHib.java
License:Open Source License
protected void init2() { if (initted2) return;/* ww w . j ava2 s . c o m*/ initted2 = true; try { // Set up the mapping addAnnotatedClasses(getExampleMappedClass(), cnf); StandardServiceRegistryBuilder srb = new StandardServiceRegistryBuilder(); srb.applySettings(cnf.getProperties()); srb.addService(EventListenerRegistry.class, new EventListenerRegistryImpl()); // have to add manually sr = srb.build(); sf = cnf.buildSessionFactory(sr); } catch (Throwable ex) { commonInitCatch(ex); } }