Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package beans; import java.io.Serializable; import org.joda.time.LocalDate; /** * * @author S018248 */ public class Compensation implements Serializable { private static long serialVersionUID = 1L; private boolean isActive; private LocalDate beginDate; private LocalDate endDate; public Compensation() { isActive = false; beginDate = LocalDate.now(); endDate = LocalDate.now(); } /** * @return the isActive */ public boolean isActive() { return isActive; } /** * @param isActive the isActive to set */ public void setActive(boolean isActive) { this.isActive = isActive; } /** * @return the beginDate */ public LocalDate getBeginDate() { return beginDate; } /** * @param beginDate the beginDate to set */ public void setBeginDate(LocalDate beginDate) { this.beginDate = beginDate; } /** * @return the endDate */ public LocalDate getEndDate() { return endDate; } /** * @param endDate the endDate to set */ public void setEndDate(LocalDate endDate) { this.endDate = endDate; } }