@@ -0,0 +1,2087 @@
+package devopsdistilled.operp.server.data.entity.hr;%0A%0Aimport java.util.Date;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;%0A%0Aimport devopsdistilled.operp.server.data.entity.Entiti;%0Aimport devopsdistilled.operp.server.data.entity.account.PayableAccount;%0Aimport devopsdistilled.operp.server.data.entity.commons.ContactInfo;%0A%0A@Entity%0Apublic class Employee extends Entiti%3CLong%3E %7B%0A%0A%09private static final long serialVersionUID = -7806347667142118294L;%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09private Long employeeId;%0A%0A%09private String employeeName;%0A%0A%09private ContactInfo contactInfo;%0A%0A%09private PayableAccount account;%0A%0A%09private Double salary;%0A%0A%09private String designation;%0A%0A%09@Temporal(TemporalType.DATE)%0A%09private Date joinedDate;%0A%0A%09public Long getEmployeeId() %7B%0A%09%09return employeeId;%0A%09%7D%0A%0A%09public void setEmployeeId(Long employeeId) %7B%0A%09%09this.employeeId = employeeId;%0A%09%7D%0A%0A%09public String getEmployeeName() %7B%0A%09%09return employeeName;%0A%09%7D%0A%0A%09public ContactInfo getContactInfo() %7B%0A%09%09return contactInfo;%0A%09%7D%0A%0A%09public void setContactInfo(ContactInfo contactInfo) %7B%0A%09%09this.contactInfo = contactInfo;%0A%09%7D%0A%0A%09public void setEmployeeName(String employeeName) %7B%0A%09%09this.employeeName = employeeName;%0A%09%7D%0A%0A%09public PayableAccount getAccount() %7B%0A%09%09return account;%0A%09%7D%0A%0A%09public void setAccount(PayableAccount account) %7B%0A%09%09this.account = account;%0A%09%7D%0A%0A%09public Double getSalary() %7B%0A%09%09return salary;%0A%09%7D%0A%0A%09public void setSalary(Double salary) %7B%0A%09%09this.salary = salary;%0A%09%7D%0A%0A%09public String getDesignation() %7B%0A%09%09return designation;%0A%09%7D%0A%0A%09public void setDesignation(String designation) %7B%0A%09%09this.designation = designation;%0A%09%7D%0A%0A%09public Date getJoinedDate() %7B%0A%09%09return joinedDate;%0A%09%7D%0A%0A%09public void setJoinedDate(Date joinedDate) %7B%0A%09%09this.joinedDate = joinedDate;%0A%09%7D%0A%0A%09@Override%0A%09public Long id() %7B%0A%09%09return getEmployeeId();%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return new String(getEmployeeId().toString() + %22: %22 + getEmployeeName());%0A%09%7D%0A%7D%0A

Add Entity Employee