Code example for EmptyInterceptor

 * Hibernate data operations. 
 * @author Erez Mazor ( 
public class HibernateEntityInterceptor extends EmptyInterceptor {
   private static final long serialVersionUID = 1L;
   private static final Log LOG = LogFactory
   public boolean onSave(final Object entity, final Serializable id,
         final Object[] state, final String[] propertyNames, final Type[] types) {
      if (LOG.isDebugEnabled()) {
         LOG.debug("HibernateEntityInterceptor.onSave(): "
               + createEntityString(entity, id));
      return true; 
Connect your IDE to all the code out there  Get Codota for Java