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