Class OneStandardValueEntityListener

java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingEntityListener
ch.tocco.nice2.entityoperation.impl.entitylistener.OneStandardValueEntityListener
All Implemented Interfaces:
ContextListener, EntityFacadeListener, CommitListener, EventListener

public class OneStandardValueEntityListener extends CollectingEntityListener
this listener makes sure that always one specified default value exists. If the user creates a default Entity the listener will remove the standard flag from the other default Entity.