Hibernate interceptor implementation.