Class LecturerBookingPropagationEntityListener

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

public class LecturerBookingPropagationEntityListener extends CollectingEntityListener
Creates and deletes Reservation_lecturer_booking entities. To prevent duplicates if a Lecturer_booking and a Reservation is created at the same time, this listener only generates Reservation_lecturer_bookings if the Reservation to relate to the Reservation_lecturer_booking is not in state Entity.State.CONCEPTION. Reservations in the Entity.State.CONCEPTION are handle by the ReservationPropagationEntityListener.