Class SetDefaultSalaryOnLecturerBookingEntityListener

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

public class SetDefaultSalaryOnLecturerBookingEntityListener extends CollectingEntityListener
if no salary is set for a created Lecturer_booking, set default salary of user (plus copy income_per_hour and Salary_type to Lecturer_booking) Note: If a Lecturer_booking has no salary, the set values for income_per_hour and Salary_type are overridden