All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.api.dtos.EmployeeDTO Maven / Gradle / Ivy

There is a newer version: 0.1.1-RELEASE
Show newest version
package tech.deepdreams.worker.api.dtos;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import tech.deepdreams.worker.api.dtos.BankDTO;
import tech.deepdreams.worker.api.dtos.CategoryDTO;
import tech.deepdreams.worker.api.dtos.ChildDTO;
import tech.deepdreams.worker.api.dtos.EchelonDTO;
import tech.deepdreams.worker.api.dtos.FunctionDTO;
import tech.deepdreams.worker.api.dtos.OperatorDTO;
import tech.deepdreams.worker.api.dtos.PositionDTO;
import tech.deepdreams.worker.api.dtos.ResourcePersonDTO;
import tech.deepdreams.worker.api.dtos.StatusDTO;
import tech.deepdreams.worker.api.dtos.SubscriberDTO;
import tech.deepdreams.worker.api.dtos.UnitDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * EmployeeDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class EmployeeDTO   {
  @JsonProperty("id")
  private Long id;

  @JsonProperty("firstName")
  private String firstName;

  @JsonProperty("lastName")
  private String lastName;

  @JsonProperty("gender")
  private String gender;

  @JsonProperty("maritalStatus")
  private String maritalStatus;

  @JsonProperty("birthDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate birthDate;

  @JsonProperty("partnerDeathDay")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate partnerDeathDay;

  @JsonProperty("partnerTaxedSeparately")
  private Boolean partnerTaxedSeparately;

  @JsonProperty("wifeHasIncome")
  private Boolean wifeHasIncome;

  @JsonProperty("otherDependents")
  private Integer otherDependents;

  @JsonProperty("numberOfShares")
  private Double numberOfShares;

  @JsonProperty("socialSecurityNumber")
  private String socialSecurityNumber;

  @JsonProperty("registrationNumber")
  private String registrationNumber;

  @JsonProperty("position")
  private PositionDTO position;

  @JsonProperty("unit")
  private UnitDTO unit;

  @JsonProperty("category")
  private CategoryDTO category;

  @JsonProperty("echelon")
  private EchelonDTO echelon;

  @JsonProperty("function")
  private FunctionDTO function;

  @JsonProperty("status")
  private StatusDTO status;

  @JsonProperty("subscriber")
  private SubscriberDTO subscriber;

  @JsonProperty("startDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate startDate;

  @JsonProperty("endDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate endDate;

  @JsonProperty("contractType")
  private String contractType;

  @JsonProperty("contractDuration")
  private Integer contractDuration;

  @JsonProperty("weeklyWorkingHours")
  private Double weeklyWorkingHours;

  @JsonProperty("annualLeaveDays")
  private Double annualLeaveDays;

  @JsonProperty("monthlyLeaveDays")
  private Double monthlyLeaveDays;

  @JsonProperty("annualAbsenceDays")
  private Double annualAbsenceDays;

  @JsonProperty("baseSalary")
  private BigDecimal baseSalary;

  @JsonProperty("retirementAge")
  private Integer retirementAge;

  @JsonProperty("bank")
  private BankDTO bank;

  @JsonProperty("bankAccount")
  private String bankAccount;

  @JsonProperty("bankAccountKey")
  private String bankAccountKey;

  @JsonProperty("operator")
  private OperatorDTO operator;

  @JsonProperty("momoNumber")
  private String momoNumber;

  @JsonProperty("phoneNumber")
  private String phoneNumber;

  @JsonProperty("emailAddress")
  private String emailAddress;

  @JsonProperty("address")
  private String address;

  @JsonProperty("suspensionDays")
  private Integer suspensionDays;

  @JsonProperty("suspensionDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate suspensionDate;

  @JsonProperty("terminationReason")
  private String terminationReason;

  @JsonProperty("children")
  
  private List children = null;

  @JsonProperty("resourcePersons")
  
  private List resourcePersons = null;

  @JsonProperty("state")
  private String state;

  public EmployeeDTO id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  */
  @ApiModelProperty(value = "")
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public EmployeeDTO firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

  /**
   * Get firstName
   * @return firstName
  */
  @ApiModelProperty(value = "")
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public EmployeeDTO lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

  /**
   * Get lastName
   * @return lastName
  */
  @ApiModelProperty(value = "")
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public EmployeeDTO gender(String gender) {
    this.gender = gender;
    return this;
  }

  /**
   * Get gender
   * @return gender
  */
  @ApiModelProperty(value = "")
  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  public EmployeeDTO maritalStatus(String maritalStatus) {
    this.maritalStatus = maritalStatus;
    return this;
  }

  /**
   * Get maritalStatus
   * @return maritalStatus
  */
  @ApiModelProperty(value = "")
  public String getMaritalStatus() {
    return maritalStatus;
  }

  public void setMaritalStatus(String maritalStatus) {
    this.maritalStatus = maritalStatus;
  }

  public EmployeeDTO birthDate(LocalDate birthDate) {
    this.birthDate = birthDate;
    return this;
  }

  /**
   * Get birthDate
   * @return birthDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getBirthDate() {
    return birthDate;
  }

  public void setBirthDate(LocalDate birthDate) {
    this.birthDate = birthDate;
  }

  public EmployeeDTO partnerDeathDay(LocalDate partnerDeathDay) {
    this.partnerDeathDay = partnerDeathDay;
    return this;
  }

  /**
   * Get partnerDeathDay
   * @return partnerDeathDay
  */
  @ApiModelProperty(value = "")
  public LocalDate getPartnerDeathDay() {
    return partnerDeathDay;
  }

  public void setPartnerDeathDay(LocalDate partnerDeathDay) {
    this.partnerDeathDay = partnerDeathDay;
  }

  public EmployeeDTO partnerTaxedSeparately(Boolean partnerTaxedSeparately) {
    this.partnerTaxedSeparately = partnerTaxedSeparately;
    return this;
  }

  /**
   * Get partnerTaxedSeparately
   * @return partnerTaxedSeparately
  */
  @ApiModelProperty(value = "")
  public Boolean getPartnerTaxedSeparately() {
    return partnerTaxedSeparately;
  }

  public void setPartnerTaxedSeparately(Boolean partnerTaxedSeparately) {
    this.partnerTaxedSeparately = partnerTaxedSeparately;
  }

  public EmployeeDTO wifeHasIncome(Boolean wifeHasIncome) {
    this.wifeHasIncome = wifeHasIncome;
    return this;
  }

  /**
   * Get wifeHasIncome
   * @return wifeHasIncome
  */
  @ApiModelProperty(value = "")
  public Boolean getWifeHasIncome() {
    return wifeHasIncome;
  }

  public void setWifeHasIncome(Boolean wifeHasIncome) {
    this.wifeHasIncome = wifeHasIncome;
  }

  public EmployeeDTO otherDependents(Integer otherDependents) {
    this.otherDependents = otherDependents;
    return this;
  }

  /**
   * Get otherDependents
   * @return otherDependents
  */
  @ApiModelProperty(value = "")
  public Integer getOtherDependents() {
    return otherDependents;
  }

  public void setOtherDependents(Integer otherDependents) {
    this.otherDependents = otherDependents;
  }

  public EmployeeDTO numberOfShares(Double numberOfShares) {
    this.numberOfShares = numberOfShares;
    return this;
  }

  /**
   * Get numberOfShares
   * @return numberOfShares
  */
  @ApiModelProperty(value = "")
  public Double getNumberOfShares() {
    return numberOfShares;
  }

  public void setNumberOfShares(Double numberOfShares) {
    this.numberOfShares = numberOfShares;
  }

  public EmployeeDTO socialSecurityNumber(String socialSecurityNumber) {
    this.socialSecurityNumber = socialSecurityNumber;
    return this;
  }

  /**
   * Get socialSecurityNumber
   * @return socialSecurityNumber
  */
  @ApiModelProperty(value = "")
  public String getSocialSecurityNumber() {
    return socialSecurityNumber;
  }

  public void setSocialSecurityNumber(String socialSecurityNumber) {
    this.socialSecurityNumber = socialSecurityNumber;
  }

  public EmployeeDTO registrationNumber(String registrationNumber) {
    this.registrationNumber = registrationNumber;
    return this;
  }

  /**
   * Get registrationNumber
   * @return registrationNumber
  */
  @ApiModelProperty(value = "")
  public String getRegistrationNumber() {
    return registrationNumber;
  }

  public void setRegistrationNumber(String registrationNumber) {
    this.registrationNumber = registrationNumber;
  }

  public EmployeeDTO position(PositionDTO position) {
    this.position = position;
    return this;
  }

  /**
   * Get position
   * @return position
  */
  @ApiModelProperty(value = "")
  public PositionDTO getPosition() {
    return position;
  }

  public void setPosition(PositionDTO position) {
    this.position = position;
  }

  public EmployeeDTO unit(UnitDTO unit) {
    this.unit = unit;
    return this;
  }

  /**
   * Get unit
   * @return unit
  */
  @ApiModelProperty(value = "")
  public UnitDTO getUnit() {
    return unit;
  }

  public void setUnit(UnitDTO unit) {
    this.unit = unit;
  }

  public EmployeeDTO category(CategoryDTO category) {
    this.category = category;
    return this;
  }

  /**
   * Get category
   * @return category
  */
  @ApiModelProperty(value = "")
  public CategoryDTO getCategory() {
    return category;
  }

  public void setCategory(CategoryDTO category) {
    this.category = category;
  }

  public EmployeeDTO echelon(EchelonDTO echelon) {
    this.echelon = echelon;
    return this;
  }

  /**
   * Get echelon
   * @return echelon
  */
  @ApiModelProperty(value = "")
  public EchelonDTO getEchelon() {
    return echelon;
  }

  public void setEchelon(EchelonDTO echelon) {
    this.echelon = echelon;
  }

  public EmployeeDTO function(FunctionDTO function) {
    this.function = function;
    return this;
  }

  /**
   * Get function
   * @return function
  */
  @ApiModelProperty(value = "")
  public FunctionDTO getFunction() {
    return function;
  }

  public void setFunction(FunctionDTO function) {
    this.function = function;
  }

  public EmployeeDTO status(StatusDTO status) {
    this.status = status;
    return this;
  }

  /**
   * Get status
   * @return status
  */
  @ApiModelProperty(value = "")
  public StatusDTO getStatus() {
    return status;
  }

  public void setStatus(StatusDTO status) {
    this.status = status;
  }

  public EmployeeDTO subscriber(SubscriberDTO subscriber) {
    this.subscriber = subscriber;
    return this;
  }

  /**
   * Get subscriber
   * @return subscriber
  */
  @ApiModelProperty(value = "")
  public SubscriberDTO getSubscriber() {
    return subscriber;
  }

  public void setSubscriber(SubscriberDTO subscriber) {
    this.subscriber = subscriber;
  }

  public EmployeeDTO startDate(LocalDate startDate) {
    this.startDate = startDate;
    return this;
  }

  /**
   * Get startDate
   * @return startDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getStartDate() {
    return startDate;
  }

  public void setStartDate(LocalDate startDate) {
    this.startDate = startDate;
  }

  public EmployeeDTO endDate(LocalDate endDate) {
    this.endDate = endDate;
    return this;
  }

  /**
   * Get endDate
   * @return endDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getEndDate() {
    return endDate;
  }

  public void setEndDate(LocalDate endDate) {
    this.endDate = endDate;
  }

  public EmployeeDTO contractType(String contractType) {
    this.contractType = contractType;
    return this;
  }

  /**
   * Get contractType
   * @return contractType
  */
  @ApiModelProperty(value = "")
  public String getContractType() {
    return contractType;
  }

  public void setContractType(String contractType) {
    this.contractType = contractType;
  }

  public EmployeeDTO contractDuration(Integer contractDuration) {
    this.contractDuration = contractDuration;
    return this;
  }

  /**
   * Get contractDuration
   * @return contractDuration
  */
  @ApiModelProperty(value = "")
  public Integer getContractDuration() {
    return contractDuration;
  }

  public void setContractDuration(Integer contractDuration) {
    this.contractDuration = contractDuration;
  }

  public EmployeeDTO weeklyWorkingHours(Double weeklyWorkingHours) {
    this.weeklyWorkingHours = weeklyWorkingHours;
    return this;
  }

  /**
   * Get weeklyWorkingHours
   * @return weeklyWorkingHours
  */
  @ApiModelProperty(value = "")
  public Double getWeeklyWorkingHours() {
    return weeklyWorkingHours;
  }

  public void setWeeklyWorkingHours(Double weeklyWorkingHours) {
    this.weeklyWorkingHours = weeklyWorkingHours;
  }

  public EmployeeDTO annualLeaveDays(Double annualLeaveDays) {
    this.annualLeaveDays = annualLeaveDays;
    return this;
  }

  /**
   * Get annualLeaveDays
   * @return annualLeaveDays
  */
  @ApiModelProperty(value = "")
  public Double getAnnualLeaveDays() {
    return annualLeaveDays;
  }

  public void setAnnualLeaveDays(Double annualLeaveDays) {
    this.annualLeaveDays = annualLeaveDays;
  }

  public EmployeeDTO monthlyLeaveDays(Double monthlyLeaveDays) {
    this.monthlyLeaveDays = monthlyLeaveDays;
    return this;
  }

  /**
   * Get monthlyLeaveDays
   * @return monthlyLeaveDays
  */
  @ApiModelProperty(value = "")
  public Double getMonthlyLeaveDays() {
    return monthlyLeaveDays;
  }

  public void setMonthlyLeaveDays(Double monthlyLeaveDays) {
    this.monthlyLeaveDays = monthlyLeaveDays;
  }

  public EmployeeDTO annualAbsenceDays(Double annualAbsenceDays) {
    this.annualAbsenceDays = annualAbsenceDays;
    return this;
  }

  /**
   * Get annualAbsenceDays
   * @return annualAbsenceDays
  */
  @ApiModelProperty(value = "")
  public Double getAnnualAbsenceDays() {
    return annualAbsenceDays;
  }

  public void setAnnualAbsenceDays(Double annualAbsenceDays) {
    this.annualAbsenceDays = annualAbsenceDays;
  }

  public EmployeeDTO baseSalary(BigDecimal baseSalary) {
    this.baseSalary = baseSalary;
    return this;
  }

  /**
   * Get baseSalary
   * @return baseSalary
  */
  @ApiModelProperty(value = "")
  public BigDecimal getBaseSalary() {
    return baseSalary;
  }

  public void setBaseSalary(BigDecimal baseSalary) {
    this.baseSalary = baseSalary;
  }

  public EmployeeDTO retirementAge(Integer retirementAge) {
    this.retirementAge = retirementAge;
    return this;
  }

  /**
   * Get retirementAge
   * @return retirementAge
  */
  @ApiModelProperty(value = "")
  public Integer getRetirementAge() {
    return retirementAge;
  }

  public void setRetirementAge(Integer retirementAge) {
    this.retirementAge = retirementAge;
  }

  public EmployeeDTO bank(BankDTO bank) {
    this.bank = bank;
    return this;
  }

  /**
   * Get bank
   * @return bank
  */
  @ApiModelProperty(value = "")
  public BankDTO getBank() {
    return bank;
  }

  public void setBank(BankDTO bank) {
    this.bank = bank;
  }

  public EmployeeDTO bankAccount(String bankAccount) {
    this.bankAccount = bankAccount;
    return this;
  }

  /**
   * Get bankAccount
   * @return bankAccount
  */
  @ApiModelProperty(value = "")
  public String getBankAccount() {
    return bankAccount;
  }

  public void setBankAccount(String bankAccount) {
    this.bankAccount = bankAccount;
  }

  public EmployeeDTO bankAccountKey(String bankAccountKey) {
    this.bankAccountKey = bankAccountKey;
    return this;
  }

  /**
   * Get bankAccountKey
   * @return bankAccountKey
  */
  @ApiModelProperty(value = "")
  public String getBankAccountKey() {
    return bankAccountKey;
  }

  public void setBankAccountKey(String bankAccountKey) {
    this.bankAccountKey = bankAccountKey;
  }

  public EmployeeDTO operator(OperatorDTO operator) {
    this.operator = operator;
    return this;
  }

  /**
   * Get operator
   * @return operator
  */
  @ApiModelProperty(value = "")
  public OperatorDTO getOperator() {
    return operator;
  }

  public void setOperator(OperatorDTO operator) {
    this.operator = operator;
  }

  public EmployeeDTO momoNumber(String momoNumber) {
    this.momoNumber = momoNumber;
    return this;
  }

  /**
   * Get momoNumber
   * @return momoNumber
  */
  @ApiModelProperty(value = "")
  public String getMomoNumber() {
    return momoNumber;
  }

  public void setMomoNumber(String momoNumber) {
    this.momoNumber = momoNumber;
  }

  public EmployeeDTO phoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    return this;
  }

  /**
   * Get phoneNumber
   * @return phoneNumber
  */
  @ApiModelProperty(value = "")
  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }

  public EmployeeDTO emailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
    return this;
  }

  /**
   * Get emailAddress
   * @return emailAddress
  */
  @ApiModelProperty(value = "")
  public String getEmailAddress() {
    return emailAddress;
  }

  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }

  public EmployeeDTO address(String address) {
    this.address = address;
    return this;
  }

  /**
   * Get address
   * @return address
  */
  @ApiModelProperty(value = "")
  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public EmployeeDTO suspensionDays(Integer suspensionDays) {
    this.suspensionDays = suspensionDays;
    return this;
  }

  /**
   * Get suspensionDays
   * @return suspensionDays
  */
  @ApiModelProperty(value = "")
  public Integer getSuspensionDays() {
    return suspensionDays;
  }

  public void setSuspensionDays(Integer suspensionDays) {
    this.suspensionDays = suspensionDays;
  }

  public EmployeeDTO suspensionDate(LocalDate suspensionDate) {
    this.suspensionDate = suspensionDate;
    return this;
  }

  /**
   * Get suspensionDate
   * @return suspensionDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getSuspensionDate() {
    return suspensionDate;
  }

  public void setSuspensionDate(LocalDate suspensionDate) {
    this.suspensionDate = suspensionDate;
  }

  public EmployeeDTO terminationReason(String terminationReason) {
    this.terminationReason = terminationReason;
    return this;
  }

  /**
   * Get terminationReason
   * @return terminationReason
  */
  @ApiModelProperty(value = "")
  public String getTerminationReason() {
    return terminationReason;
  }

  public void setTerminationReason(String terminationReason) {
    this.terminationReason = terminationReason;
  }

  public EmployeeDTO children(List children) {
    this.children = children;
    return this;
  }

  public EmployeeDTO addChildrenItem(ChildDTO childrenItem) {
    if (this.children == null) {
      this.children = new ArrayList<>();
    }
    this.children.add(childrenItem);
    return this;
  }

  /**
   * Get children
   * @return children
  */
  @ApiModelProperty(value = "")
  public List getChildren() {
    return children;
  }

  public void setChildren(List children) {
    this.children = children;
  }

  public EmployeeDTO resourcePersons(List resourcePersons) {
    this.resourcePersons = resourcePersons;
    return this;
  }

  public EmployeeDTO addResourcePersonsItem(ResourcePersonDTO resourcePersonsItem) {
    if (this.resourcePersons == null) {
      this.resourcePersons = new ArrayList<>();
    }
    this.resourcePersons.add(resourcePersonsItem);
    return this;
  }

  /**
   * Get resourcePersons
   * @return resourcePersons
  */
  @ApiModelProperty(value = "")
  public List getResourcePersons() {
    return resourcePersons;
  }

  public void setResourcePersons(List resourcePersons) {
    this.resourcePersons = resourcePersons;
  }

  public EmployeeDTO state(String state) {
    this.state = state;
    return this;
  }

  /**
   * Get state
   * @return state
  */
  @ApiModelProperty(value = "")
  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EmployeeDTO employee = (EmployeeDTO) o;
    return Objects.equals(this.id, employee.id) &&
        Objects.equals(this.firstName, employee.firstName) &&
        Objects.equals(this.lastName, employee.lastName) &&
        Objects.equals(this.gender, employee.gender) &&
        Objects.equals(this.maritalStatus, employee.maritalStatus) &&
        Objects.equals(this.birthDate, employee.birthDate) &&
        Objects.equals(this.partnerDeathDay, employee.partnerDeathDay) &&
        Objects.equals(this.partnerTaxedSeparately, employee.partnerTaxedSeparately) &&
        Objects.equals(this.wifeHasIncome, employee.wifeHasIncome) &&
        Objects.equals(this.otherDependents, employee.otherDependents) &&
        Objects.equals(this.numberOfShares, employee.numberOfShares) &&
        Objects.equals(this.socialSecurityNumber, employee.socialSecurityNumber) &&
        Objects.equals(this.registrationNumber, employee.registrationNumber) &&
        Objects.equals(this.position, employee.position) &&
        Objects.equals(this.unit, employee.unit) &&
        Objects.equals(this.category, employee.category) &&
        Objects.equals(this.echelon, employee.echelon) &&
        Objects.equals(this.function, employee.function) &&
        Objects.equals(this.status, employee.status) &&
        Objects.equals(this.subscriber, employee.subscriber) &&
        Objects.equals(this.startDate, employee.startDate) &&
        Objects.equals(this.endDate, employee.endDate) &&
        Objects.equals(this.contractType, employee.contractType) &&
        Objects.equals(this.contractDuration, employee.contractDuration) &&
        Objects.equals(this.weeklyWorkingHours, employee.weeklyWorkingHours) &&
        Objects.equals(this.annualLeaveDays, employee.annualLeaveDays) &&
        Objects.equals(this.monthlyLeaveDays, employee.monthlyLeaveDays) &&
        Objects.equals(this.annualAbsenceDays, employee.annualAbsenceDays) &&
        Objects.equals(this.baseSalary, employee.baseSalary) &&
        Objects.equals(this.retirementAge, employee.retirementAge) &&
        Objects.equals(this.bank, employee.bank) &&
        Objects.equals(this.bankAccount, employee.bankAccount) &&
        Objects.equals(this.bankAccountKey, employee.bankAccountKey) &&
        Objects.equals(this.operator, employee.operator) &&
        Objects.equals(this.momoNumber, employee.momoNumber) &&
        Objects.equals(this.phoneNumber, employee.phoneNumber) &&
        Objects.equals(this.emailAddress, employee.emailAddress) &&
        Objects.equals(this.address, employee.address) &&
        Objects.equals(this.suspensionDays, employee.suspensionDays) &&
        Objects.equals(this.suspensionDate, employee.suspensionDate) &&
        Objects.equals(this.terminationReason, employee.terminationReason) &&
        Objects.equals(this.children, employee.children) &&
        Objects.equals(this.resourcePersons, employee.resourcePersons) &&
        Objects.equals(this.state, employee.state);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, firstName, lastName, gender, maritalStatus, birthDate, partnerDeathDay, partnerTaxedSeparately, wifeHasIncome, otherDependents, numberOfShares, socialSecurityNumber, registrationNumber, position, unit, category, echelon, function, status, subscriber, startDate, endDate, contractType, contractDuration, weeklyWorkingHours, annualLeaveDays, monthlyLeaveDays, annualAbsenceDays, baseSalary, retirementAge, bank, bankAccount, bankAccountKey, operator, momoNumber, phoneNumber, emailAddress, address, suspensionDays, suspensionDate, terminationReason, children, resourcePersons, state);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EmployeeDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    gender: ").append(toIndentedString(gender)).append("\n");
    sb.append("    maritalStatus: ").append(toIndentedString(maritalStatus)).append("\n");
    sb.append("    birthDate: ").append(toIndentedString(birthDate)).append("\n");
    sb.append("    partnerDeathDay: ").append(toIndentedString(partnerDeathDay)).append("\n");
    sb.append("    partnerTaxedSeparately: ").append(toIndentedString(partnerTaxedSeparately)).append("\n");
    sb.append("    wifeHasIncome: ").append(toIndentedString(wifeHasIncome)).append("\n");
    sb.append("    otherDependents: ").append(toIndentedString(otherDependents)).append("\n");
    sb.append("    numberOfShares: ").append(toIndentedString(numberOfShares)).append("\n");
    sb.append("    socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n");
    sb.append("    registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
    sb.append("    position: ").append(toIndentedString(position)).append("\n");
    sb.append("    unit: ").append(toIndentedString(unit)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    echelon: ").append(toIndentedString(echelon)).append("\n");
    sb.append("    function: ").append(toIndentedString(function)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    subscriber: ").append(toIndentedString(subscriber)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    contractType: ").append(toIndentedString(contractType)).append("\n");
    sb.append("    contractDuration: ").append(toIndentedString(contractDuration)).append("\n");
    sb.append("    weeklyWorkingHours: ").append(toIndentedString(weeklyWorkingHours)).append("\n");
    sb.append("    annualLeaveDays: ").append(toIndentedString(annualLeaveDays)).append("\n");
    sb.append("    monthlyLeaveDays: ").append(toIndentedString(monthlyLeaveDays)).append("\n");
    sb.append("    annualAbsenceDays: ").append(toIndentedString(annualAbsenceDays)).append("\n");
    sb.append("    baseSalary: ").append(toIndentedString(baseSalary)).append("\n");
    sb.append("    retirementAge: ").append(toIndentedString(retirementAge)).append("\n");
    sb.append("    bank: ").append(toIndentedString(bank)).append("\n");
    sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
    sb.append("    bankAccountKey: ").append(toIndentedString(bankAccountKey)).append("\n");
    sb.append("    operator: ").append(toIndentedString(operator)).append("\n");
    sb.append("    momoNumber: ").append(toIndentedString(momoNumber)).append("\n");
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
    sb.append("    emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    suspensionDays: ").append(toIndentedString(suspensionDays)).append("\n");
    sb.append("    suspensionDate: ").append(toIndentedString(suspensionDate)).append("\n");
    sb.append("    terminationReason: ").append(toIndentedString(terminationReason)).append("\n");
    sb.append("    children: ").append(toIndentedString(children)).append("\n");
    sb.append("    resourcePersons: ").append(toIndentedString(resourcePersons)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy