List of usage examples for org.hibernate.event.spi FlushEvent getSession
public final EventSource getSession()
From source file:org.granite.tide.hibernate4.HibernateFlushListener.java
License:Open Source License
@Override public void onFlush(FlushEvent event) throws HibernateException { try {//from ww w . j a v a2 s.c o m super.onFlush(event); } catch (StaleObjectStateException e) { HibernateOptimisticLockException.rethrowOptimisticLockException(event.getSession(), e); } }