Class ReferenceCodeCreateEntityListener

java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener<CollectingAfterFlushEntityListener.EntityContext>
ch.tocco.nice2.optional.finance.impl.entitylistener.ReferenceCodeCreateEntityListener
All Implemented Interfaces:
EntityFacadeListener, CommitListener, EventListener

@Component public class ReferenceCodeCreateEntityListener extends CollectingAfterFlushEntityListener<CollectingAfterFlushEntityListener.EntityContext>
generates a reference code for an order, when it is created uses ReferenceCodeService CollectingAfterCommitListener because it needs the order number, which is generated on flush