Aggiungere un listener alle istanze MessageInstance package it.sistematica.isharedoc.persistence; import it.neverworks.data.EntityManager; import it.sistematica.isharedoc.model.instance.MessageInstance; import javax.annotation.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; @Repository public class NumeraSchedeInstanceListener implements CustomInterceptor.Methods<MessageInstance> { private final static Logger logger = LoggerFactory.getLogger(NumeraSchedeInstanceListener.class); @Autowired public NumeraSchedeInstanceListener(CustomInterceptor ci) { ci.addInterceptor(MessageInstance.class, this); } @Resource EntityManager entities; @Override public void onAfterSave(MessageInstance instance) { } […]