Exemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof EmpConcurrentTitles)) {
      return false;
    }

    EmpConcurrentTitles empConcurrentTitles = (EmpConcurrentTitles) obj;

    long primaryKey = empConcurrentTitles.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
Exemplo n.º 2
0
  @Override
  public int compareTo(EmpConcurrentTitles empConcurrentTitles) {
    long primaryKey = empConcurrentTitles.getPrimaryKey();

    if (getPrimaryKey() < primaryKey) {
      return -1;
    } else if (getPrimaryKey() > primaryKey) {
      return 1;
    } else {
      return 0;
    }
  }
Exemplo n.º 3
0
  /**
   * Converts the soap model instance into a normal model instance.
   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static EmpConcurrentTitles toModel(EmpConcurrentTitlesSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    EmpConcurrentTitles model = new EmpConcurrentTitlesImpl();

    model.setEmpConcurrentTitlesId(soapModel.getEmpConcurrentTitlesId());
    model.setEmpId(soapModel.getEmpId());
    model.setTitlesId(soapModel.getTitlesId());
    model.setUnitGroupId(soapModel.getUnitGroupId());
    model.setUnitId(soapModel.getUnitId());
    model.setDepartmentId(soapModel.getDepartmentId());
    model.setGroupId(soapModel.getGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setUserId(soapModel.getUserId());
    model.setUserName(soapModel.getUserName());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());

    return model;
  }