Class InheritIncomeTask

java.lang.Object
ch.tocco.nice2.optional.salary.api.tasks.InheritIncomeTask
All Implemented Interfaces:
OptionalTask<Entity,Void>, PersistTask<Entity,Void>

public class InheritIncomeTask extends Object implements OptionalTask<Entity,Void>
if the field 'income_per_hour' on the given Lecturer_booking Entity is null and the Lecturer_booking has a related salary Entity, the field 'income_per_hour' of the Salary will be copied to the field 'income_per_hour' on the Lecturer_booking. You may force overwriting of the 'income_per_hour' field by using the constructor InheritIncomeTask(boolean)