class DropMillisecondsHibernateInterceptor extends EmptyInterceptor {

	@Override
	public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
		return removeMillisecondsFromDateFields(state);
	}

}