flowacademyhu / zeta-absencemanager

GNU General Public License v3.0
0 stars 2 forks source link

Model definitions #3

Open rastasi opened 5 years ago

rastasi commented 5 years ago
Veresgabi commented 5 years ago

Teszt

Veresgabi commented 5 years ago

public class AbsenceModel {

private Integer id;
private Date createdAt;
private enum type {
};
private String summary;
private Date begin;
private Date end;
private UserModel reporter; // ManyToOne
private UserModel assignee;
private enum status {
}

}

public class UserModel {

private Integer id;
private String firstName;
private String lastName;
private Date dateOfBirth;
private Email email;
private Date dateOfEntry;
private Date dateOfEndTrial;
private Boolean isOnTrial;
private DepartmentModel departmentModel;
private GroupModel groupModel;
private String position;
private String leader;
private Integer numberOfChildren;
private String otherAbsenceEnt;

private List<AbsenceModel> absences;
private Integer totalAbsences;
private Integer availableAbsences;
private Double proratedTakenAbsence;

private Integer totalSickAbsence;
private Integer takenSickAbsence;
private Integer availableSickAbsence;

private Integer takenSickPay;
// private Double sickAbsenceSickPayRate;

private Integer childSickPay;

ublic class GroupModel {

private Integer id;
private String name;
private String leader;
private DepartmentModel department;
private List<UserModel> employees;

private Integer totalAbsences;
private Integer takenAbsences;
private Integer availableAbsences;
private Double proratedTakenAbsence;

private Integer totalSickAbsence;
private Integer takenSickAbsence;
private Integer availableSickAbsence;

private Integer takenSickPay;
// private Double sickAbsenceSickPayRate;

private Integer childSickPay;

public class DepartmentModel {

private Integer id;
private String name;
private String leader;
private List<GroupModel> groups;

private Integer totalAbsences;
private Integer takenAbsences;
private Integer availableAbsences;
private Double proratedTakenAbsence;

private Integer totalSickAbsence;
private Integer takenSickAbsence;
private Integer availableSickAbsence;

private Integer takenSickPay;
// private Double sickAbsenceSickPayRate;

private Integer childSickPay;