From adba4d8929315d8ae1799109b6287e3a69a5e2a9 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Wed, 5 Jun 2019 16:17:36 -0400 Subject: [PATCH 01/12] first pass at non-null logging, appointment as poc --- .../entity/core/standard/Appointment.java | 292 ++++++++++++++++++ .../entity/core/type/AbstractEntity.java | 24 ++ 2 files changed, 316 insertions(+) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 850b9276..f9b8a946 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -609,6 +609,298 @@ public String toString() { return builder.toString(); } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ", \n"; + StringBuilder builder = new StringBuilder(); + if(id != null){ + builder.append("Appointment {"+ lbc + "id="); + builder.append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + builder.append(lbc + "}"); + return builder.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", \n"; + StringBuilder builder = new StringBuilder(); + if(id != null){ + builder.append("Appointment { id="); + builder.append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + + builder.append(lbc + "}"); + return builder.toString(); + } + @Override public int hashCode() { int result = id != null ? id.hashCode() : 0; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java index d22095e8..9d04f27f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java @@ -110,4 +110,28 @@ public String toString() { return builder.toString(); } + public String toStringNonNull(){ + String lbc = " \n"; + StringBuilder builder = new StringBuilder(); + if(additionalProperties != null) { + builder.append(lbc + "additionalProperties="); + builder.append(additionalProperties); + } + + return builder.toString(); + } + + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ""; + if(includeLineBreaks) + lbc = " \n"; + StringBuilder builder = new StringBuilder(); + if(additionalProperties != null) { + builder.append(lbc + "additionalProperties="); + builder.append(additionalProperties); + } + + return builder.toString(); + } + } From 5d7243ae15ab925e4add747f41a8c0c1c6bc5aa7 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Wed, 5 Jun 2019 16:46:29 -0400 Subject: [PATCH 02/12] placement first pass and sub-object tostringnonnull --- .../entity/core/standard/Appointment.java | 7 +- .../model/entity/core/standard/Placement.java | 474 ++++++++++++++++++ 2 files changed, 476 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index f9b8a946..9c0880e9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -758,12 +758,9 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { - String lbc = ", \n"; + String lbc = ", "; StringBuilder builder = new StringBuilder(); - if(id != null){ - builder.append("Appointment { id="); - builder.append(id); - } + builder.append("Appointment { id=").append(id); if(appointmentUUID != null){ builder.append(lbc + "appointmentUUID="); builder.append(appointmentUUID); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index 8997351e..eb44c719 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1299,6 +1299,480 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ", \n"; + final StringBuilder sb = new StringBuilder("Placement { "); + if(id != null){ + sb.append("id=").append(id); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull(includeLineBreaks)); + } + if(approvingClientContact != null){ + sb.append(lbc + "approvingClientContact=").append(approvingClientContact.toStringNonNull(includeLineBreaks)); + } + if(backupApprovingClientContact != null){ + sb.append(lbc + "backupApprovingClientContact=").append(backupApprovingClientContact.toStringNonNull(includeLineBreaks)); + } + if(billingClientContact != null){ + sb.append(lbc + "billingClientContact=").append(billingClientContact.toStringNonNull(includeLineBreaks)); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(candidate != null){ + sb.append(lbc + "candidate=").append(candidate.toStringNonNull(includeLineBreaks)); + } + if(placementCertifications != null){ + sb.append(lbc + "placementCertifications=").append(placementCertifications); + } + if(changeRequests != null){ + sb.append(lbc + "changeRequests=").append(changeRequests.toStringNonNull(includeLineBreaks)); + } + if(clientBillRate != null){ + sb.append(lbc + "clientBillRate=").append(clientBillRate); + } + if(clientOvertimeRate != null){ + sb.append(lbc + "clientOvertimeRate=").append(clientOvertimeRate); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(commissions != null){ + sb.append(lbc + "commissions=").append(commissions); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateBegin != null){ + sb.append(lbc + "dateBegin=").append(dateBegin); + } + if(dateClientEffective != null){ + sb.append(lbc + "dateClientEffective=").append(dateClientEffective); + } + if(dateEffective != null){ + sb.append(lbc + "dateEffective=").append(dateEffective); + } + if(dateEnd != null){ + sb.append(lbc + "dateEnd=").append(dateEnd); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(daysGuaranteed != null){ + sb.append(lbc + "daysGuaranteed=").append(daysGuaranteed); + } + if(daysProRated != null){ + sb.append(lbc + "daysProRated=").append(daysProRated); + } + if(durationWeeks != null){ + sb.append(lbc + "durationWeeks=").append(durationWeeks); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentType != null){ + sb.append(lbc + "employmentType=").append(employmentType); + } + if(fee != null){ + sb.append(lbc + "fee=").append(fee); + } + if(flatFee != null){ + sb.append(lbc + "flatFee=").append(flatFee); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(hoursPerDay != null){ + sb.append(lbc + "hoursPerDay=").append(hoursPerDay); + } + if(housingManagerID != null){ + sb.append(lbc + "housingManagerID=").append(housingManagerID); + } + if(housingStatus != null){ + sb.append(lbc + "housingStatus=").append(housingStatus); + } + if(invoiceGroupName != null){ + sb.append(lbc + "invoiceGroupName=").append(invoiceGroupName); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder=").append(jobOrder.toStringNonNull(includeLineBreaks)); + } + if(jobSubmission != null){ + sb.append(lbc + "jobSubmission=").append(jobSubmission.toStringNonNull(includeLineBreaks)); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(otExemption != null){ + sb.append(lbc + "otExemption=").append(otExemption); + } + if(otherHourlyFee != null){ + sb.append(lbc + "otherHourlyFee=").append(otherHourlyFee); + } + if(markUpPercentage != null){ + sb.append(lbc + "markUpPercentage=").append(markUpPercentage); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(otherHourlyFeeComments != null){ + sb.append(lbc + "otherHourlyFeeComments=").append(otherHourlyFeeComments); + } + if(overtimeMarkUpPercentage != null){ + sb.append(lbc + "overtimeMarkUpPercentage=").append(overtimeMarkUpPercentage); + } + if(overtimeRate != null){ + sb.append(lbc + "overtimeRate=").append(overtimeRate); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(projectCodeList != null){ + sb.append(lbc + "projectCodeList=").append(projectCodeList); + } + if(recruitingManagerPercentGrossMargin != null){ + sb.append(lbc + "recruitingManagerPercentGrossMargin=").append(recruitingManagerPercentGrossMargin); + } + if(referralFee != null){ + sb.append(lbc + "referralFee=").append(referralFee); + } + if(referralFeeType != null){ + sb.append(lbc + "referralFeeType=").append(referralFeeType); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(reportedMargin != null){ + sb.append(lbc + "reportedMargin=").append(reportedMargin); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(salesManagerPercentGrossMargin != null){ + sb.append(lbc + "salesManagerPercentGrossMargin=").append(salesManagerPercentGrossMargin); + } + if(statementClientContact != null){ + sb.append(lbc + "statementClientContact=").append(statementClientContact.toStringNonNull(includeLineBreaks)); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(terminationReason != null){ + sb.append(lbc + "terminationReason=").append(terminationReason); + } + if(timeUnits != null){ + sb.append(lbc + "timeUnits=").append(timeUnits); + } + if(vendorClientCorporation != null){ + sb.append(lbc + "vendorClientCorporation=").append(vendorClientCorporation.toStringNonNull(includeLineBreaks)); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(workersCompensationRate != null){ + sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder("Placement { "); + if(id != null){ + sb.append("id=").append(id); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull()); + } + if(approvingClientContact != null){ + sb.append(lbc + "approvingClientContact=").append(approvingClientContact.toStringNonNull()); + } + if(backupApprovingClientContact != null){ + sb.append(lbc + "backupApprovingClientContact=").append(backupApprovingClientContact.toStringNonNull()); + } + if(billingClientContact != null){ + sb.append(lbc + "billingClientContact=").append(billingClientContact.toStringNonNull()); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(candidate != null){ + sb.append(lbc + "candidate=").append(candidate.toStringNonNull()); + } + if(placementCertifications != null){ + sb.append(lbc + "placementCertifications=").append(placementCertifications); + } + if(changeRequests != null){ + sb.append(lbc + "changeRequests=").append(changeRequests); + } + if(clientBillRate != null){ + sb.append(lbc + "clientBillRate=").append(clientBillRate); + } + if(clientOvertimeRate != null){ + sb.append(lbc + "clientOvertimeRate=").append(clientOvertimeRate); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(commissions != null){ + sb.append(lbc + "commissions=").append(commissions); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateBegin != null){ + sb.append(lbc + "dateBegin=").append(dateBegin); + } + if(dateClientEffective != null){ + sb.append(lbc + "dateClientEffective=").append(dateClientEffective); + } + if(dateEffective != null){ + sb.append(lbc + "dateEffective=").append(dateEffective); + } + if(dateEnd != null){ + sb.append(lbc + "dateEnd=").append(dateEnd); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(daysGuaranteed != null){ + sb.append(lbc + "daysGuaranteed=").append(daysGuaranteed); + } + if(daysProRated != null){ + sb.append(lbc + "daysProRated=").append(daysProRated); + } + if(durationWeeks != null){ + sb.append(lbc + "durationWeeks=").append(durationWeeks); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentType != null){ + sb.append(lbc + "employmentType=").append(employmentType); + } + if(fee != null){ + sb.append(lbc + "fee=").append(fee); + } + if(flatFee != null){ + sb.append(lbc + "flatFee=").append(flatFee); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(hoursPerDay != null){ + sb.append(lbc + "hoursPerDay=").append(hoursPerDay); + } + if(housingManagerID != null){ + sb.append(lbc + "housingManagerID=").append(housingManagerID); + } + if(housingStatus != null){ + sb.append(lbc + "housingStatus=").append(housingStatus); + } + if(invoiceGroupName != null){ + sb.append(lbc + "invoiceGroupName=").append(invoiceGroupName); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder=").append(jobOrder.toStringNonNull()); + } + if(jobSubmission != null){ + sb.append(lbc + "jobSubmission=").append(jobSubmission.toStringNonNull()); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(otExemption != null){ + sb.append(lbc + "otExemption=").append(otExemption); + } + if(otherHourlyFee != null){ + sb.append(lbc + "otherHourlyFee=").append(otherHourlyFee); + } + if(markUpPercentage != null){ + sb.append(lbc + "markUpPercentage=").append(markUpPercentage); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(otherHourlyFeeComments != null){ + sb.append(lbc + "otherHourlyFeeComments=").append(otherHourlyFeeComments); + } + if(overtimeMarkUpPercentage != null){ + sb.append(lbc + "overtimeMarkUpPercentage=").append(overtimeMarkUpPercentage); + } + if(overtimeRate != null){ + sb.append(lbc + "overtimeRate=").append(overtimeRate); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(projectCodeList != null){ + sb.append(lbc + "projectCodeList=").append(projectCodeList); + } + if(recruitingManagerPercentGrossMargin != null){ + sb.append(lbc + "recruitingManagerPercentGrossMargin=").append(recruitingManagerPercentGrossMargin); + } + if(referralFee != null){ + sb.append(lbc + "referralFee=").append(referralFee); + } + if(referralFeeType != null){ + sb.append(lbc + "referralFeeType=").append(referralFeeType); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(reportedMargin != null){ + sb.append(lbc + "reportedMargin=").append(reportedMargin); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(salesManagerPercentGrossMargin != null){ + sb.append(lbc + "salesManagerPercentGrossMargin=").append(salesManagerPercentGrossMargin); + } + if(statementClientContact != null){ + sb.append(lbc + "statementClientContact=").append(statementClientContact.toStringNonNull()); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(terminationReason != null){ + sb.append(lbc + "terminationReason=").append(terminationReason); + } + if(timeUnits != null){ + sb.append(lbc + "timeUnits=").append(timeUnits); + } + if(vendorClientCorporation != null){ + sb.append(lbc + "vendorClientCorporation=").append(vendorClientCorporation.toStringNonNull()); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(workersCompensationRate != null){ + sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { final StringBuilder sb = new StringBuilder("Placement{"); From 358f90506b8ee92b50de948c5b884ab111a7ee19 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Wed, 5 Jun 2019 16:49:56 -0400 Subject: [PATCH 03/12] more placement tweaks --- .../model/entity/core/standard/Placement.java | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index eb44c719..2ead9496 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1781,17 +1781,17 @@ public String toString() { sb.append(", approvingClientContact=").append(approvingClientContact); sb.append(", backupApprovingClientContact=").append(backupApprovingClientContact); sb.append(", billingClientContact=").append(billingClientContact); - sb.append(", billingFrequency='").append(billingFrequency).append('\''); - sb.append(", bonusPackage='").append(bonusPackage).append('\''); + sb.append(", billingFrequency=").append(billingFrequency); + sb.append(", bonusPackage=").append(bonusPackage); sb.append(", branch=").append(branch); sb.append(", candidate=").append(candidate); sb.append(", placementCertifications=").append(placementCertifications); sb.append(", changeRequests=").append(changeRequests); sb.append(", clientBillRate=").append(clientBillRate); sb.append(", clientOvertimeRate=").append(clientOvertimeRate); - sb.append(", comments='").append(comments).append('\''); + sb.append(", comments=").append(comments); sb.append(", commissions=").append(commissions); - sb.append(", costCenter='").append(costCenter).append('\''); + sb.append(", costCenter=").append(costCenter); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateBegin=").append(dateBegin); sb.append(", dateClientEffective=").append(dateClientEffective); @@ -1801,43 +1801,43 @@ public String toString() { sb.append(", daysGuaranteed=").append(daysGuaranteed); sb.append(", daysProRated=").append(daysProRated); sb.append(", durationWeeks=").append(durationWeeks); - sb.append(", employeeType='").append(employeeType).append('\''); - sb.append(", employmentType='").append(employmentType).append('\''); + sb.append(", employeeType=").append(employeeType); + sb.append(", employmentType=").append(employmentType); sb.append(", fee=").append(fee); sb.append(", flatFee=").append(flatFee); sb.append(", fileAttachments=").append(fileAttachments); - sb.append(", hoursOfOperation='").append(hoursOfOperation).append('\''); + sb.append(", hoursOfOperation=").append(hoursOfOperation); sb.append(", hoursPerDay=").append(hoursPerDay); sb.append(", housingManagerID=").append(housingManagerID); - sb.append(", housingStatus='").append(housingStatus).append('\''); - sb.append(", invoiceGroupName='").append(invoiceGroupName).append('\''); + sb.append(", housingStatus=").append(housingStatus); + sb.append(", invoiceGroupName=").append(invoiceGroupName); sb.append(", jobOrder=").append(jobOrder); sb.append(", jobSubmission=").append(jobSubmission); sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", optionsPackage='").append(optionsPackage).append('\''); + sb.append(", optionsPackage=").append(optionsPackage); sb.append(", otExemption=").append(otExemption); sb.append(", otherHourlyFee=").append(otherHourlyFee); sb.append(", markUpPercentage=").append(markUpPercentage); sb.append(", notes=").append(notes); - sb.append(", otherHourlyFeeComments='").append(otherHourlyFeeComments).append('\''); + sb.append(", otherHourlyFeeComments=").append(otherHourlyFeeComments); sb.append(", overtimeMarkUpPercentage=").append(overtimeMarkUpPercentage); sb.append(", overtimeRate=").append(overtimeRate); sb.append(", payRate=").append(payRate); - sb.append(", projectCodeList='").append(projectCodeList).append('\''); + sb.append(", projectCodeList=").append(projectCodeList); sb.append(", recruitingManagerPercentGrossMargin=").append(recruitingManagerPercentGrossMargin); sb.append(", referralFee=").append(referralFee); - sb.append(", referralFeeType='").append(referralFeeType).append('\''); - sb.append(", reportTo='").append(reportTo).append('\''); + sb.append(", referralFeeType=").append(referralFeeType); + sb.append(", reportTo=").append(reportTo); sb.append(", reportedMargin=").append(reportedMargin); sb.append(", salary=").append(salary); - sb.append(", salaryUnit='").append(salaryUnit).append('\''); + sb.append(", salaryUnit=").append(salaryUnit); sb.append(", salesManagerPercentGrossMargin=").append(salesManagerPercentGrossMargin); sb.append(", statementClientContact=").append(statementClientContact); - sb.append(", status='").append(status).append('\''); + sb.append(", status=").append(status); sb.append(", tasks=").append(tasks); sb.append(", taxRate=").append(taxRate); - sb.append(", taxState='").append(taxState).append('\''); - sb.append(", terminationReason='").append(terminationReason).append('\''); + sb.append(", taxState=").append(taxState); + sb.append(", terminationReason=").append(terminationReason); sb.append(", timeUnits=").append(timeUnits); sb.append(", vendorClientCorporation=").append(vendorClientCorporation); sb.append(", workWeekStart=").append(workWeekStart); @@ -1852,7 +1852,7 @@ public String toString() { sb.append(", customObject8s=").append(customObject8s); sb.append(", customObject9s=").append(customObject9s); sb.append(", customObject10s=").append(customObject10s); - sb.append('}'); + sb.append("}"); return sb.toString(); } } From 49a3a338257c4b2cce632aa7efa1cc318ebd8842 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Wed, 5 Jun 2019 17:08:52 -0400 Subject: [PATCH 04/12] mostly jobdata --- .../entity/core/standard/Appointment.java | 17 +- .../model/entity/core/standard/JobData.java | 564 ++++++++++++++++++ .../model/entity/core/standard/Placement.java | 2 +- 3 files changed, 575 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 9c0880e9..88be7c32 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -610,13 +610,13 @@ public String toString() { } @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ", \n"; - StringBuilder builder = new StringBuilder(); + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder().append("Appointment { "); if(id != null){ - builder.append("Appointment {"+ lbc + "id="); + builder.append("id="); builder.append(id); } if(appointmentUUID != null){ @@ -760,7 +760,10 @@ public String toStringNonNull(boolean includeLineBreaks) { public String toStringNonNull() { String lbc = ", "; StringBuilder builder = new StringBuilder(); - builder.append("Appointment { id=").append(id); + builder.append(getClass() + " { "); + if(id != null){ + builder.append("id=").append(id); + } if(appointmentUUID != null){ builder.append(lbc + "appointmentUUID="); builder.append(appointmentUUID); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java index 107cd215..a3502258 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java @@ -1451,6 +1451,570 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull()); + } + if(approvedPlacements != null){ + sb.append(lbc + "approvedPlacements=").append(approvedPlacements.toStringNonNull()); + } + if(assignedUsers != null){ + sb.append(lbc + "assignedUsers=").append(assignedUsers.toStringNonNull()); + } + if(benefits != null){ + sb.append(lbc + "benefits=").append(benefits); + } + if(billRateCategoryID != null){ + sb.append(lbc + "billRateCategoryID=").append(billRateCategoryID); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(branchCode != null){ + sb.append(lbc + "branchCode=").append(branchCode); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications.toStringNonNull()); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); + } + if(clientBillRate != null){ + sb.append(lbc + "clientBillRate=").append(clientBillRate); + } + if(clientContact != null){ + sb.append(lbc + "clientContact=").append(clientContact.toStringNonNull()); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateClosed != null){ + sb.append(lbc + "dateClosed=").append(dateClosed); + } + if(dateEnd != null){ + sb.append(lbc + "dateEnd=").append(dateEnd); + } + if(dateLastExported != null){ + sb.append(lbc + "dateLastExported=").append(dateLastExported); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(durationWeeks != null){ + sb.append(lbc + "durationWeeks=").append(durationWeeks); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(employmentType != null){ + sb.append(lbc + "employmentType=").append(employmentType); + } + if(externalCategoryID != null){ + sb.append(lbc + "externalCategoryID=").append(externalCategoryID); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(hoursPerWeek != null){ + sb.append(lbc + "hoursPerWeek=").append(hoursPerWeek); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); + } + if(isClientEditable != null){ + sb.append(lbc + "isClientEditable=").append(isClientEditable); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isInterviewRequired != null){ + sb.append(lbc + "isInterviewRequired=").append(isInterviewRequired); + } + if(isJobcastPublished != null){ + sb.append(lbc + "isJobcastPublished=").append(isJobcastPublished); + } + if(isOpen != null){ + sb.append(lbc + "isOpen=").append(isOpen); + } + if(isPublic != null){ + sb.append(lbc + "isPublic=").append(isPublic); + } + if(jobBoardList != null){ + sb.append(lbc + "jobBoardList=").append(jobBoardList); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numOpenings != null){ + sb.append(lbc + "numOpenings=").append(numOpenings); + } + if(onSite != null){ + sb.append(lbc + "onSite=").append(onSite); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(opportunity != null){ + sb.append(lbc + "opportunity=").append(opportunity.toStringNonNull()); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull()); + } + if(publicDescription != null){ + sb.append(lbc + "publicDescription=").append(publicDescription); + } + if(publishedZip != null){ + sb.append(lbc + "publishedZip=").append(publishedZip); + } + if(reasonClosed != null){ + sb.append(lbc + "reasonClosed=").append(reasonClosed); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(reportToClientContact != null){ + sb.append(lbc + "reportToClientContact=").append(reportToClientContact.toStringNonNull()); + } + if(responseUser != null){ + sb.append(lbc + "responseUser=").append(responseUser.toStringNonNull()); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); + } + if(skillList != null){ + sb.append(lbc + "skillList=").append(skillList); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull()); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(startDate != null){ + sb.append(lbc + "startDate=").append(startDate); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(taxStatus != null){ + sb.append(lbc + "taxStatus=").append(taxStatus); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeUnits != null){ + sb.append(lbc + "timeUnits=").append(timeUnits); + } + if(title != null){ + sb.append(lbc + "title=").append(title); + } + if(travelRequirements != null){ + sb.append(lbc + "travelRequirements=").append(travelRequirements); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(willRelocateInt != null){ + sb.append(lbc + "willRelocateInt=").append(willRelocateInt); + } + if(willSponsor != null){ + sb.append(lbc + "willSponsor=").append(willSponsor); + } + if(workersCompRate != null){ + sb.append(lbc + "workersCompRate=").append(workersCompRate.toStringNonNull()); + } + if(yearsRequired != null){ + sb.append(lbc + "yearsRequired=").append(yearsRequired); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull(includeLineBreaks)); + } + if(approvedPlacements != null){ + sb.append(lbc + "approvedPlacements=").append(approvedPlacements.toStringNonNull(includeLineBreaks)); + } + if(assignedUsers != null){ + sb.append(lbc + "assignedUsers=").append(assignedUsers); + } + if(benefits != null){ + sb.append(lbc + "benefits=").append(benefits); + } + if(billRateCategoryID != null){ + sb.append(lbc + "billRateCategoryID=").append(billRateCategoryID); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(branchCode != null){ + sb.append(lbc + "branchCode=").append(branchCode); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications.toStringNonNull(includeLineBreaks)); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); + } + if(clientBillRate != null){ + sb.append(lbc + "clientBillRate=").append(clientBillRate); + } + if(clientContact != null){ + sb.append(lbc + "clientContact=").append(clientContact.toStringNonNull(includeLineBreaks)); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateClosed != null){ + sb.append(lbc + "dateClosed=").append(dateClosed); + } + if(dateEnd != null){ + sb.append(lbc + "dateEnd=").append(dateEnd); + } + if(dateLastExported != null){ + sb.append(lbc + "dateLastExported=").append(dateLastExported); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(durationWeeks != null){ + sb.append(lbc + "durationWeeks=").append(durationWeeks); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(employmentType != null){ + sb.append(lbc + "employmentType=").append(employmentType); + } + if(externalCategoryID != null){ + sb.append(lbc + "externalCategoryID=").append(externalCategoryID); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(hoursPerWeek != null){ + sb.append(lbc + "hoursPerWeek=").append(hoursPerWeek); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); + } + if(isClientEditable != null){ + sb.append(lbc + "isClientEditable=").append(isClientEditable); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isInterviewRequired != null){ + sb.append(lbc + "isInterviewRequired=").append(isInterviewRequired); + } + if(isJobcastPublished != null){ + sb.append(lbc + "isJobcastPublished=").append(isJobcastPublished); + } + if(isOpen != null){ + sb.append(lbc + "isOpen=").append(isOpen); + } + if(isPublic != null){ + sb.append(lbc + "isPublic=").append(isPublic); + } + if(jobBoardList != null){ + sb.append(lbc + "jobBoardList=").append(jobBoardList); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numOpenings != null){ + sb.append(lbc + "numOpenings=").append(numOpenings); + } + if(onSite != null){ + sb.append(lbc + "onSite=").append(onSite); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(opportunity != null){ + sb.append(lbc + "opportunity=").append(opportunity.toStringNonNull(includeLineBreaks)); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); + } + if(publicDescription != null){ + sb.append(lbc + "publicDescription=").append(publicDescription); + } + if(publishedZip != null){ + sb.append(lbc + "publishedZip=").append(publishedZip); + } + if(reasonClosed != null){ + sb.append(lbc + "reasonClosed=").append(reasonClosed); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(reportToClientContact != null){ + sb.append(lbc + "reportToClientContact=").append(reportToClientContact); + } + if(responseUser != null){ + sb.append(lbc + "responseUser=").append(responseUser); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); + } + if(skillList != null){ + sb.append(lbc + "skillList=").append(skillList); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull(includeLineBreaks)); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(startDate != null){ + sb.append(lbc + "startDate=").append(startDate); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(taxStatus != null){ + sb.append(lbc + "taxStatus=").append(taxStatus); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeUnits != null){ + sb.append(lbc + "timeUnits=").append(timeUnits); + } + if(title != null){ + sb.append(lbc + "title=").append(title); + } + if(travelRequirements != null){ + sb.append(lbc + "travelRequirements=").append(travelRequirements); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(willRelocateInt != null){ + sb.append(lbc + "willRelocateInt=").append(willRelocateInt); + } + if(willSponsor != null){ + sb.append(lbc + "willSponsor=").append(willSponsor); + } + if(workersCompRate != null){ + sb.append(lbc + "workersCompRate=").append(workersCompRate); + } + if(yearsRequired != null){ + sb.append(lbc + "yearsRequired=").append(yearsRequired); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { final StringBuilder sb = new StringBuilder("JobData{"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index 2ead9496..e88a117e 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1303,7 +1303,7 @@ public int hashCode() { public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) - lbc = ", \n"; + lbc = ",\n "; final StringBuilder sb = new StringBuilder("Placement { "); if(id != null){ sb.append("id=").append(id); From cfe1e6d854eccf089052db7d8ee8f4422fd937eb Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Wed, 5 Jun 2019 17:19:45 -0400 Subject: [PATCH 05/12] client Contact --- .../entity/core/standard/Appointment.java | 8 +- .../entity/core/standard/ClientContact.java | 554 ++++++++++++++++-- .../model/entity/core/standard/JobData.java | 52 +- 3 files changed, 547 insertions(+), 67 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 88be7c32..21e7bde5 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -610,10 +610,10 @@ public String toString() { } @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; StringBuilder builder = new StringBuilder().append("Appointment { "); if(id != null){ builder.append("id="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java index 27941263..90fbfd32 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java @@ -1308,77 +1308,557 @@ public int hashCode() { result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull()); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull()); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } @Override public String toString() { - final StringBuilder sb = new StringBuilder("ClientContact{"); + final StringBuilder sb = new StringBuilder(getClass() + " { "); sb.append("id=").append(id); sb.append(", address=").append(address); sb.append(", branch=").append(branch); sb.append(", businessSectors=").append(businessSectors); sb.append(", categories=").append(categories); sb.append(", category=").append(category); - sb.append(", certifications='").append(certifications).append('\''); + sb.append(", certifications=").append(certifications); sb.append(", clientContactID=").append(clientContactID); sb.append(", clientCorporation=").append(clientCorporation); - sb.append(", comments='").append(comments).append('\''); + sb.append(", comments=").append(comments); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateLastComment=").append(dateLastComment); sb.append(", dateLastModified=").append(dateLastModified); sb.append(", dateLastVisit=").append(dateLastVisit); sb.append(", deleteMe=").append(deleteMe); - sb.append(", description='").append(description).append('\''); - sb.append(", desiredCategories='").append(desiredCategories).append('\''); - sb.append(", desiredSkills='").append(desiredSkills).append('\''); - sb.append(", desiredSpecialties='").append(desiredSpecialties).append('\''); - sb.append(", division='").append(division).append('\''); - sb.append(", email='").append(email).append('\''); - sb.append(", email2='").append(email2).append('\''); - sb.append(", email3='").append(email3).append('\''); - sb.append(", externalID='").append(externalID).append('\''); - sb.append(", fax='").append(fax).append('\''); - sb.append(", fax2='").append(fax2).append('\''); - sb.append(", fax3='").append(fax3).append('\''); - sb.append(", firstName='").append(firstName).append('\''); + sb.append(", description=").append(description); + sb.append(", desiredCategories=").append(desiredCategories); + sb.append(", desiredSkills=").append(desiredSkills); + sb.append(", desiredSpecialties=").append(desiredSpecialties); + sb.append(", division=").append(division); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", firstName=").append(firstName); sb.append(", isDayLightSavings=").append(isDayLightSavings); sb.append(", isDeleted=").append(isDeleted); sb.append(", isLockedOut=").append(isLockedOut); - sb.append(", lastName='").append(lastName).append('\''); + sb.append(", lastName=").append(lastName); sb.append(", linkedPerson=").append(linkedPerson); sb.append(", leads=").append(leads); sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName='").append(middleName).append('\''); + sb.append(", middleName=").append(middleName); sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile='").append(mobile).append('\''); - sb.append(", name='").append(name).append('\''); - sb.append(", namePrefix='").append(namePrefix).append('\''); - sb.append(", nameSuffix='").append(nameSuffix).append('\''); - sb.append(", nickName='").append(nickName).append('\''); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); sb.append(", notes=").append(notes); sb.append(", numEmployees=").append(numEmployees); - sb.append(", occupation='").append(occupation).append('\''); - sb.append(", office='").append(office).append('\''); + sb.append(", occupation=").append(occupation); + sb.append(", office=").append(office); sb.append(", owner=").append(owner); - sb.append(", pager='").append(pager).append('\''); - sb.append(", password='").append(password).append('\''); - sb.append(", phone='").append(phone).append('\''); - sb.append(", phone2='").append(phone2).append('\''); - sb.append(", phone3='").append(phone3).append('\''); - sb.append(", preferredContact='").append(preferredContact).append('\''); + sb.append(", pager=").append(pager); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", preferredContact=").append(preferredContact); sb.append(", referredByPerson=").append(referredByPerson); sb.append(", reportToPerson=").append(reportToPerson); sb.append(", secondaryAddress=").append(secondaryAddress); sb.append(", secondaryOwners=").append(secondaryOwners); sb.append(", skills=").append(skills); sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source='").append(source).append('\''); + sb.append(", source=").append(source); sb.append(", specialties=").append(specialties); - sb.append(", status='").append(status).append('\''); + sb.append(", status=").append(status); sb.append(", tearsheets=").append(tearsheets); sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", trackTitle='").append(trackTitle).append('\''); - sb.append(", type='").append(type).append('\''); - sb.append(", username='").append(username).append('\''); + sb.append(", trackTitle=").append(trackTitle); + sb.append(", type=").append(type); + sb.append(", username=").append(username); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); @@ -1389,7 +1869,7 @@ public String toString() { sb.append(", customObject8s=").append(customObject8s); sb.append(", customObject9s=").append(customObject9s); sb.append(", customObject10s=").append(customObject10s); - sb.append('}'); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java index a3502258..72bc9203 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java @@ -2024,34 +2024,34 @@ public String toString() { sb.append(", appointments=").append(appointments); sb.append(", approvedPlacements=").append(approvedPlacements); sb.append(", assignedUsers=").append(assignedUsers); - sb.append(", benefits='").append(benefits).append('\''); + sb.append(", benefits=").append(benefits); sb.append(", billRateCategoryID=").append(billRateCategoryID); - sb.append(", bonusPackage='").append(bonusPackage).append('\''); + sb.append(", bonusPackage=").append(bonusPackage); sb.append(", branch=").append(branch); - sb.append(", branchCode='").append(branchCode).append('\''); + sb.append(", branchCode=").append(branchCode); sb.append(", businessSectors=").append(businessSectors); sb.append(", categories=").append(categories); - sb.append(", certificationList='").append(certificationList).append('\''); + sb.append(", certificationList=").append(certificationList); sb.append(", certifications=").append(certifications); sb.append(", certificationGroups=").append(certificationGroups); sb.append(", clientBillRate=").append(clientBillRate); sb.append(", clientContact=").append(clientContact); sb.append(", clientCorporation=").append(clientCorporation); - sb.append(", costCenter='").append(costCenter).append('\''); + sb.append(", costCenter=").append(costCenter); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateClosed=").append(dateClosed); sb.append(", dateEnd=").append(dateEnd); sb.append(", dateLastExported=").append(dateLastExported); sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", degreeList='").append(degreeList).append('\''); - sb.append(", description='").append(description).append('\''); + sb.append(", degreeList=").append(degreeList); + sb.append(", description=").append(description); sb.append(", durationWeeks=").append(durationWeeks); - sb.append(", educationDegree='").append(educationDegree).append('\''); - sb.append(", employmentType='").append(employmentType).append('\''); + sb.append(", educationDegree=").append(educationDegree); + sb.append(", employmentType=").append(employmentType); sb.append(", externalCategoryID=").append(externalCategoryID); - sb.append(", externalID='").append(externalID).append('\''); + sb.append(", externalID=").append(externalID); sb.append(", feeArrangement=").append(feeArrangement); - sb.append(", hoursOfOperation='").append(hoursOfOperation).append('\''); + sb.append(", hoursOfOperation=").append(hoursOfOperation); sb.append(", hoursPerWeek=").append(hoursPerWeek); sb.append(", interviews=").append(interviews); sb.append(", isClientEditable=").append(isClientEditable); @@ -2060,38 +2060,38 @@ public String toString() { sb.append(", isJobcastPublished=").append(isJobcastPublished); sb.append(", isOpen=").append(isOpen); sb.append(", isPublic=").append(isPublic); - sb.append(", jobBoardList='").append(jobBoardList).append('\''); + sb.append(", jobBoardList=").append(jobBoardList); sb.append(", notes=").append(notes); sb.append(", numOpenings=").append(numOpenings); - sb.append(", onSite='").append(onSite).append('\''); - sb.append(", optionsPackage='").append(optionsPackage).append('\''); + sb.append(", onSite=").append(onSite); + sb.append(", optionsPackage=").append(optionsPackage); sb.append(", opportunity=").append(opportunity); sb.append(", owner=").append(owner); sb.append(", payRate=").append(payRate); sb.append(", placements=").append(placements); - sb.append(", publicDescription='").append(publicDescription).append('\''); - sb.append(", publishedZip='").append(publishedZip).append('\''); - sb.append(", reasonClosed='").append(reasonClosed).append('\''); - sb.append(", reportTo='").append(reportTo).append('\''); + sb.append(", publicDescription=").append(publicDescription); + sb.append(", publishedZip=").append(publishedZip); + sb.append(", reasonClosed=").append(reasonClosed); + sb.append(", reportTo=").append(reportTo); sb.append(", reportToClientContact=").append(reportToClientContact); sb.append(", responseUser=").append(responseUser); sb.append(", salary=").append(salary); - sb.append(", salaryUnit='").append(salaryUnit).append('\''); + sb.append(", salaryUnit=").append(salaryUnit); sb.append(", sendouts=").append(sendouts); - sb.append(", skillList='").append(skillList).append('\''); + sb.append(", skillList=").append(skillList); sb.append(", skills=").append(skills); - sb.append(", source='").append(source).append('\''); + sb.append(", source=").append(source); sb.append(", specialties=").append(specialties); sb.append(", startDate=").append(startDate); - sb.append(", status='").append(status).append('\''); + sb.append(", status=").append(status); sb.append(", submissions=").append(submissions); sb.append(", tasks=").append(tasks); sb.append(", taxRate=").append(taxRate); - sb.append(", taxStatus='").append(taxStatus).append('\''); + sb.append(", taxStatus=").append(taxStatus); sb.append(", tearsheets=").append(tearsheets); sb.append(", timeUnits=").append(timeUnits); - sb.append(", title='").append(title).append('\''); - sb.append(", travelRequirements='").append(travelRequirements).append('\''); + sb.append(", title=").append(title); + sb.append(", travelRequirements=").append(travelRequirements); sb.append(", type=").append(type); sb.append(", webResponses=").append(webResponses); sb.append(", willRelocate=").append(willRelocate); @@ -2109,7 +2109,7 @@ public String toString() { sb.append(", customObject8s=").append(customObject8s); sb.append(", customObject9s=").append(customObject9s); sb.append(", customObject10s=").append(customObject10s); - sb.append('}'); + sb.append("}"); return sb.toString(); } } From e0cb8c6e39c736bee9daac9e892a34944d707d09 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 6 Jun 2019 09:48:37 -0400 Subject: [PATCH 06/12] note noteentity jobsubmission candidate --- .../model/entity/core/standard/Candidate.java | 990 ++++++++++++++++-- .../entity/core/standard/JobSubmission.java | 184 +++- .../data/model/entity/core/standard/Note.java | 292 +++++- .../entity/core/standard/NoteEntity.java | 60 +- .../model/entity/core/standard/Placement.java | 22 +- .../entity/core/type/AbstractEntity.java | 10 +- 6 files changed, 1409 insertions(+), 149 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java index c6604334..3de6d39d 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java @@ -2349,11 +2349,868 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull()); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull()); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull()); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull()); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull()); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull()); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull()); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull(includeLineBreaks)); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull(includeLineBreaks)); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull(includeLineBreaks)); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull(includeLineBreaks)); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull(includeLineBreaks)); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - final StringBuilder sb = new StringBuilder("Candidate{"); - sb.append("luceneScore=").append(luceneScore); - sb.append(", id=").append(id); + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("id=").append(id); sb.append(", address=").append(address); sb.append(", branch=").append(branch); sb.append(", businessSectors=").append(businessSectors); @@ -2361,12 +3218,12 @@ public String toString() { sb.append(", categories=").append(categories); sb.append(", category=").append(category); sb.append(", certificationList=").append(certificationList); - sb.append(", certifications='").append(certifications).append('\''); + sb.append(", certifications=").append(certifications); sb.append(", clientCorporationBlackList=").append(clientCorporationBlackList); sb.append(", clientCorporationWhiteList=").append(clientCorporationWhiteList); - sb.append(", comments='").append(comments).append('\''); - sb.append(", companyName='").append(companyName).append('\''); - sb.append(", companyURL='").append(companyURL).append('\''); + sb.append(", comments=").append(comments); + sb.append(", companyName=").append(companyName); + sb.append(", companyURL=").append(companyURL); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateAvailable=").append(dateAvailable); sb.append(", dateAvailableEnd=").append(dateAvailableEnd); @@ -2377,29 +3234,29 @@ public String toString() { sb.append(", dateOfBirth=").append(dateOfBirth); sb.append(", dayRate=").append(dayRate); sb.append(", dayRateLow=").append(dayRateLow); - sb.append(", degreeList='").append(degreeList).append('\''); - sb.append(", description='").append(description).append('\''); - sb.append(", desiredLocations='").append(desiredLocations).append('\''); - sb.append(", disability='").append(disability).append('\''); - sb.append(", educationDegree='").append(educationDegree).append('\''); + sb.append(", degreeList=").append(degreeList); + sb.append(", description=").append(description); + sb.append(", desiredLocations=").append(desiredLocations); + sb.append(", disability=").append(disability); + sb.append(", educationDegree=").append(educationDegree); sb.append(", educations=").append(educations); - sb.append(", email='").append(email).append('\''); - sb.append(", email2='").append(email2).append('\''); - sb.append(", email3='").append(email3).append('\''); - sb.append(", employeeType='").append(employeeType).append('\''); - sb.append(", employmentPreference='").append(employmentPreference).append('\''); - sb.append(", ethnicity='").append(ethnicity).append('\''); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", employeeType=").append(employeeType); + sb.append(", employmentPreference=").append(employmentPreference); + sb.append(", ethnicity=").append(ethnicity); sb.append(", experience=").append(experience); - sb.append(", externalID='").append(externalID).append('\''); - sb.append(", fax='").append(fax).append('\''); - sb.append(", fax2='").append(fax2).append('\''); - sb.append(", fax3='").append(fax3).append('\''); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); sb.append(", federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); sb.append(", federalExemptions=").append(federalExemptions); - sb.append(", federalFilingStatus='").append(federalFilingStatus).append('\''); + sb.append(", federalFilingStatus=").append(federalFilingStatus); sb.append(", fileAttachments=").append(fileAttachments); - sb.append(", firstName='").append(firstName).append('\''); - sb.append(", gender='").append(gender).append('\''); + sb.append(", firstName=").append(firstName); + sb.append(", gender=").append(gender); sb.append(", hourlyRate=").append(hourlyRate); sb.append(", hourlyRateLow=").append(hourlyRateLow); sb.append(", interviews=").append(interviews); @@ -2409,37 +3266,38 @@ public String toString() { sb.append(", isEditable=").append(isEditable); sb.append(", isLockedOut=").append(isLockedOut); sb.append(", isAnonymized=").append(isAnonymized); - sb.append(", lastName='").append(lastName).append('\''); + sb.append(", lastName=").append(lastName); sb.append(", linkedPerson=").append(linkedPerson); sb.append(", leads=").append(leads); sb.append(", localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); sb.append(", localExemptions=").append(localExemptions); - sb.append(", localFilingStatus='").append(localFilingStatus).append('\''); - sb.append(", localTaxCode='").append(localTaxCode).append('\''); + sb.append(", localFilingStatus=").append(localFilingStatus); + sb.append(", localTaxCode=").append(localTaxCode); + sb.append(", luceneScore=").append(luceneScore); sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName='").append(middleName).append('\''); + sb.append(", middleName=").append(middleName); sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile='").append(mobile).append('\''); - sb.append(", name='").append(name).append('\''); - sb.append(", namePrefix='").append(namePrefix).append('\''); - sb.append(", nameSuffix='").append(nameSuffix).append('\''); - sb.append(", nickName='").append(nickName).append('\''); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); sb.append(", notes=").append(notes); sb.append(", numCategories=").append(numCategories); sb.append(", numOwners=").append(numOwners); - sb.append(", occupation='").append(occupation).append('\''); + sb.append(", occupation=").append(occupation); sb.append(", owner=").append(owner); - sb.append(", pager='").append(pager).append('\''); - sb.append(", paperWorkOnFile='").append(paperWorkOnFile).append('\''); - sb.append(", password='").append(password).append('\''); - sb.append(", phone='").append(phone).append('\''); - sb.append(", phone2='").append(phone2).append('\''); - sb.append(", phone3='").append(phone3).append('\''); + sb.append(", pager=").append(pager); + sb.append(", paperWorkOnFile=").append(paperWorkOnFile); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); sb.append(", placements=").append(placements); - sb.append(", preferredContact='").append(preferredContact).append('\''); + sb.append(", preferredContact=").append(preferredContact); sb.append(", primarySkills=").append(primarySkills); - sb.append(", recentClientList='").append(recentClientList).append('\''); - sb.append(", referredBy='").append(referredBy).append('\''); + sb.append(", recentClientList=").append(recentClientList); + sb.append(", referredBy=").append(referredBy); sb.append(", referredByPerson=").append(referredByPerson); sb.append(", references=").append(references); sb.append(", salary=").append(salary); @@ -2448,25 +3306,25 @@ public String toString() { sb.append(", secondaryOwners=").append(secondaryOwners); sb.append(", secondarySkills=").append(secondarySkills); sb.append(", sendouts=").append(sendouts); - sb.append(", skillSet='").append(skillSet).append('\''); + sb.append(", skillSet=").append(skillSet); sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source='").append(source).append('\''); + sb.append(", source=").append(source); sb.append(", specialties=").append(specialties); - sb.append(", ssn='").append(ssn).append('\''); + sb.append(", ssn=").append(ssn); sb.append(", stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); sb.append(", stateExemptions=").append(stateExemptions); - sb.append(", stateFilingStatus='").append(stateFilingStatus).append('\''); - sb.append(", status='").append(status).append('\''); + sb.append(", stateFilingStatus=").append(stateFilingStatus); + sb.append(", status=").append(status); sb.append(", submissions=").append(submissions); sb.append(", tasks=").append(tasks); - sb.append(", taxID='").append(taxID).append('\''); - sb.append(", taxState='").append(taxState).append('\''); + sb.append(", taxID=").append(taxID); + sb.append(", taxState=").append(taxState); sb.append(", tearsheets=").append(tearsheets); sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); sb.append(", travelLimit=").append(travelLimit); - sb.append(", type='").append(type).append('\''); - sb.append(", username='").append(username).append('\''); - sb.append(", veteran='").append(veteran).append('\''); + sb.append(", type=").append(type); + sb.append(", username=").append(username); + sb.append(", veteran=").append(veteran); sb.append(", webResponses=").append(webResponses); sb.append(", willRelocate=").append(willRelocate); sb.append(", workAuthorized=").append(workAuthorized); @@ -2481,18 +3339,18 @@ public String toString() { sb.append(", customObject8s=").append(customObject8s); sb.append(", customObject9s=").append(customObject9s); sb.append(", customObject10s=").append(customObject10s); - sb.append(", \ncustomEncryptedText1=").append(customEncryptedText1); - sb.append(", \ncustomEncryptedText2=").append(customEncryptedText2); - sb.append(", \ncustomEncryptedText3=").append(customEncryptedText3); - sb.append(", \ncustomEncryptedText4=").append(customEncryptedText4); - sb.append(", \ncustomEncryptedText5=").append(customEncryptedText5); - sb.append(", \ncustomEncryptedText6=").append(customEncryptedText6); - sb.append(", \ncustomEncryptedText7=").append(customEncryptedText7); - sb.append(", \ncustomEncryptedText8=").append(customEncryptedText8); - sb.append(", \ncustomEncryptedText9=").append(customEncryptedText9); - sb.append(", \ncustomEncryptedText10=").append(customEncryptedText10); - sb.append(", workPhone='").append(workPhone).append('\''); - sb.append('}'); + sb.append(", customEncryptedText1=").append(customEncryptedText1); + sb.append(", customEncryptedText2=").append(customEncryptedText2); + sb.append(", customEncryptedText3=").append(customEncryptedText3); + sb.append(", customEncryptedText4=").append(customEncryptedText4); + sb.append(", customEncryptedText5=").append(customEncryptedText5); + sb.append(", customEncryptedText6=").append(customEncryptedText6); + sb.append(", customEncryptedText7=").append(customEncryptedText7); + sb.append(", customEncryptedText8=").append(customEncryptedText8); + sb.append(", customEncryptedText9=").append(customEncryptedText9); + sb.append(", customEncryptedText10=").append(customEncryptedText10); + sb.append(", workPhone=").append(workPhone); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java index 6025c9e1..582c62c4 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java @@ -411,34 +411,196 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull(includeLineBreaks)); + } + if(billRate != null){ + sb.append(lbc + "billRate=").append(billRate); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(candidate != null){ + sb.append(lbc + "candidate=").append(candidate.toStringNonNull(includeLineBreaks)); + } + if(customText1 != null){ + sb.append(lbc + "customText1=").append(customText1); + } + if(customText2 != null){ + sb.append(lbc + "customText2=").append(customText2); + } + if(customText3 != null){ + sb.append(lbc + "customText3=").append(customText3); + } + if(customText4 != null){ + sb.append(lbc + "customText4=").append(customText4); + } + if(customText5 != null){ + sb.append(lbc + "customText5=").append(customText5); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateWebResponse != null){ + sb.append(lbc + "dateWebResponse=").append(dateWebResponse); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isHidden != null){ + sb.append(lbc + "isHidden=").append(isHidden); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder=").append(jobOrder.toStringNonNull(includeLineBreaks)); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(sendingUser != null){ + sb.append(lbc + "sendingUser=").append(sendingUser.toStringNonNull(includeLineBreaks)); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments); + } + if(billRate != null){ + sb.append(lbc + "billRate=").append(billRate); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch); + } + if(candidate != null){ + sb.append(lbc + "candidate=").append(candidate); + } + if(customText1 != null){ + sb.append(lbc + "customText1=").append(customText1); + } + if(customText2 != null){ + sb.append(lbc + "customText2=").append(customText2); + } + if(customText3 != null){ + sb.append(lbc + "customText3=").append(customText3); + } + if(customText4 != null){ + sb.append(lbc + "customText4=").append(customText4); + } + if(customText5 != null){ + sb.append(lbc + "customText5=").append(customText5); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateWebResponse != null){ + sb.append(lbc + "dateWebResponse=").append(dateWebResponse); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isHidden != null){ + sb.append(lbc + "isHidden=").append(isHidden); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder=").append(jobOrder); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(payRate != null){ + sb.append(lbc + "payRate=").append(payRate); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(sendingUser != null){ + sb.append(lbc + "sendingUser=").append(sendingUser); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - final StringBuilder sb = new StringBuilder("JobSubmission{"); + final StringBuilder sb = new StringBuilder(getClass() + " { "); sb.append("id=").append(id); sb.append(", appointments=").append(appointments); sb.append(", billRate=").append(billRate); sb.append(", branch=").append(branch); sb.append(", candidate=").append(candidate); - sb.append(", customText1='").append(customText1).append('\''); - sb.append(", customText2='").append(customText2).append('\''); - sb.append(", customText3='").append(customText3).append('\''); - sb.append(", customText4='").append(customText4).append('\''); - sb.append(", customText5='").append(customText5).append('\''); + sb.append(", customText1=").append(customText1); + sb.append(", customText2=").append(customText2); + sb.append(", customText3=").append(customText3); + sb.append(", customText4=").append(customText4); + sb.append(", customText5=").append(customText5); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateLastModified=").append(dateLastModified); sb.append(", dateWebResponse=").append(dateWebResponse); sb.append(", isDeleted=").append(isDeleted); sb.append(", isHidden=").append(isHidden); sb.append(", jobOrder=").append(jobOrder); - sb.append(", migrateGUID='").append(migrateGUID).append('\''); + sb.append(", migrateGUID=").append(migrateGUID); sb.append(", payRate=").append(payRate); sb.append(", salary=").append(salary); sb.append(", sendingUser=").append(sendingUser); - sb.append(", source='").append(source).append('\''); - sb.append(", status='").append(status).append('\''); + sb.append(", source=").append(source); + sb.append(", status=").append(status); sb.append(", tasks=").append(tasks); - sb.append(", comments='").append(comments).append('\''); - sb.append('}'); + sb.append(", comments=").append(comments); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java index c60fbefd..74b2d2cf 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java @@ -387,58 +387,248 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append(lbc + "id="); + sb.append(id); + } + if(action != null){ + sb.append(lbc + "action="); + sb.append(action); + } + if(bhTimeStamp != null){ + sb.append(lbc + "bhTimeStamp="); + sb.append(bhTimeStamp); + } + if(candidates != null){ + sb.append(lbc + "candidates="); + sb.append(candidates.toStringNonNull(includeLineBreaks)); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts="); + sb.append(clientContacts.toStringNonNull(includeLineBreaks)); + } + if(commentingPerson != null){ + sb.append(lbc + "commentingPerson="); + sb.append(commentingPerson.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments="); + sb.append(comments); + } + if(corporateUsers != null){ + sb.append(lbc + "corporateUsers="); + sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + if(entities != null){ + sb.append(lbc + "entities="); + sb.append(entities.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + "externalID="); + sb.append(externalID); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted="); + sb.append(isDeleted); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder="); + sb.append(jobOrder.toStringNonNull(includeLineBreaks)); + } + if(jobOrders != null){ + sb.append(lbc + "jobOrders="); + sb.append(jobOrders.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads="); + sb.append(leads.toStringNonNull(includeLineBreaks)); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID="); + sb.append(migrateGUID); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore="); + sb.append(luceneScore); + } + if(minutesSpent != null){ + sb.append(lbc + "minutesSpent="); + sb.append(minutesSpent); + } + if(opportunities != null){ + sb.append(lbc + "opportunities="); + sb.append(opportunities.toStringNonNull(includeLineBreaks)); + } + if(personReference != null){ + sb.append(lbc + "personReference="); + sb.append(personReference.toStringNonNull(includeLineBreaks)); + } + if(placements != null){ + sb.append(lbc + "placements="); + sb.append(placements.toStringNonNull(includeLineBreaks)); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(action != null){ + sb.append(lbc + "action="); + sb.append(action); + } + if(bhTimeStamp != null){ + sb.append(lbc + "bhTimeStamp="); + sb.append(bhTimeStamp); + } + if(candidates != null){ + sb.append(lbc + "candidates="); + sb.append(candidates.toStringNonNull()); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts="); + sb.append(clientContacts.toStringNonNull()); + } + if(commentingPerson != null){ + sb.append(lbc + "commentingPerson="); + sb.append(commentingPerson.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments="); + sb.append(comments); + } + if(corporateUsers != null){ + sb.append(lbc + "corporateUsers="); + sb.append(corporateUsers.toStringNonNull()); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + if(entities != null){ + sb.append(lbc + "entities="); + sb.append(entities.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + "externalID="); + sb.append(externalID); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted="); + sb.append(isDeleted); + } + if(jobOrder != null){ + sb.append(lbc + "jobOrder="); + sb.append(jobOrder.toStringNonNull()); + } + if(jobOrders != null){ + sb.append(lbc + "jobOrders="); + sb.append(jobOrders.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads="); + sb.append(leads.toStringNonNull()); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID="); + sb.append(migrateGUID); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore="); + sb.append(luceneScore); + } + if(minutesSpent != null){ + sb.append(lbc + "minutesSpent="); + sb.append(minutesSpent); + } + if(opportunities != null){ + sb.append(lbc + "opportunities="); + sb.append(opportunities.toStringNonNull()); + } + if(personReference != null){ + sb.append(lbc + "personReference="); + sb.append(personReference.toStringNonNull()); + } + if(placements != null){ + sb.append(lbc + "placements="); + sb.append(placements.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - return new StringBuilder("Note {") - .append("\n\t\"luceneScore\": ") - .append(luceneScore) - .append(",\n\t\"id\": ") - .append(id) - .append(",\n\t\"action\": ") - .append("'") - .append(action).append('\'') - .append(",\n\t\"bhTimeStamp\": ") - .append("'") - .append(bhTimeStamp).append('\'') - .append(",\n\t\"candidates\": ") - .append(candidates) - .append(",\n\t\"clientContacts\": ") - .append(clientContacts) - .append(",\n\t\"commentingPerson\": ") - .append(commentingPerson) - .append(",\n\t\"comments\": ") - .append("'") - .append(comments).append('\'') - .append(",\n\t\"corporateUsers\": ") - .append(corporateUsers) - .append(",\n\t\"dateAdded\": ") - .append(dateAdded) - .append(",\n\t\"dateLastModified\": ") - .append(dateLastModified) - .append(",\n\t\"entities\": ") - .append(entities) - .append(",\n\t\"externalID\": ") - .append(externalID) - .append(",\n\t\"isDeleted\": ") - .append(isDeleted) - .append(",\n\t\"jobOrder\": ") - .append(jobOrder) - .append(",\n\t\"jobOrders\": ") - .append(jobOrders) - .append(",\n\t\"leads\": ") - .append(leads) - .append(",\n\t\"migrateGUID\": ") - .append("'") - .append(migrateGUID).append('\'') - .append(",\n\t\"minutesSpent\": ") - .append(minutesSpent) - .append(",\n\t\"opportunities\": ") - .append(opportunities) - .append(",\n\t\"personReference\": ") - .append(personReference) - .append(",\n\t\"placements\": ") - .append(placements) - .append('}') - .toString(); + final StringBuilder sb = new StringBuilder(getClass() + " { ") + .append(",\n id=") + .append(id) + .append(",\n action=") + .append(action) + .append(",\n bhTimeStamp=") + .append(bhTimeStamp) + .append(",\n candidates=") + .append(candidates) + .append(",\n clientContacts=") + .append(clientContacts) + .append(",\n commentingPerson=") + .append(commentingPerson) + .append(",\n comments=") + .append(comments) + .append(",\n corporateUsers=") + .append(corporateUsers) + .append(",\n dateAdded=") + .append(dateAdded) + .append(",\n dateLastModified=") + .append(dateLastModified) + .append(",\n entities=") + .append(entities) + .append(",\n externalID=") + .append(externalID) + .append(",\n isDeleted=") + .append(isDeleted) + .append(",\n jobOrder=") + .append(jobOrder) + .append(",\n jobOrders=") + .append(jobOrders) + .append(",\n leads=") + .append(leads) + .append(",\n migrateGUID=") + .append(migrateGUID) + .append("\n luceneScore=") + .append(luceneScore) + .append(",\n minutesSpent=") + .append(minutesSpent) + .append(",\n opportunities=") + .append(opportunities) + .append(",\n personReference=") + .append(personReference) + .append(",\n placements=") + .append(placements) + .append("}"); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java index 8e294b25..be325f6c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java @@ -108,16 +108,66 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass() + " { "); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(note != null){ + builder.append(lbc + "note="); + builder.append(note); + } + if(targetEntityID != null){ + builder.append(lbc + "targetEntityID="); + builder.append(targetEntityID); + } + if(targetEntityName != null){ + builder.append(lbc + "targetEntityName="); + builder.append(targetEntityName); + } + builder.append(lbc + "}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass() + " { "); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(note != null){ + builder.append(lbc + "note="); + builder.append(note); + } + if(targetEntityID != null){ + builder.append(lbc + "targetEntityID="); + builder.append(targetEntityID); + } + if(targetEntityName != null){ + builder.append(lbc + "targetEntityName="); + builder.append(targetEntityName); + } + builder.append(lbc + "}"); + return builder.toString(); + } + @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("NoteEntity {\nid="); + StringBuilder builder = new StringBuilder(getClass() + " {"); + builder.append("\nid="); builder.append(id); - builder.append(", \nnote="); + builder.append(",\n note="); builder.append(note); - builder.append(", \ntargetEntityID="); + builder.append(",\n targetEntityID="); builder.append(targetEntityID); - builder.append(", \ntargetEntityName="); + builder.append(",\n targetEntityName="); builder.append(targetEntityName); builder.append("\n}"); return builder.toString(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index e88a117e..ac25a02e 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1348,7 +1348,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "comments=").append(comments); } if(commissions != null){ - sb.append(lbc + "commissions=").append(commissions); + sb.append(lbc + "commissions=").append(commissions.toStringNonNull(includeLineBreaks)); } if(costCenter != null){ sb.append(lbc + "costCenter=").append(costCenter); @@ -1393,7 +1393,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "flatFee=").append(flatFee); } if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments); + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); } if(hoursOfOperation != null){ sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); @@ -1432,7 +1432,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "markUpPercentage=").append(markUpPercentage); } if(notes != null){ - sb.append(lbc + "notes=").append(notes); + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); } if(otherHourlyFeeComments != null){ sb.append(lbc + "otherHourlyFeeComments=").append(otherHourlyFeeComments); @@ -1480,7 +1480,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "status=").append(status); } if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks); + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); } if(taxRate != null){ sb.append(lbc + "taxRate=").append(taxRate); @@ -1501,7 +1501,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "workWeekStart=").append(workWeekStart); } if(workersCompensationRate != null){ - sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate); + sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate.toStringNonNull(includeLineBreaks)); } if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); @@ -1572,7 +1572,7 @@ public String toStringNonNull() { sb.append(lbc + "placementCertifications=").append(placementCertifications); } if(changeRequests != null){ - sb.append(lbc + "changeRequests=").append(changeRequests); + sb.append(lbc + "changeRequests=").append(changeRequests.toStringNonNull()); } if(clientBillRate != null){ sb.append(lbc + "clientBillRate=").append(clientBillRate); @@ -1584,7 +1584,7 @@ public String toStringNonNull() { sb.append(lbc + "comments=").append(comments); } if(commissions != null){ - sb.append(lbc + "commissions=").append(commissions); + sb.append(lbc + "commissions=").append(commissions.toStringNonNull()); } if(costCenter != null){ sb.append(lbc + "costCenter=").append(costCenter); @@ -1629,7 +1629,7 @@ public String toStringNonNull() { sb.append(lbc + "flatFee=").append(flatFee); } if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments); + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); } if(hoursOfOperation != null){ sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); @@ -1668,7 +1668,7 @@ public String toStringNonNull() { sb.append(lbc + "markUpPercentage=").append(markUpPercentage); } if(notes != null){ - sb.append(lbc + "notes=").append(notes); + sb.append(lbc + "notes=").append(notes.toStringNonNull()); } if(otherHourlyFeeComments != null){ sb.append(lbc + "otherHourlyFeeComments=").append(otherHourlyFeeComments); @@ -1716,7 +1716,7 @@ public String toStringNonNull() { sb.append(lbc + "status=").append(status); } if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks); + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); } if(taxRate != null){ sb.append(lbc + "taxRate=").append(taxRate); @@ -1737,7 +1737,7 @@ public String toStringNonNull() { sb.append(lbc + "workWeekStart=").append(workWeekStart); } if(workersCompensationRate != null){ - sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate); + sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate.toStringNonNull()); } if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java index 9d04f27f..759e8358 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java @@ -111,13 +111,13 @@ public String toString() { } public String toStringNonNull(){ - String lbc = " \n"; - StringBuilder builder = new StringBuilder(); + String lbc = ""; + StringBuilder builder = new StringBuilder(getClass() + " { "); if(additionalProperties != null) { builder.append(lbc + "additionalProperties="); builder.append(additionalProperties); } - + builder.append("}"); return builder.toString(); } @@ -125,12 +125,12 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ""; if(includeLineBreaks) lbc = " \n"; - StringBuilder builder = new StringBuilder(); + StringBuilder builder = new StringBuilder(getClass() + " { "); if(additionalProperties != null) { builder.append(lbc + "additionalProperties="); builder.append(additionalProperties); } - + builder.append("}"); return builder.toString(); } From cd1cd526de99fef84424de1318e4b7573c8d59ae Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 6 Jun 2019 10:48:14 -0400 Subject: [PATCH 07/12] touching up various details --- .../CustomObjectInstance.java | 661 ++++++++++++++++-- .../entity/core/standard/Appointment.java | 40 +- .../model/entity/core/standard/Candidate.java | 2 + .../entity/core/standard/ClientContact.java | 2 + .../model/entity/core/standard/JobData.java | 2 + .../entity/core/standard/JobSubmission.java | 14 +- .../data/model/entity/core/standard/Lead.java | 2 +- .../data/model/entity/core/standard/Note.java | 2 + .../entity/core/standard/NoteEntity.java | 4 +- .../model/entity/core/standard/Placement.java | 2 + .../entity/core/type/AbstractEntity.java | 2 +- .../data/model/entity/embedded/Address.java | 53 +- .../data/model/entity/embedded/LinkedId.java | 25 + .../data/model/entity/embedded/OneToMany.java | 42 +- 14 files changed, 752 insertions(+), 101 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java index 31a069ff..a143673a 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java @@ -829,67 +829,608 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - return "CustomObjectInstance{" + - "id=" + id + - ", text1='" + text1 + '\'' + - ", text2='" + text2 + '\'' + - ", text3='" + text3 + '\'' + - ", text4='" + text4 + '\'' + - ", text5='" + text5 + '\'' + - ", text6='" + text6 + '\'' + - ", text7='" + text7 + '\'' + - ", text8='" + text8 + '\'' + - ", text9='" + text9 + '\'' + - ", text10='" + text10 + '\'' + - ", text11='" + text11 + '\'' + - ", text12='" + text12 + '\'' + - ", text13='" + text13 + '\'' + - ", text14='" + text14 + '\'' + - ", text15='" + text15 + '\'' + - ", text16='" + text16 + '\'' + - ", text17='" + text17 + '\'' + - ", text18='" + text18 + '\'' + - ", text19='" + text19 + '\'' + - ", text20='" + text20 + '\'' + - ", int1=" + int1 + - ", int2=" + int2 + - ", int3=" + int3 + - ", int4=" + int4 + - ", int5=" + int5 + - ", int6=" + int6 + - ", int7=" + int7 + - ", int8=" + int8 + - ", int9=" + int9 + - ", int10=" + int10 + - ", float1=" + float1 + - ", float2=" + float2 + - ", float3=" + float3 + - ", float4=" + float4 + - ", float5=" + float5 + - ", float6=" + float6 + - ", float7=" + float7 + - ", float8=" + float8 + - ", float9=" + float9 + - ", float10=" + float10 + - ", textBlock1='" + textBlock1 + '\'' + - ", textBlock2='" + textBlock2 + '\'' + - ", textBlock3='" + textBlock3 + '\'' + - ", textBlock4='" + textBlock4 + '\'' + - ", textBlock5='" + textBlock5 + '\'' + - ", date1=" + date1 + - ", date2=" + date2 + - ", date3=" + date3 + - ", date4=" + date4 + - ", date5=" + date5 + - ", date6=" + date6 + - ", date7=" + date7 + - ", date8=" + date8 + - ", date9=" + date9 + - ", date10=" + date10 + - ", dateAdded=" + dateAdded + - ", dateLastModified=" + dateLastModified + - '}'; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("id="); + sb.append(id); + sb.append(", text1="); + sb.append(text1); + sb.append(", text2="); + sb.append(text2); + sb.append(", text3="); + sb.append(text3); + sb.append(", text4="); + sb.append(text4); + sb.append(", text5="); + sb.append(text5); + sb.append(", text6="); + sb.append(text6); + sb.append(", text7="); + sb.append(text7); + sb.append(", text8="); + sb.append(text8); + sb.append(", text9="); + sb.append(text9); + sb.append(", text10="); + sb.append(text10); + sb.append(", text11="); + sb.append(text11); + sb.append(", text12="); + sb.append(text12); + sb.append(", text13="); + sb.append(text13); + sb.append(", text14="); + sb.append(text14); + sb.append(", text15="); + sb.append(text15); + sb.append(", text16="); + sb.append(text16); + sb.append(", text17="); + sb.append(text17); + sb.append(", text18="); + sb.append(text18); + sb.append(", text19="); + sb.append(text19); + sb.append(", text20="); + sb.append(text20); + sb.append(", int1="); + sb.append(int1); + sb.append(", int2="); + sb.append(int2); + sb.append(", int3="); + sb.append(int3); + sb.append(", int4="); + sb.append(int4); + sb.append(", int5="); + sb.append(int5); + sb.append(", int6="); + sb.append(int6); + sb.append(", int7="); + sb.append(int7); + sb.append(", int8="); + sb.append(int8); + sb.append(", int9="); + sb.append(int9); + sb.append(", int10="); + sb.append(int10); + sb.append(", float1="); + sb.append(float1); + sb.append(", float2="); + sb.append(float2); + sb.append(", float3="); + sb.append(float3); + sb.append(", float4="); + sb.append(float4); + sb.append(", float5="); + sb.append(float5); + sb.append(", float6="); + sb.append(float6); + sb.append(", float7="); + sb.append(float7); + sb.append(", float8="); + sb.append(float8); + sb.append(", float9="); + sb.append(float9); + sb.append(", float10="); + sb.append(float10); + sb.append(", textBlock1="); + sb.append(textBlock1); + sb.append(", textBlock2="); + sb.append(textBlock2); + sb.append(", textBlock3="); + sb.append(textBlock3); + sb.append(", textBlock4="); + sb.append(textBlock4); + sb.append(", textBlock5="); + sb.append(textBlock5); + sb.append(", date1="); + sb.append(date1); + sb.append(", date2="); + sb.append(date2); + sb.append(", date3="); + sb.append(date3); + sb.append(", date4="); + sb.append(date4); + sb.append(", date5="); + sb.append(date5); + sb.append(", date6="); + sb.append(date6); + sb.append(", date7="); + sb.append(date7); + sb.append(", date8="); + sb.append(date8); + sb.append(", date9="); + sb.append(date9); + sb.append(", date10="); + sb.append(date10); + sb.append(", dateAdded="); + sb.append(dateAdded); + sb.append(", dateLastModified="); + sb.append(dateLastModified); + sb.append("}"); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 21e7bde5..6abc8cee 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -625,19 +625,19 @@ public String toStringNonNull(boolean includeLineBreaks) { } if(guests != null){ builder.append(lbc + "guests="); - builder.append(guests); + builder.append(guests.toStringNonNull(includeLineBreaks)); } if(candidateReference != null){ builder.append(lbc + "candidateReference="); - builder.append(candidateReference); + builder.append(candidateReference.toStringNonNull(includeLineBreaks)); } if(childAppointments != null){ builder.append(lbc + "childAppointments="); - builder.append(childAppointments); + builder.append(childAppointments.toStringNonNull(includeLineBreaks)); } if(clientContactReference != null){ builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference); + builder.append(clientContactReference.toStringNonNull(includeLineBreaks)); } if(communicationMethod != null){ builder.append(lbc + "communicationMethod="); @@ -677,7 +677,7 @@ public String toStringNonNull(boolean includeLineBreaks) { } if(jobOrder != null){ builder.append(lbc + "jobOrder="); - builder.append(jobOrder); + builder.append(jobOrder.toStringNonNull(includeLineBreaks)); } if(location != null){ builder.append(lbc + "location="); @@ -693,15 +693,15 @@ public String toStringNonNull(boolean includeLineBreaks) { } if(owner != null){ builder.append(lbc + "owner="); - builder.append(owner); + builder.append(owner.toStringNonNull(includeLineBreaks)); } if(parentAppointment != null){ builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment); + builder.append(parentAppointment.toStringNonNull(includeLineBreaks)); } if(placement != null){ builder.append(lbc + "placement="); - builder.append(placement); + builder.append(placement.toStringNonNull(includeLineBreaks)); } if(recurrenceDayBits != null){ builder.append(lbc + "recurrenceDayBits="); @@ -745,13 +745,15 @@ public String toStringNonNull(boolean includeLineBreaks) { } if(opportunity != null){ builder.append(lbc + "opportunity="); - builder.append(opportunity); + builder.append(opportunity.toStringNonNull(includeLineBreaks)); } if(this.getAdditionalProperties() != null){ builder.append(lbc + "additionalProperties="); builder.append(this.getAdditionalProperties()); } - builder.append(lbc + "}"); + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); return builder.toString(); } @@ -770,19 +772,19 @@ public String toStringNonNull() { } if(guests != null){ builder.append(lbc + "guests="); - builder.append(guests); + builder.append(guests.toStringNonNull()); } if(candidateReference != null){ builder.append(lbc + "candidateReference="); - builder.append(candidateReference); + builder.append(candidateReference.toStringNonNull()); } if(childAppointments != null){ builder.append(lbc + "childAppointments="); - builder.append(childAppointments); + builder.append(childAppointments.toStringNonNull()); } if(clientContactReference != null){ builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference); + builder.append(clientContactReference.toStringNonNull()); } if(communicationMethod != null){ builder.append(lbc + "communicationMethod="); @@ -822,7 +824,7 @@ public String toStringNonNull() { } if(jobOrder != null){ builder.append(lbc + "jobOrder="); - builder.append(jobOrder); + builder.append(jobOrder.toStringNonNull()); } if(location != null){ builder.append(lbc + "location="); @@ -838,15 +840,15 @@ public String toStringNonNull() { } if(owner != null){ builder.append(lbc + "owner="); - builder.append(owner); + builder.append(owner.toStringNonNull()); } if(parentAppointment != null){ builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment); + builder.append(parentAppointment.toStringNonNull()); } if(placement != null){ builder.append(lbc + "placement="); - builder.append(placement); + builder.append(placement.toStringNonNull()); } if(recurrenceDayBits != null){ builder.append(lbc + "recurrenceDayBits="); @@ -890,7 +892,7 @@ public String toStringNonNull() { } if(opportunity != null){ builder.append(lbc + "opportunity="); - builder.append(opportunity); + builder.append(opportunity.toStringNonNull()); } if(this.getAdditionalProperties() != null){ builder.append(lbc + "additionalProperties="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java index 3de6d39d..86e5322f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java @@ -3203,6 +3203,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(workPhone != null){ sb.append(lbc + "workPhone=").append(workPhone); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java index 90fbfd32..c2ce24b5 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java @@ -1545,6 +1545,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(customObject10s != null){ sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java index 72bc9203..4eb7a3bd 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java @@ -2011,6 +2011,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(customObject10s != null){ sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java index 582c62c4..87e81632 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java @@ -489,6 +489,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(comments != null){ sb.append(lbc + "comments=").append(comments); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } @@ -501,16 +503,16 @@ public String toStringNonNull() { sb.append("id=").append(id); } if(appointments != null){ - sb.append(lbc + "appointments=").append(appointments); + sb.append(lbc + "appointments=").append(appointments.toStringNonNull()); } if(billRate != null){ sb.append(lbc + "billRate=").append(billRate); } if(branch != null){ - sb.append(lbc + "branch=").append(branch); + sb.append(lbc + "branch=").append(branch.toStringNonNull()); } if(candidate != null){ - sb.append(lbc + "candidate=").append(candidate); + sb.append(lbc + "candidate=").append(candidate.toStringNonNull()); } if(customText1 != null){ sb.append(lbc + "customText1=").append(customText1); @@ -543,7 +545,7 @@ public String toStringNonNull() { sb.append(lbc + "isHidden=").append(isHidden); } if(jobOrder != null){ - sb.append(lbc + "jobOrder=").append(jobOrder); + sb.append(lbc + "jobOrder=").append(jobOrder.toStringNonNull()); } if(migrateGUID != null){ sb.append(lbc + "migrateGUID=").append(migrateGUID); @@ -555,7 +557,7 @@ public String toStringNonNull() { sb.append(lbc + "salary=").append(salary); } if(sendingUser != null){ - sb.append(lbc + "sendingUser=").append(sendingUser); + sb.append(lbc + "sendingUser=").append(sendingUser.toStringNonNull()); } if(source != null){ sb.append(lbc + "source=").append(source); @@ -564,7 +566,7 @@ public String toStringNonNull() { sb.append(lbc + "status=").append(status); } if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks); + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); } if(comments != null){ sb.append(lbc + "comments=").append(comments); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java index 0c78bd37..8c5b9eed 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java @@ -1227,7 +1227,7 @@ public String toString() { sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); sb.append(", type='").append(type).append('\''); sb.append(", willRelocate=").append(willRelocate); - sb.append('}'); + sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java index 74b2d2cf..21d67ccc 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java @@ -481,6 +481,8 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "placements="); sb.append(placements.toStringNonNull(includeLineBreaks)); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java index be325f6c..c05b5879 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java @@ -144,7 +144,7 @@ public String toStringNonNull(boolean includeLineBreaks) { } if(note != null){ builder.append(lbc + "note="); - builder.append(note); + builder.append(note.toStringNonNull(includeLineBreaks)); } if(targetEntityID != null){ builder.append(lbc + "targetEntityID="); @@ -164,7 +164,7 @@ public String toString() { builder.append("\nid="); builder.append(id); builder.append(",\n note="); - builder.append(note); + builder.append(note.toStringNonNull()); builder.append(",\n targetEntityID="); builder.append(targetEntityID); builder.append(",\n targetEntityName="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index ac25a02e..e09469dd 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1533,6 +1533,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(customObject10s != null){ sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); } + if(includeLineBreaks) + sb.append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java index 759e8358..74f1ad6e 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java @@ -130,7 +130,7 @@ public String toStringNonNull(boolean includeLineBreaks) { builder.append(lbc + "additionalProperties="); builder.append(additionalProperties); } - builder.append("}"); + builder.append(lbc + "}"); return builder.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java index fe168855..ec1fb109 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java @@ -137,16 +137,51 @@ public boolean equals(Object o) { return countryName != null ? countryName.equals(address.countryName) : address.countryName == null; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - return "Address{" + - "address1='" + address1 + '\'' + - ", address2='" + address2 + '\'' + - ", city='" + city + '\'' + - ", state='" + state + '\'' + - ", zip='" + zip + '\'' + - ", countryID=" + countryID + - ", countryName='" + countryName + '\'' + - '}'; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(", address2=" + address2); + sb.append(", city=" + city); + sb.append(", state=" + state); + sb.append(", zip=" + zip); + sb.append(", countryID=" + countryID); + sb.append(", countryName=" + countryName); + sb.append("}"); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java index c8817c3d..1e4d3bbf 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java @@ -55,6 +55,31 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ""; + if(includeLineBreaks) + lbc = "\n"; + StringBuilder builder = new StringBuilder("{ "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + builder.append(lbc +"}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + StringBuilder builder = new StringBuilder("{ "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + builder.append("}"); + return builder.toString(); + } + @Override public String toString() { StringBuilder builder = new StringBuilder(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java index 17b44f1c..d2de37ea 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java @@ -2,6 +2,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.stream.Collectors; import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; import com.fasterxml.jackson.annotation.JsonInclude; @@ -77,15 +78,50 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull() { + StringBuilder builder = new StringBuilder(); + builder.append(" {\n data=["); + builder.append(data.stream().map(T ->{ + if (T instanceof AbstractEntity) + return ((AbstractEntity)T).toStringNonNull(); + return T.toString(); + }).collect(Collectors.joining(","))); + builder.append("], total="); + builder.append(total); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(); + builder.append(" { data=["); + builder.append(data.stream().map(T ->{ + if (T instanceof AbstractEntity) + return ((AbstractEntity)T).toStringNonNull(includeLineBreaks); + return T.toString(); + }).collect(Collectors.joining(lbc))); + builder.append("]" + lbc + " total="); + builder.append(total); + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + @Override public String toString() { StringBuilder builder = new StringBuilder(); - builder.append(" {\ndata="); + builder.append(" {\n data="); builder.append(data); - builder.append(", \ntotal="); + builder.append(",\n total="); builder.append(total); builder.append("\n}"); return builder.toString(); } -} \ No newline at end of file +} From 96f4b19ec4d1934f21426061af59616a81722f20 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 6 Jun 2019 16:38:56 -0400 Subject: [PATCH 08/12] more entities --- .../entity/core/standard/Appointment.java | 3 +- .../model/entity/core/standard/Branch.java | 575 ++++++++++++++---- .../entity/core/standard/BusinessSector.java | 61 +- .../core/standard/ClientCorporation.java | 398 ++++++++++++ .../entity/core/standard/CorporateUser.java | 573 ++++++++++++++--- .../entity/core/standard/HousingComplex.java | 41 +- .../entity/core/standard/JobSubmission.java | 2 + .../data/model/entity/core/standard/Lead.java | 447 ++++++++++++++ .../data/model/entity/core/standard/Note.java | 2 + .../model/entity/core/standard/Person.java | 301 ++++++++- .../entity/customfields/CustomFieldsB.java | 10 +- 11 files changed, 2181 insertions(+), 232 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 6abc8cee..9f4607e6 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -615,6 +615,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(includeLineBreaks) lbc = ",\n "; StringBuilder builder = new StringBuilder().append("Appointment { "); + if(includeLineBreaks) + builder.append(" { "); if(id != null){ builder.append("id="); builder.append(id); @@ -757,7 +759,6 @@ public String toStringNonNull(boolean includeLineBreaks) { return builder.toString(); } - @Override public String toStringNonNull() { String lbc = ", "; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java index 5ea8bff7..f478aed2 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java @@ -680,113 +680,476 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder sb = new StringBuilder(getClass().getName()); + sb.append(" { "); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + if(customText1 != null){ + sb.append(lbc + " customText1="); + sb.append(customText1); + } + if(customText2 != null){ + sb.append(lbc + " customText2="); + sb.append(customText2); + } + if(customText3 != null){ + sb.append(lbc + " customText3="); + sb.append(customText3); + } + if(customText4 != null){ + sb.append(lbc + " customText4="); + sb.append(customText4); + } + if(customText5 != null){ + sb.append(lbc + " customText5="); + sb.append(customText5); + } + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull()); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull()); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = lbc + " "; + StringBuilder sb =new StringBuilder(getClass().getName()); + sb.append(" { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + if(customText1 != null){ + sb.append(lbc + " customText1="); + sb.append(customText1); + } + if(customText2 != null){ + sb.append(lbc + " customText2="); + sb.append(customText2); + } + if(customText3 != null){ + sb.append(lbc + " customText3="); + sb.append(customText3); + } + if(customText4 != null){ + sb.append(lbc + " customText4="); + sb.append(customText4); + } + if(customText5 != null){ + sb.append(lbc + " customText5="); + sb.append(customText5); + } + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull(includeLineBreaks)); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull(includeLineBreaks)); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - return new StringBuilder("Branch {") - .append("\n\t\"id\": ") - .append(id) - .append(",\n\t\"name\": ") - .append("'") - .append(name).append('\'') - .append(",\n\t\"isDeleted\": ") - .append(isDeleted) - .append(",\n\t\"parentBranch\": ") - .append(parentBranch) - .append(",\n\t\"externalID\": ") - .append("'") - .append(externalID).append('\'') - .append(",\n\t\"dateAdded\": ") - .append(dateAdded) - .append(",\n\t\"customText1\": ") - .append("'") - .append(customText1).append('\'') - .append(",\n\t\"customText2\": ") - .append("'") - .append(customText2).append('\'') - .append(",\n\t\"customText3\": ") - .append("'") - .append(customText3).append('\'') - .append(",\n\t\"customText4\": ") - .append("'") - .append(customText4).append('\'') - .append(",\n\t\"customText5\": ") - .append("'") - .append(customText5).append('\'') - .append(",\n\t\"customText6\": ") - .append("'") - .append(customText6).append('\'') - .append(",\n\t\"customText7\": ") - .append("'") - .append(customText7).append('\'') - .append(",\n\t\"customText8\": ") - .append("'") - .append(customText8).append('\'') - .append(",\n\t\"customText9\": ") - .append("'") - .append(customText9).append('\'') - .append(",\n\t\"customText10\": ") - .append("'") - .append(customText10).append('\'') - .append(",\n\t\"customTextBlock1\": ") - .append("'") - .append(customTextBlock1).append('\'') - .append(",\n\t\"customTextBlock2\": ") - .append("'") - .append(customTextBlock2).append('\'') - .append(",\n\t\"customTextBlock3\": ") - .append("'") - .append(customTextBlock3).append('\'') - .append(",\n\t\"customDate1\": ") - .append(customDate1) - .append(",\n\t\"customDate2\": ") - .append(customDate2) - .append(",\n\t\"customDate3\": ") - .append(customDate3) - .append(",\n\t\"customDate4\": ") - .append(customDate4) - .append(",\n\t\"customDate5\": ") - .append(customDate5) - .append(",\n\t\"customDate6\": ") - .append(customDate6) - .append(",\n\t\"customFloat1\": ") - .append(customFloat1) - .append(",\n\t\"customFloat2\": ") - .append(customFloat2) - .append(",\n\t\"customFloat3\": ") - .append(customFloat3) - .append(",\n\t\"customFloat4\": ") - .append(customFloat4) - .append(",\n\t\"customFloat5\": ") - .append(customFloat5) - .append(",\n\t\"customFloat6\": ") - .append(customFloat6) - .append(",\n\t\"customInt1\": ") - .append(customInt1) - .append(",\n\t\"customInt2\": ") - .append(customInt2) - .append(",\n\t\"customInt3\": ") - .append(customInt3) - .append(",\n\t\"customInt4\": ") - .append(customInt4) - .append(",\n\t\"customInt5\": ") - .append(customInt5) - .append(",\n\t\"customInt6\": ") - .append(customInt6) - .append(",\n\t\"customInt7\": ") - .append(customInt7) - .append(",\n\t\"customInt8\": ") - .append(customInt8) - .append(",\n\t\"customInt9\": ") - .append(customInt9) - .append(",\n\t\"customInt10\": ") - .append(customInt10) - .append(",\n\t\"ancestors\": ") - .append(ancestors) - .append(",\n\t\"descendants\": ") - .append(descendants) - .append(",\n\t\"corporateUsers\": ") - .append(corporateUsers) - .append('}') - .toString(); + StringBuilder sb =new StringBuilder(getClass().getName()); + sb.append(" { "); + sb.append("\n id="); + sb.append(id); + sb.append(",\n name="); + sb.append(name); + sb.append(",\n isDeleted="); + sb.append(isDeleted); + sb.append(",\n parentBranch="); + sb.append(parentBranch); + sb.append(",\n externalID="); + sb.append(externalID); + sb.append(",\n dateAdded="); + sb.append(dateAdded); + sb.append(",\n customText1="); + sb.append(customText1); + sb.append(",\n customText2="); + sb.append(customText2); + sb.append(",\n customText3="); + sb.append(customText3); + sb.append(",\n customText4="); + sb.append(customText4); + sb.append(",\n customText5="); + sb.append(customText5); + sb.append(",\n customText6="); + sb.append(customText6); + sb.append(",\n customText7="); + sb.append(customText7); + sb.append(",\n customText8="); + sb.append(customText8); + sb.append(",\n customText9="); + sb.append(customText9); + sb.append(",\n customText10="); + sb.append(customText10); + sb.append(",\n customTextBlock1="); + sb.append(customTextBlock1); + sb.append(",\n customTextBlock2="); + sb.append(customTextBlock2); + sb.append(",\n customTextBlock3="); + sb.append(customTextBlock3); + sb.append(",\n customDate1="); + sb.append(customDate1); + sb.append(",\n customDate2="); + sb.append(customDate2); + sb.append(",\n customDate3="); + sb.append(customDate3); + sb.append(",\n customDate4="); + sb.append(customDate4); + sb.append(",\n customDate5="); + sb.append(customDate5); + sb.append(",\n customDate6="); + sb.append(customDate6); + sb.append(",\n customFloat1="); + sb.append(customFloat1); + sb.append(",\n customFloat2="); + sb.append(customFloat2); + sb.append(",\n customFloat3="); + sb.append(customFloat3); + sb.append(",\n customFloat4="); + sb.append(customFloat4); + sb.append(",\n customFloat5="); + sb.append(customFloat5); + sb.append(",\n customFloat6="); + sb.append(customFloat6); + sb.append(",\n customInt1="); + sb.append(customInt1); + sb.append(",\n customInt2="); + sb.append(customInt2); + sb.append(",\n customInt3="); + sb.append(customInt3); + sb.append(",\n customInt4="); + sb.append(customInt4); + sb.append(",\n customInt5="); + sb.append(customInt5); + sb.append(",\n customInt6="); + sb.append(customInt6); + sb.append(",\n customInt7="); + sb.append(customInt7); + sb.append(",\n customInt8="); + sb.append(customInt8); + sb.append(",\n customInt9="); + sb.append(customInt9); + sb.append(",\n customInt10="); + sb.append(customInt10); + sb.append(",\n ancestors="); + sb.append(ancestors); + sb.append(",\n descendants="); + sb.append(descendants); + sb.append(",\n corporateUsers="); + sb.append(corporateUsers); + sb.append("}"); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java index 06450d7c..9e5c8858 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java @@ -93,10 +93,67 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("BusinessSector {\nid="); + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + builder.append("\nid="); builder.append(id); builder.append(", \ndateAdded="); builder.append(dateAdded); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java index dcae92b6..651fb492 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java @@ -1320,6 +1320,404 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull()); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull()); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull()); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull()); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull()); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull()); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull()); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull()); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull()); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull()); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull()); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull()); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull()); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull()); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull(includeLineBreaks)); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull(includeLineBreaks)); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull(includeLineBreaks)); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull(includeLineBreaks)); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull(includeLineBreaks)); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull(includeLineBreaks)); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull(includeLineBreaks)); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull(includeLineBreaks)); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull(includeLineBreaks)); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull(includeLineBreaks)); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull(includeLineBreaks)); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull(includeLineBreaks)); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull(includeLineBreaks)); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { final StringBuilder sb = new StringBuilder("ClientCorporation{"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java index f12e3b65..ba7043b6 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java @@ -923,102 +923,485 @@ public boolean equals(Object obj) { return true; } - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(getClass().getName()); - builder.append(" {\n\tid: "); - builder.append(id); - builder.append("\n\taddress: "); - builder.append(address); - builder.append("\n\tbranches: "); + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" { "); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(address != null){ + builder.append(lbc + "address="); + builder.append(address.toStringNonNull(includeLineBreaks)); + } + if(branches != null){ + builder.append(lbc + "branches="); + builder.append(branches.toStringNonNull(includeLineBreaks)); + } + if(dateLastComment != null){ + builder.append(lbc + "dateLastComment="); + builder.append(dateLastComment); + } + if(departments != null){ + builder.append(lbc + "departments="); + builder.append(departments.toStringNonNull(includeLineBreaks)); + } + if(email != null){ + builder.append(lbc + "email="); + builder.append(email); + } + if(email2 != null){ + builder.append(lbc + "email2="); + builder.append(email2); + } + if(email3 != null){ + builder.append(lbc + "email3="); + builder.append(email3); + } + if(emailNotify != null){ + builder.append(lbc + "emailNotify="); + builder.append(emailNotify); + } + if(emailSignature != null){ + builder.append(lbc + "emailSignature="); + builder.append(emailSignature); + } + if(enabled != null){ + builder.append(lbc + "enabled="); + builder.append(enabled); + } + if(externalEmail != null){ + builder.append(lbc + "externalEmail="); + builder.append(externalEmail); + } + if(fax != null){ + builder.append(lbc + "fax="); + builder.append(fax); + } + if(fax2 != null){ + builder.append(lbc + "fax2="); + builder.append(fax2); + } + if(fax3 != null){ + builder.append(lbc + "fax3="); + builder.append(fax3); + } + if(firstName != null){ + builder.append(lbc + "firstName="); + builder.append(firstName); + } + if(inboundEmailEnabled != null){ + builder.append(lbc + "inboundEmailEnabled="); + builder.append(inboundEmailEnabled); + } + if(isDayLightSavings != null){ + builder.append(lbc + "isDayLightSavings="); + builder.append(isDayLightSavings); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isLockedOut != null){ + builder.append(lbc + "isLockedOut="); + builder.append(isLockedOut); + } + if(isOutboundFaxEnabled != null){ + builder.append(lbc + "isOutboundFaxEnabled="); + builder.append(isOutboundFaxEnabled); + } + if(jobAssignments != null){ + builder.append(lbc + "jobAssignments="); + builder.append(jobAssignments.toStringNonNull(includeLineBreaks)); + } + if(lastName != null){ + builder.append(lbc + "lastName="); + builder.append(lastName); + } + if(loginRestrictions != null){ + builder.append(lbc + "loginRestrictions="); + builder.append(loginRestrictions); + } + if(massMailOptOut != null){ + builder.append(lbc + "massMailOptOut="); + builder.append(massMailOptOut); + } + if(middleName != null){ + builder.append(lbc + "middleName="); + builder.append(middleName); + } + if(mobile != null){ + builder.append(lbc + "mobile="); + builder.append(mobile); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(namePrefix != null){ + builder.append(lbc + "namePrefix="); + builder.append(namePrefix); + } + if(nameSuffix != null){ + builder.append(lbc + "nameSuffix="); + builder.append(nameSuffix); + } + if(nickName != null){ + builder.append(lbc + "nickName="); + builder.append(nickName); + } + if(occupation != null){ + builder.append(lbc + "occupation="); + builder.append(occupation); + } + if(pager != null){ + builder.append(lbc + "pager="); + builder.append(pager); + } + if(phone != null){ + builder.append(lbc + "phone="); + builder.append(phone); + } + if(phone2 != null){ + builder.append(lbc + "phone2="); + builder.append(phone2); + } + if(phone3 != null){ + builder.append(lbc + "phone3="); + builder.append(phone3); + } + if(primaryDepartment != null){ + builder.append(lbc + "primaryDepartment="); + builder.append(primaryDepartment.toStringNonNull(includeLineBreaks)); + } + if(privateLabel != null){ + builder.append(lbc + "privateLabel="); + builder.append(privateLabel.toStringNonNull(includeLineBreaks)); + } + if(reportToPerson != null){ + builder.append(lbc + "reportToPerson="); + builder.append(reportToPerson); + } + if(smsOptIn != null){ + builder.append(lbc + "smsOptIn="); + builder.append(smsOptIn); + } + if(taskAssignments != null){ + builder.append(lbc + "taskAssignments="); + builder.append(taskAssignments.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + builder.append(lbc + "timeZoneOffsetEST="); + builder.append(timeZoneOffsetEST); + } + if(userDateAdded != null){ + builder.append(lbc + "userDateAdded="); + builder.append(userDateAdded); + } + if(username != null){ + builder.append(lbc + "username="); + builder.append(username); + } + if(userType != null){ + builder.append(lbc + "userType="); + builder.append(userType); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" { "); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(address != null){ + builder.append(lbc + "address="); + builder.append(address.toStringNonNull()); + } + if(branches != null){ + builder.append(lbc + "branches="); + builder.append(branches.toStringNonNull()); + } + if(dateLastComment != null){ + builder.append(lbc + "dateLastComment="); + builder.append(dateLastComment); + } + if(departments != null){ + builder.append(lbc + "departments="); + builder.append(departments.toStringNonNull()); + } + if(email != null){ + builder.append(lbc + "email="); + builder.append(email); + } + if(email2 != null){ + builder.append(lbc + "email2="); + builder.append(email2); + } + if(email3 != null){ + builder.append(lbc + "email3="); + builder.append(email3); + } + if(emailNotify != null){ + builder.append(lbc + "emailNotify="); + builder.append(emailNotify); + } + if(emailSignature != null){ + builder.append(lbc + "emailSignature="); + builder.append(emailSignature); + } + if(enabled != null){ + builder.append(lbc + "enabled="); + builder.append(enabled); + } + if(externalEmail != null){ + builder.append(lbc + "externalEmail="); + builder.append(externalEmail); + } + if(fax != null){ + builder.append(lbc + "fax="); + builder.append(fax); + } + if(fax2 != null){ + builder.append(lbc + "fax2="); + builder.append(fax2); + } + if(fax3 != null){ + builder.append(lbc + "fax3="); + builder.append(fax3); + } + if(firstName != null){ + builder.append(lbc + "firstName="); + builder.append(firstName); + } + if(inboundEmailEnabled != null){ + builder.append(lbc + "inboundEmailEnabled="); + builder.append(inboundEmailEnabled); + } + if(isDayLightSavings != null){ + builder.append(lbc + "isDayLightSavings="); + builder.append(isDayLightSavings); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isLockedOut != null){ + builder.append(lbc + "isLockedOut="); + builder.append(isLockedOut); + } + if(isOutboundFaxEnabled != null){ + builder.append(lbc + "isOutboundFaxEnabled="); + builder.append(isOutboundFaxEnabled); + } + if(jobAssignments != null){ + builder.append(lbc + "jobAssignments="); + builder.append(jobAssignments.toStringNonNull()); + } + if(lastName != null){ + builder.append(lbc + "lastName="); + builder.append(lastName); + } + if(loginRestrictions != null){ + builder.append(lbc + "loginRestrictions="); + builder.append(loginRestrictions); + } + if(massMailOptOut != null){ + builder.append(lbc + "massMailOptOut="); + builder.append(massMailOptOut); + } + if(middleName != null){ + builder.append(lbc + "middleName="); + builder.append(middleName); + } + if(mobile != null){ + builder.append(lbc + "mobile="); + builder.append(mobile); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(namePrefix != null){ + builder.append(lbc + "namePrefix="); + builder.append(namePrefix); + } + if(nameSuffix != null){ + builder.append(lbc + "nameSuffix="); + builder.append(nameSuffix); + } + if(nickName != null){ + builder.append(lbc + "nickName="); + builder.append(nickName); + } + if(occupation != null){ + builder.append(lbc + "occupation="); + builder.append(occupation); + } + if(pager != null){ + builder.append(lbc + "pager="); + builder.append(pager); + } + if(phone != null){ + builder.append(lbc + "phone="); + builder.append(phone); + } + if(phone2 != null){ + builder.append(lbc + "phone2="); + builder.append(phone2); + } + if(phone3 != null){ + builder.append(lbc + "phone3="); + builder.append(phone3); + } + if(primaryDepartment != null){ + builder.append(lbc + "primaryDepartment="); + builder.append(primaryDepartment.toStringNonNull()); + } + if(privateLabel != null){ + builder.append(lbc + "privateLabel="); + builder.append(privateLabel.toStringNonNull()); + } + if(reportToPerson != null){ + builder.append(lbc + "reportToPerson="); + builder.append(reportToPerson); + } + if(smsOptIn != null){ + builder.append(lbc + "smsOptIn="); + builder.append(smsOptIn); + } + if(taskAssignments != null){ + builder.append(lbc + "taskAssignments="); + builder.append(taskAssignments.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + builder.append(lbc + "timeZoneOffsetEST="); + builder.append(timeZoneOffsetEST); + } + if(userDateAdded != null){ + builder.append(lbc + "userDateAdded="); + builder.append(userDateAdded); + } + if(username != null){ + builder.append(lbc + "username="); + builder.append(username); + } + if(userType != null){ + builder.append(lbc + "userType="); + builder.append(userType); + } + builder.append("}"); + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {\n\tid="); + builder.append(id); + builder.append("\n\taddress="); + builder.append(address); + builder.append("\n\tbranches="); builder.append(branches); - builder.append("\n\tdateLastComment: "); - builder.append(dateLastComment); - builder.append("\n\tdepartments: "); - builder.append(departments); - builder.append("\n\temail: "); - builder.append(email); - builder.append("\n\temail2: "); - builder.append(email2); - builder.append("\n\temail3: "); - builder.append(email3); - builder.append("\n\temailNotify: "); - builder.append(emailNotify); - builder.append("\n\temailSignature: "); - builder.append(emailSignature); - builder.append("\n\tenabled: "); - builder.append(enabled); - builder.append("\n\texternalEmail: "); - builder.append(externalEmail); - builder.append("\n\tfax: "); - builder.append(fax); - builder.append("\n\tfax2: "); - builder.append(fax2); - builder.append("\n\tfax3: "); - builder.append(fax3); - builder.append("\n\tfirstName: "); - builder.append(firstName); - builder.append("\n\tinboundEmailEnabled: "); - builder.append(inboundEmailEnabled); - builder.append("\n\tisDayLightSavings: "); - builder.append(isDayLightSavings); - builder.append("\n\tisDeleted: "); - builder.append(isDeleted); - builder.append("\n\tisLockedOut: "); - builder.append(isLockedOut); - builder.append("\n\tisOutboundFaxEnabled: "); - builder.append(isOutboundFaxEnabled); - builder.append("\n\tjobAssignments: "); - builder.append(jobAssignments); - builder.append("\n\tlastName: "); - builder.append(lastName); - builder.append("\n\tloginRestrictions: "); - builder.append(loginRestrictions); - builder.append("\n\tmassMailOptOut: "); - builder.append(massMailOptOut); - builder.append("\n\tmiddleName: "); - builder.append(middleName); - builder.append("\n\tmobile: "); - builder.append(mobile); - builder.append("\n\tname: "); - builder.append(name); - builder.append("\n\tnamePrefix: "); - builder.append(namePrefix); - builder.append("\n\tnameSuffix: "); - builder.append(nameSuffix); - builder.append("\n\tnickName: "); - builder.append(nickName); - builder.append("\n\toccupation: "); - builder.append(occupation); - builder.append("\n\tpager: "); - builder.append(pager); - builder.append("\n\tphone: "); - builder.append(phone); - builder.append("\n\tphone2: "); - builder.append(phone2); - builder.append("\n\tphone3: "); - builder.append(phone3); - builder.append("\n\tprimaryDepartment: "); - builder.append(primaryDepartment); - builder.append("\n\tprivateLabel: "); - builder.append(privateLabel); - builder.append("\n\treportToPerson: "); - builder.append(reportToPerson); - builder.append("\n\tsmsOptIn: "); - builder.append(smsOptIn); - builder.append("\n\ttaskAssignments: "); - builder.append(taskAssignments); - builder.append("\n\ttimeZoneOffsetEST: "); - builder.append(timeZoneOffsetEST); - builder.append("\n\tuserDateAdded: "); + builder.append("\n\tdateLastComment="); + builder.append(dateLastComment); + builder.append("\n\tdepartments="); + builder.append(departments); + builder.append("\n\temail="); + builder.append(email); + builder.append("\n\temail2="); + builder.append(email2); + builder.append("\n\temail3="); + builder.append(email3); + builder.append("\n\temailNotify="); + builder.append(emailNotify); + builder.append("\n\temailSignature="); + builder.append(emailSignature); + builder.append("\n\tenabled="); + builder.append(enabled); + builder.append("\n\texternalEmail="); + builder.append(externalEmail); + builder.append("\n\tfax="); + builder.append(fax); + builder.append("\n\tfax2="); + builder.append(fax2); + builder.append("\n\tfax3="); + builder.append(fax3); + builder.append("\n\tfirstName="); + builder.append(firstName); + builder.append("\n\tinboundEmailEnabled="); + builder.append(inboundEmailEnabled); + builder.append("\n\tisDayLightSavings="); + builder.append(isDayLightSavings); + builder.append("\n\tisDeleted="); + builder.append(isDeleted); + builder.append("\n\tisLockedOut="); + builder.append(isLockedOut); + builder.append("\n\tisOutboundFaxEnabled="); + builder.append(isOutboundFaxEnabled); + builder.append("\n\tjobAssignments="); + builder.append(jobAssignments); + builder.append("\n\tlastName="); + builder.append(lastName); + builder.append("\n\tloginRestrictions="); + builder.append(loginRestrictions); + builder.append("\n\tmassMailOptOut="); + builder.append(massMailOptOut); + builder.append("\n\tmiddleName="); + builder.append(middleName); + builder.append("\n\tmobile="); + builder.append(mobile); + builder.append("\n\tname="); + builder.append(name); + builder.append("\n\tnamePrefix="); + builder.append(namePrefix); + builder.append("\n\tnameSuffix="); + builder.append(nameSuffix); + builder.append("\n\tnickName="); + builder.append(nickName); + builder.append("\n\toccupation="); + builder.append(occupation); + builder.append("\n\tpager="); + builder.append(pager); + builder.append("\n\tphone="); + builder.append(phone); + builder.append("\n\tphone2="); + builder.append(phone2); + builder.append("\n\tphone3="); + builder.append(phone3); + builder.append("\n\tprimaryDepartment="); + builder.append(primaryDepartment); + builder.append("\n\tprivateLabel="); + builder.append(privateLabel); + builder.append("\n\treportToPerson="); + builder.append(reportToPerson); + builder.append("\n\tsmsOptIn="); + builder.append(smsOptIn); + builder.append("\n\ttaskAssignments="); + builder.append(taskAssignments); + builder.append("\n\ttimeZoneOffsetEST="); + builder.append(timeZoneOffsetEST); + builder.append("\n\tuserDateAdded="); builder.append(userDateAdded); - builder.append("\n\tusername: "); - builder.append(username); - builder.append("\n\tuserType: "); - builder.append(userType); - builder.append("\n}"); - return builder.toString(); - } + builder.append("\n\tusername="); + builder.append(username); + builder.append("\n\tuserType="); + builder.append(userType); + builder.append("\n}"); + return builder.toString(); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java index 2e375492..029ea8c8 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java @@ -372,24 +372,27 @@ public boolean equals(Object obj) { @Override public String toString() { - return "HousingComplex [id=" + id + ", address=" + address + ", billingContactID=" + billingContactID + ", comments=" + comments - + ", complexManagerID=" + complexManagerID + ", complexOwnerID=" + complexOwnerID + ", contactName=" + contactName + ", dateAdded=" - + dateAdded + ", fax=" + fax + ", isDeleted=" + isDeleted + ", name=" + name + ", owner=" + owner + ", phone=" + phone - + ", whitelistClientCorporations=" + whitelistClientCorporations + ", getCustomTextBlock1()=" + getCustomTextBlock1() - + ", getCustomTextBlock2()=" + getCustomTextBlock2() + ", getCustomTextBlock3()=" + getCustomTextBlock3() - + ", getCustomTextBlock4()=" + getCustomTextBlock4() + ", getCustomTextBlock5()=" + getCustomTextBlock5() + ", toString()=" - + super.toString() + ", getCustomDate1()=" + getCustomDate1() + ", getCustomDate2()=" + getCustomDate2() + ", getCustomDate3()=" - + getCustomDate3() + ", getCustomFloat1()=" + getCustomFloat1() + ", getCustomFloat2()=" + getCustomFloat2() + ", getCustomFloat3()=" - + getCustomFloat3() + ", getCustomInt1()=" + getCustomInt1() + ", getCustomInt2()=" + getCustomInt2() + ", getCustomInt3()=" - + getCustomInt3() + ", getCustomText1()=" + getCustomText1() + ", getCustomText2()=" + getCustomText2() + ", getCustomText3()=" - + getCustomText3() + ", getCustomText4()=" + getCustomText4() + ", getCustomText5()=" + getCustomText5() + ", getCustomText6()=" - + getCustomText6() + ", getCustomText7()=" + getCustomText7() + ", getCustomText8()=" + getCustomText8() + ", getCustomText9()=" - + getCustomText9() + ", getCustomText10()=" + getCustomText10() + ", getCustomText11()=" + getCustomText11() + ", getCustomText12()=" - + getCustomText12() + ", getCustomText13()=" + getCustomText13() + ", getCustomText14()=" + getCustomText14() - + ", getCustomText15()=" + getCustomText15() + ", getCustomText16()=" + getCustomText16() + ", getCustomText17()=" - + getCustomText17() + ", getCustomText18()=" + getCustomText18() + ", getCustomText19()=" + getCustomText19() - + ", getCustomText20()=" + getCustomText20() + ", getAdditionalProperties()=" + getAdditionalProperties() - + ", units=" + units - + ", getClass()=" + getClass() + "]"; + final StringBuilder sb = new StringBuilder(getClass().getName()) + .append(" { "); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", billingContactID=").append(billingContactID); + sb.append(", comments=").append(comments); + sb.append(", complexManagerID=").append(complexManagerID); + sb.append(", complexOwnerID=").append(complexOwnerID); + sb.append(", contactName=").append(contactName); + sb.append(", dateAdded="+ dateAdded); + sb.append(", fax=").append(fax); + sb.append(", isDeleted=").append(isDeleted); + sb.append(", name=").append(name); + sb.append(", owner=").append(owner); + sb.append(", phone=").append(phone); + sb.append(", whitelistClientCorporations=").append(whitelistClientCorporations); + sb.append(", getAdditionalProperties()=").append(getAdditionalProperties()); + sb.append(", units=").append(units); + sb.append(super.toString()); + sb.append("}"); + return sb.toString(); } + } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java index 87e81632..018d7fac 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java @@ -417,6 +417,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(includeLineBreaks) lbc = ",\n "; final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); if(id != null){ sb.append("id=").append(id); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java index 8c5b9eed..50deabb9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java @@ -1153,6 +1153,453 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(assignedTo != null){ + sb.append(lbc + "assignedTo=").append(assignedTo); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(campaignSource != null){ + sb.append(lbc + "campaignSource=").append(campaignSource); + } + if(candidates != null){ + sb.append(lbc + "candidates=").append(candidates.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(conversionSource != null){ + sb.append(lbc + "conversionSource=").append(conversionSource); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisited != null){ + sb.append(lbc + "dateLastVisited=").append(dateLastVisited); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(distributionLists != null){ + sb.append(lbc + "distributionLists=").append(distributionLists.toStringNonNull(includeLineBreaks)); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(history != null){ + sb.append(lbc + "history=").append(history); + } + if(isDayLightSavingsTime != null){ + sb.append(lbc + "isDayLightSavingsTime=").append(isDayLightSavingsTime); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(leadSource != null){ + sb.append(lbc + "leadSource=").append(leadSource); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(ownerCorporation != null){ + sb.append(lbc + "ownerCorporation=").append(ownerCorporation.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); + } + if(priority != null){ + sb.append(lbc + "priority=").append(priority); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); + } + if(role != null){ + sb.append(lbc + "role=").append(role); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(", address=").append(address.toStringNonNull()); + } + if(assignedTo != null){ + sb.append(", assignedTo=").append(assignedTo.toStringNonNull()); + } + if(branch != null){ + sb.append(", branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(", businessSectors=").append(businessSectors.toStringNonNull()); + } + if(campaignSource != null){ + sb.append(", campaignSource=").append(campaignSource); + } + if(candidates != null){ + sb.append(", candidates=").append(candidates.toStringNonNull()); + } + if(category != null){ + sb.append(", category=").append(category.toStringNonNull()); + } + if(categories != null){ + sb.append(", categories=").append(categories.toStringNonNull()); + } + if(clientContacts != null){ + sb.append(", clientContacts=").append(clientContacts.toStringNonNull()); + } + if(clientCorporation != null){ + sb.append(", clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(comments != null){ + sb.append(", comments=").append(comments); + } + if(companyName != null){ + sb.append(", companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(", companyURL=").append(companyURL); + } + if(conversionSource != null){ + sb.append(", conversionSource=").append(conversionSource); + } + if(dateAdded != null){ + sb.append(", dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(", dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(", dateLastModified=").append(dateLastModified); + } + if(dateLastVisited != null){ + sb.append(", dateLastVisited=").append(dateLastVisited); + } + if(description != null){ + sb.append(", description=").append(description); + } + if(distributionLists != null){ + sb.append(", distributionLists=").append(distributionLists); + } + if(division != null){ + sb.append(", division=").append(division); + } + if(educationDegree != null){ + sb.append(", educationDegree=").append(educationDegree); + } + if(email != null){ + sb.append(", email=").append(email); + } + if(email2 != null){ + sb.append(", email2=").append(email2); + } + if(email3 != null){ + sb.append(", email3=").append(email3); + } + if(fax != null){ + sb.append(", fax=").append(fax); + } + if(fax2 != null){ + sb.append(", fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(", fax3=").append(fax3); + } + if(firstName != null){ + sb.append(", firstName=").append(firstName); + } + if(history != null){ + sb.append(", history=").append(history); + } + if(isDayLightSavingsTime != null){ + sb.append(", isDayLightSavingsTime=").append(isDayLightSavingsTime); + } + if(isDeleted != null){ + sb.append(", isDeleted=").append(isDeleted); + } + if(lastName != null){ + sb.append(", lastName=").append(lastName); + } + if(leadSource != null){ + sb.append(", leadSource=").append(leadSource); + } + if(massMailOptOut != null){ + sb.append(", massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(", middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(", migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(", mobile=").append(mobile); + } + if(name != null){ + sb.append(", name=").append(name); + } + if(namePrefix != null){ + sb.append(", namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(", nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(", nickName=").append(nickName); + } + if(notes != null){ + sb.append(", notes=").append(notes.toStringNonNull()); + } + if(numEmployees != null){ + sb.append(", numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(", occupation=").append(occupation); + } + if(owner != null){ + sb.append(", owner=").append(owner.toStringNonNull()); + } + if(ownerCorporation != null){ + sb.append(", ownerCorporation=").append(ownerCorporation.toStringNonNull()); + } + if(pager != null){ + sb.append(", pager=").append(pager); + } + if(phone != null){ + sb.append(", phone=").append(phone); + } + if(phone2 != null){ + sb.append(", phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(", phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(", preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(", primarySkills=").append(primarySkills.toStringNonNull()); + } + if(priority != null){ + sb.append(", priority=").append(priority); + } + if(referredByPerson != null){ + sb.append(", referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(reportToPerson != null){ + sb.append(", reportToPerson=").append(reportToPerson.toStringNonNull()); + } + if(role != null){ + sb.append(", role=").append(role); + } + if(salary != null){ + sb.append(", salary=").append(salary); + } + if(salaryLow != null){ + sb.append(", salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(", secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondarySkills != null){ + sb.append(", secondarySkills=").append(secondarySkills.toStringNonNull()); + } + if(skillSet != null){ + sb.append(", skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(", smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(", source=").append(source); + } + if(specialties != null){ + sb.append(", specialties=").append(specialties.toStringNonNull()); + } + if(status != null){ + sb.append(", status=").append(status); + } + if(tearsheets != null){ + sb.append(", tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(type != null){ + sb.append(", type=").append(type); + } + if(willRelocate != null){ + sb.append(", willRelocate=").append(willRelocate); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { final StringBuilder sb = new StringBuilder("Lead{"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java index 21d67ccc..5065bce0 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java @@ -393,6 +393,8 @@ public String toStringNonNull(boolean includeLineBreaks) { if(includeLineBreaks) lbc = ",\n "; final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); if(id != null){ sb.append(lbc + "id="); sb.append(id); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java index e7df38b2..f553ca06 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java @@ -720,17 +720,310 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass()+" { "); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(address != null){ + builder.append(lbc + "address="); + builder.append(address.toStringNonNull(includeLineBreaks)); + } + if(companyName != null){ + builder.append(lbc + "companyName="); + builder.append(companyName); + } + if(dateLastComment != null){ + builder.append(lbc + "dateLastComment="); + builder.append(dateLastComment); + } + if(email != null){ + builder.append(lbc + "email="); + builder.append(email); + } + if(email2 != null){ + builder.append(lbc + "email2="); + builder.append(email2); + } + if(email3 != null){ + builder.append(lbc + "email3="); + builder.append(email3); + } + if(fax != null){ + builder.append(lbc + "fax="); + builder.append(fax); + } + if(fax2 != null){ + builder.append(lbc + "fax2="); + builder.append(fax2); + } + if(fax3 != null){ + builder.append(lbc + "fax3="); + builder.append(fax3); + } + if(firstName != null){ + builder.append(lbc + "firstName="); + builder.append(firstName); + } + if(isDayLightSavingsTime != null){ + builder.append(lbc + "isDayLightSavingsTime="); + builder.append(isDayLightSavingsTime); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isLockedOut != null){ + builder.append(lbc + "isLockedOut="); + builder.append(isLockedOut); + } + if(lastName != null){ + builder.append(lbc + "lastName="); + builder.append(lastName); + } + if(massMailOptOut != null){ + builder.append(lbc + "massMailOptOut="); + builder.append(massMailOptOut); + } + if(masterUserID != null){ + builder.append(lbc + "masterUserID="); + builder.append(masterUserID); + } + if(middleName != null){ + builder.append(lbc + "middleName="); + builder.append(middleName); + } + if(mobile != null){ + builder.append(lbc + "mobile="); + builder.append(mobile); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(namePrefix != null){ + builder.append(lbc + "namePrefix="); + builder.append(namePrefix); + } + if(nameSuffix != null){ + builder.append(lbc + "nameSuffix="); + builder.append(nameSuffix); + } + if(nickName != null){ + builder.append(lbc + "nickName="); + builder.append(nickName); + } + if(occupation != null){ + builder.append(lbc + "occupation="); + builder.append(occupation); + } + if(pager != null){ + builder.append(lbc + "pager="); + builder.append(pager); + } + if(personSubtype != null){ + builder.append(lbc + "personSubtype="); + builder.append(personSubtype); + } + if(phone != null){ + builder.append(lbc + "phone="); + builder.append(phone); + } + if(phone2 != null){ + builder.append(lbc + "phone2="); + builder.append(phone2); + } + if(phone3 != null){ + builder.append(lbc + "phone3="); + builder.append(phone3); + } + if(smsOptIn != null){ + builder.append(lbc + "smsOptIn="); + builder.append(smsOptIn); + } + if(status != null){ + builder.append(lbc + "status="); + builder.append(status); + } + if(timeZoneOffsetEST != null){ + builder.append(lbc + "timeZoneOffsetEST="); + builder.append(timeZoneOffsetEST); + } + if(username != null){ + builder.append(lbc + "username="); + builder.append(username); + } + if(userType != null){ + builder.append(lbc + "userType="); + builder.append(userType); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass()+" { "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(address != null){ + builder.append(lbc + "address="); + builder.append(address); + } + if(companyName != null){ + builder.append(lbc + "companyName="); + builder.append(companyName); + } + if(dateLastComment != null){ + builder.append(lbc + "dateLastComment="); + builder.append(dateLastComment); + } + if(email != null){ + builder.append(lbc + "email="); + builder.append(email); + } + if(email2 != null){ + builder.append(lbc + "email2="); + builder.append(email2); + } + if(email3 != null){ + builder.append(lbc + "email3="); + builder.append(email3); + } + if(fax != null){ + builder.append(lbc + "fax="); + builder.append(fax); + } + if(fax2 != null){ + builder.append(lbc + "fax2="); + builder.append(fax2); + } + if(fax3 != null){ + builder.append(lbc + "fax3="); + builder.append(fax3); + } + if(firstName != null){ + builder.append(lbc + "firstName="); + builder.append(firstName); + } + if(isDayLightSavingsTime != null){ + builder.append(lbc + "isDayLightSavingsTime="); + builder.append(isDayLightSavingsTime); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isLockedOut != null){ + builder.append(lbc + "isLockedOut="); + builder.append(isLockedOut); + } + if(lastName != null){ + builder.append(lbc + "lastName="); + builder.append(lastName); + } + if(massMailOptOut != null){ + builder.append(lbc + "massMailOptOut="); + builder.append(massMailOptOut); + } + if(masterUserID != null){ + builder.append(lbc + "masterUserID="); + builder.append(masterUserID); + } + if(middleName != null){ + builder.append(lbc + "middleName="); + builder.append(middleName); + } + if(mobile != null){ + builder.append(lbc + "mobile="); + builder.append(mobile); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(namePrefix != null){ + builder.append(lbc + "namePrefix="); + builder.append(namePrefix); + } + if(nameSuffix != null){ + builder.append(lbc + "nameSuffix="); + builder.append(nameSuffix); + } + if(nickName != null){ + builder.append(lbc + "nickName="); + builder.append(nickName); + } + if(occupation != null){ + builder.append(lbc + "occupation="); + builder.append(occupation); + } + if(pager != null){ + builder.append(lbc + "pager="); + builder.append(pager); + } + if(personSubtype != null){ + builder.append(lbc + "personSubtype="); + builder.append(personSubtype); + } + if(phone != null){ + builder.append(lbc + "phone="); + builder.append(phone); + } + if(phone2 != null){ + builder.append(lbc + "phone2="); + builder.append(phone2); + } + if(phone3 != null){ + builder.append(lbc + "phone3="); + builder.append(phone3); + } + if(smsOptIn != null){ + builder.append(lbc + "smsOptIn="); + builder.append(smsOptIn); + } + if(status != null){ + builder.append(lbc + "status="); + builder.append(status); + } + if(timeZoneOffsetEST != null){ + builder.append(lbc + "timeZoneOffsetEST="); + builder.append(timeZoneOffsetEST); + } + if(username != null){ + builder.append(lbc + "username="); + builder.append(username); + } + if(userType != null){ + builder.append(lbc + "userType="); + builder.append(userType); + } + builder.append("}"); + return builder.toString(); + } + @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("Person [id="); + StringBuilder builder = new StringBuilder(getClass()+" { "); + builder.append("id="); builder.append(id); builder.append(", address="); builder.append(address); builder.append(", companyName="); builder.append(companyName); - builder.append(", companyURL="); - builder.append(", dateAdded="); + builder.append(", dateLastComment="); builder.append(dateLastComment); builder.append(", email="); builder.append(email); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java index e5217e71..4946ccae 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java @@ -137,15 +137,15 @@ public boolean equals(Object obj) { public String toString() { StringBuilder builder = new StringBuilder(); builder.append(super.toString()); - builder.append(", \ncustomTextBlock1="); + builder.append(",\n customTextBlock1="); builder.append(customTextBlock1); - builder.append(", \ncustomTextBlock2="); + builder.append(",\n customTextBlock2="); builder.append(customTextBlock2); - builder.append(", \ncustomTextBlock3="); + builder.append(",\n customTextBlock3="); builder.append(customTextBlock3); - builder.append(", \ncustomTextBlock4="); + builder.append(",\n customTextBlock4="); builder.append(customTextBlock4); - builder.append(", \ncustomTextBlock5="); + builder.append(",\n customTextBlock5="); builder.append(customTextBlock5); return builder.toString(); From c60578ffc74870add507ee292b8ace44fa329902 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 13 Jun 2019 13:19:17 -0400 Subject: [PATCH 09/12] a bunch more changes, mostly for nested logging --- .../CustomObjectInstance.java | 2872 +++---- .../entity/core/standard/Appointment.java | 1896 ++--- .../model/entity/core/standard/Branch.java | 2310 +++--- .../entity/core/standard/BusinessSector.java | 336 +- .../model/entity/core/standard/Candidate.java | 6716 ++++++++--------- .../entity/core/standard/ClientContact.java | 3754 ++++----- .../core/standard/ClientCorporation.java | 3604 ++++----- .../entity/core/standard/CorporateUser.java | 6 +- .../entity/core/standard/HousingComplex.java | 2 +- .../model/entity/core/standard/JobData.java | 6 +- .../entity/core/standard/JobSubmission.java | 6 +- .../data/model/entity/core/standard/Lead.java | 6 +- .../data/model/entity/core/standard/Note.java | 6 +- .../entity/core/standard/NoteEntity.java | 6 +- .../model/entity/core/standard/Person.java | 6 +- .../model/entity/core/standard/Placement.java | 2 +- .../core/standard/PlacementChangeRequest.java | 686 ++ .../entity/core/type/AbstractEntity.java | 4 +- .../entity/customfields/CustomFieldsB.java | 308 +- .../data/model/entity/embedded/Address.java | 374 +- .../data/model/entity/embedded/LinkedId.java | 184 +- .../data/model/entity/embedded/OneToMany.java | 254 +- 22 files changed, 12015 insertions(+), 11329 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java index a143673a..9c004fd2 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java @@ -1,1436 +1,1436 @@ - package com.bullhornsdk.data.model.entity.core.customobjectinstances; - - import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; - import com.bullhornsdk.data.model.entity.core.type.CreateEntity; - import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; - import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; - import com.bullhornsdk.data.model.entity.core.type.HardDeleteEntity; - import com.bullhornsdk.data.model.entity.core.type.QueryEntity; - import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; - import com.fasterxml.jackson.annotation.JsonIgnore; - import com.fasterxml.jackson.annotation.JsonProperty; - import org.joda.time.DateTime; - - import java.math.BigDecimal; - -public abstract class CustomObjectInstance extends AbstractEntity implements QueryEntity, DateLastModifiedEntity, UpdateEntity, CreateEntity, HardDeleteEntity, EditHistoryEntity { - - private Integer id; - @JsonIgnore - private String text1; - @JsonIgnore - private String text2; - @JsonIgnore - private String text3; - @JsonIgnore - private String text4; - @JsonIgnore - private String text5; - @JsonIgnore - private String text6; - @JsonIgnore - private String text7; - @JsonIgnore - private String text8; - @JsonIgnore - private String text9; - @JsonIgnore - private String text10; - @JsonIgnore - private String text11; - @JsonIgnore - private String text12; - @JsonIgnore - private String text13; - @JsonIgnore - private String text14; - @JsonIgnore - private String text15; - @JsonIgnore - private String text16; - @JsonIgnore - private String text17; - @JsonIgnore - private String text18; - @JsonIgnore - private String text19; - @JsonIgnore - private String text20; - private Integer int1; - private Integer int2; - private Integer int3; - private Integer int4; - private Integer int5; - private Integer int6; - private Integer int7; - private Integer int8; - private Integer int9; - private Integer int10; - private BigDecimal float1; - private BigDecimal float2; - private BigDecimal float3; - private BigDecimal float4; - private BigDecimal float5; - private BigDecimal float6; - private BigDecimal float7; - private BigDecimal float8; - private BigDecimal float9; - private BigDecimal float10; - private String textBlock1; - private String textBlock2; - private String textBlock3; - private String textBlock4; - private String textBlock5; - private DateTime date1; - private DateTime date2; - private DateTime date3; - private DateTime date4; - private DateTime date5; - private DateTime date6; - private DateTime date7; - private DateTime date8; - private DateTime date9; - private DateTime date10; - private DateTime dateAdded; - private DateTime dateLastModified; - - public CustomObjectInstance() { - super(); - } - - @JsonProperty("id") - public Integer getId() { - return id; - } - - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("text1") - public String getText1() { - return text1; - } - - @JsonIgnore - @JsonProperty("text1") - public void setText1(String text1) { - this.text1 = text1; - } - - @JsonProperty("text2") - public String getText2() { - return text2; - } - - @JsonIgnore - @JsonProperty("text2") - public void setText2(String text2) { - this.text2 = text2; - } - - @JsonProperty("text3") - public String getText3() { - return text3; - } - - @JsonIgnore - @JsonProperty("text3") - public void setText3(String text3) { - this.text3 = text3; - } - - @JsonProperty("text4") - public String getText4() { - return text4; - } - - @JsonIgnore - @JsonProperty("text4") - public void setText4(String text4) { - this.text4 = text4; - } - - @JsonProperty("text5") - public String getText5() { - return text5; - } - - @JsonIgnore - @JsonProperty("text5") - public void setText5(String text5) { - this.text5 = text5; - } - - @JsonProperty("text6") - public String getText6() { - return text6; - } - - @JsonIgnore - @JsonProperty("text6") - public void setText6(String text6) { - this.text6 = text6; - } - - @JsonProperty("text7") - public String getText7() { - return text7; - } - - @JsonIgnore - @JsonProperty("text7") - public void setText7(String text7) { - this.text7 = text7; - } - - @JsonProperty("text8") - public String getText8() { - return text8; - } - - @JsonIgnore - @JsonProperty("text8") - public void setText8(String text8) { - this.text8 = text8; - } - - @JsonProperty("text9") - public String getText9() { - return text9; - } - - @JsonIgnore - @JsonProperty("text9") - public void setText9(String text9) { - this.text9 = text9; - } - - @JsonProperty("text10") - public String getText10() { - return text10; - } - - @JsonIgnore - @JsonProperty("text10") - public void setText10(String text10) { - this.text10 = text10; - } - - @JsonProperty("text11") - public String getText11() { - return text11; - } - - @JsonIgnore - @JsonProperty("text11") - public void setText11(String text11) { - this.text11 = text11; - } - - @JsonProperty("text12") - public String getText12() { - return text12; - } - - @JsonIgnore - @JsonProperty("text12") - public void setText12(String text12) { - this.text12 = text12; - } - - @JsonProperty("text13") - public String getText13() { - return text13; - } - - @JsonIgnore - @JsonProperty("text13") - public void setText13(String text13) { - this.text13 = text13; - } - - @JsonProperty("text14") - public String getText14() { - return text14; - } - - @JsonIgnore - @JsonProperty("text14") - public void setText14(String text14) { - this.text14 = text14; - } - - @JsonProperty("text15") - public String getText15() { - return text15; - } - - @JsonIgnore - @JsonProperty("text15") - public void setText15(String text15) { - this.text15 = text15; - } - - @JsonProperty("text16") - public String getText16() { - return text16; - } - - @JsonIgnore - @JsonProperty("text16") - public void setText16(String text16) { - this.text16 = text16; - } - - @JsonProperty("text17") - public String getText17() { - return text17; - } - - @JsonIgnore - @JsonProperty("text17") - public void setText17(String text17) { - this.text17 = text17; - } - - @JsonProperty("text18") - public String getText18() { - return text18; - } - - @JsonIgnore - @JsonProperty("text18") - public void setText18(String text18) { - this.text18 = text18; - } - - @JsonProperty("text19") - public String getText19() { - return text19; - } - - @JsonIgnore - @JsonProperty("text19") - public void setText19(String text19) { - this.text19 = text19; - } - - @JsonProperty("text20") - public String getText20() { - return text20; - } - - @JsonIgnore - @JsonProperty("text20") - public void setText20(String text20) { - this.text20 = text20; - } - - @JsonProperty("int1") - public Integer getInt1() { - return int1; - } - - @JsonProperty("int1") - public void setInt1(Integer int1) { - this.int1 = int1; - } - - @JsonProperty("int2") - public Integer getInt2() { - return int2; - } - - @JsonProperty("int2") - public void setInt2(Integer int2) { - this.int2 = int2; - } - - @JsonProperty("int3") - public Integer getInt3() { - return int3; - } - - @JsonProperty("int3") - public void setInt3(Integer int3) { - this.int3 = int3; - } - - @JsonProperty("int4") - public Integer getInt4() { - return int4; - } - - @JsonProperty("int4") - public void setInt4(Integer int4) { - this.int4 = int4; - } - - @JsonProperty("int5") - public Integer getInt5() { - return int5; - } - - @JsonProperty("int5") - public void setInt5(Integer int5) { - this.int5 = int5; - } - - @JsonProperty("int6") - public Integer getInt6() { - return int6; - } - - @JsonProperty("int6") - public void setInt6(Integer int6) { - this.int6 = int6; - } - - @JsonProperty("int7") - public Integer getInt7() { - return int7; - } - - @JsonProperty("int7") - public void setInt7(Integer int7) { - this.int7 = int7; - } - - @JsonProperty("int8") - public Integer getInt8() { - return int8; - } - - @JsonProperty("int8") - public void setInt8(Integer int8) { - this.int8 = int8; - } - - @JsonProperty("int9") - public Integer getInt9() { - return int9; - } - - @JsonProperty("int9") - public void setInt9(Integer int9) { - this.int9 = int9; - } - - @JsonProperty("int10") - public Integer getInt10() { - return int10; - } - - @JsonProperty("int10") - public void setInt10(Integer int10) { - this.int10 = int10; - } - - @JsonProperty("float1") - public BigDecimal getFloat1() { - return float1; - } - - @JsonProperty("float1") - public void setFloat1(BigDecimal float1) { - this.float1 = float1; - } - - @JsonProperty("float2") - public BigDecimal getFloat2() { - return float2; - } - - @JsonProperty("float2") - public void setFloat2(BigDecimal float2) { - this.float2 = float2; - } - - @JsonProperty("float3") - public BigDecimal getFloat3() { - return float3; - } - - @JsonProperty("float3") - public void setFloat3(BigDecimal float3) { - this.float3 = float3; - } - - @JsonProperty("float4") - public BigDecimal getFloat4() { - return float4; - } - - @JsonProperty("float4") - public void setFloat4(BigDecimal float4) { - this.float4 = float4; - } - - @JsonProperty("float5") - public BigDecimal getFloat5() { - return float5; - } - - @JsonProperty("float5") - public void setFloat5(BigDecimal float5) { - this.float5 = float5; - } - - @JsonProperty("float6") - public BigDecimal getFloat6() { - return float6; - } - - @JsonProperty("float6") - public void setFloat6(BigDecimal float6) { - this.float6 = float6; - } - - @JsonProperty("float7") - public BigDecimal getFloat7() { - return float7; - } - - @JsonProperty("float7") - public void setFloat7(BigDecimal float7) { - this.float7 = float7; - } - - @JsonProperty("float8") - public BigDecimal getFloat8() { - return float8; - } - - @JsonProperty("float8") - public void setFloat8(BigDecimal float8) { - this.float8 = float8; - } - - @JsonProperty("float9") - public BigDecimal getFloat9() { - return float9; - } - - @JsonProperty("float9") - public void setFloat9(BigDecimal float9) { - this.float9 = float9; - } - - @JsonProperty("float10") - public BigDecimal getFloat10() { - return float10; - } - - @JsonProperty("float10") - public void setFloat10(BigDecimal float10) { - this.float10 = float10; - } - - @JsonProperty("textBlock1") - public String getTextBlock1() { - return textBlock1; - } - - @JsonProperty("textBlock1") - public void setTextBlock1(String textBlock1) { - this.textBlock1 = textBlock1; - } - - @JsonProperty("textBlock2") - public String getTextBlock2() { - return textBlock2; - } - - @JsonProperty("textBlock2") - public void setTextBlock2(String textBlock2) { - this.textBlock2 = textBlock2; - } - - @JsonProperty("textBlock3") - public String getTextBlock3() { - return textBlock3; - } - - @JsonProperty("textBlock3") - public void setTextBlock3(String textBlock3) { - this.textBlock3 = textBlock3; - } - - @JsonProperty("textBlock4") - public String getTextBlock4() { - return textBlock4; - } - - @JsonProperty("textBlock4") - public void setTextBlock4(String textBlock4) { - this.textBlock4 = textBlock4; - } - - @JsonProperty("textBlock5") - public String getTextBlock5() { - return textBlock5; - } - - @JsonProperty("textBlock5") - public void setTextBlock5(String textBlock5) { - this.textBlock5 = textBlock5; - } - - @JsonProperty("date1") - public DateTime getDate1() { - return date1; - } - - @JsonProperty("date1") - public void setDate1(DateTime date1) { - this.date1 = date1; - } - - @JsonProperty("date2") - public DateTime getDate2() { - return date2; - } - - @JsonProperty("date2") - public void setDate2(DateTime date2) { - this.date2 = date2; - } - - @JsonProperty("date3") - public DateTime getDate3() { - return date3; - } - - @JsonProperty("date3") - public void setDate3(DateTime date3) { - this.date3 = date3; - } - - @JsonProperty("date4") - public DateTime getDate4() { - return date4; - } - - @JsonProperty("date4") - public void setDate4(DateTime date4) { - this.date4 = date4; - } - - @JsonProperty("date5") - public DateTime getDate5() { - return date5; - } - - @JsonProperty("date5") - public void setDate5(DateTime date5) { - this.date5 = date5; - } - - @JsonProperty("date6") - public DateTime getDate6() { - return date6; - } - - @JsonProperty("date6") - public void setDate6(DateTime date6) { - this.date6 = date6; - } - - @JsonProperty("date7") - public DateTime getDate7() { - return date7; - } - - @JsonProperty("date7") - public void setDate7(DateTime date7) { - this.date7 = date7; - } - - @JsonProperty("date8") - public DateTime getDate8() { - return date8; - } - - @JsonProperty("date8") - public void setDate8(DateTime date8) { - this.date8 = date8; - } - - @JsonProperty("date9") - public DateTime getDate9() { - return date9; - } - - @JsonProperty("date9") - public void setDate9(DateTime date9) { - this.date9 = date9; - } - - @JsonProperty("date10") - public DateTime getDate10() { - return date10; - } - - @JsonProperty("date10") - public void setDate10(DateTime date10) { - this.date10 = date10; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - CustomObjectInstance that = (CustomObjectInstance) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (text1 != null ? !text1.equals(that.text1) : that.text1 != null) return false; - if (text2 != null ? !text2.equals(that.text2) : that.text2 != null) return false; - if (text3 != null ? !text3.equals(that.text3) : that.text3 != null) return false; - if (text4 != null ? !text4.equals(that.text4) : that.text4 != null) return false; - if (text5 != null ? !text5.equals(that.text5) : that.text5 != null) return false; - if (text6 != null ? !text6.equals(that.text6) : that.text6 != null) return false; - if (text7 != null ? !text7.equals(that.text7) : that.text7 != null) return false; - if (text8 != null ? !text8.equals(that.text8) : that.text8 != null) return false; - if (text9 != null ? !text9.equals(that.text9) : that.text9 != null) return false; - if (text10 != null ? !text10.equals(that.text10) : that.text10 != null) return false; - if (text11 != null ? !text11.equals(that.text11) : that.text11 != null) return false; - if (text12 != null ? !text12.equals(that.text12) : that.text12 != null) return false; - if (text13 != null ? !text13.equals(that.text13) : that.text13 != null) return false; - if (text14 != null ? !text14.equals(that.text14) : that.text14 != null) return false; - if (text15 != null ? !text15.equals(that.text15) : that.text15 != null) return false; - if (text16 != null ? !text16.equals(that.text16) : that.text16 != null) return false; - if (text17 != null ? !text17.equals(that.text17) : that.text17 != null) return false; - if (text18 != null ? !text18.equals(that.text18) : that.text18 != null) return false; - if (text19 != null ? !text19.equals(that.text19) : that.text19 != null) return false; - if (text20 != null ? !text20.equals(that.text20) : that.text20 != null) return false; - if (int1 != null ? !int1.equals(that.int1) : that.int1 != null) return false; - if (int2 != null ? !int2.equals(that.int2) : that.int2 != null) return false; - if (int3 != null ? !int3.equals(that.int3) : that.int3 != null) return false; - if (int4 != null ? !int4.equals(that.int4) : that.int4 != null) return false; - if (int5 != null ? !int5.equals(that.int5) : that.int5 != null) return false; - if (int6 != null ? !int6.equals(that.int6) : that.int6 != null) return false; - if (int7 != null ? !int7.equals(that.int7) : that.int7 != null) return false; - if (int8 != null ? !int8.equals(that.int8) : that.int8 != null) return false; - if (int9 != null ? !int9.equals(that.int9) : that.int9 != null) return false; - if (int10 != null ? !int10.equals(that.int10) : that.int10 != null) return false; - if (float1 != null ? !float1.equals(that.float1) : that.float1 != null) return false; - if (float2 != null ? !float2.equals(that.float2) : that.float2 != null) return false; - if (float3 != null ? !float3.equals(that.float3) : that.float3 != null) return false; - if (float4 != null ? !float4.equals(that.float4) : that.float4 != null) return false; - if (float5 != null ? !float5.equals(that.float5) : that.float5 != null) return false; - if (float6 != null ? !float6.equals(that.float6) : that.float6 != null) return false; - if (float7 != null ? !float7.equals(that.float7) : that.float7 != null) return false; - if (float8 != null ? !float8.equals(that.float8) : that.float8 != null) return false; - if (float9 != null ? !float9.equals(that.float9) : that.float9 != null) return false; - if (float10 != null ? !float10.equals(that.float10) : that.float10 != null) return false; - if (textBlock1 != null ? !textBlock1.equals(that.textBlock1) : that.textBlock1 != null) return false; - if (textBlock2 != null ? !textBlock2.equals(that.textBlock2) : that.textBlock2 != null) return false; - if (textBlock3 != null ? !textBlock3.equals(that.textBlock3) : that.textBlock3 != null) return false; - if (textBlock4 != null ? !textBlock4.equals(that.textBlock4) : that.textBlock4 != null) return false; - if (textBlock5 != null ? !textBlock5.equals(that.textBlock5) : that.textBlock5 != null) return false; - if (date1 != null ? !date1.equals(that.date1) : that.date1 != null) return false; - if (date2 != null ? !date2.equals(that.date2) : that.date2 != null) return false; - if (date3 != null ? !date3.equals(that.date3) : that.date3 != null) return false; - if (date4 != null ? !date4.equals(that.date4) : that.date4 != null) return false; - if (date5 != null ? !date5.equals(that.date5) : that.date5 != null) return false; - if (date6 != null ? !date6.equals(that.date6) : that.date6 != null) return false; - if (date7 != null ? !date7.equals(that.date7) : that.date7 != null) return false; - if (date8 != null ? !date8.equals(that.date8) : that.date8 != null) return false; - if (date9 != null ? !date9.equals(that.date9) : that.date9 != null) return false; - if (date10 != null ? !date10.equals(that.date10) : that.date10 != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - return !(dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null); - - } - - @Override - public int hashCode() { - int result = id != null ? id.hashCode() : 0; - result = 31 * result + (text1 != null ? text1.hashCode() : 0); - result = 31 * result + (text2 != null ? text2.hashCode() : 0); - result = 31 * result + (text3 != null ? text3.hashCode() : 0); - result = 31 * result + (text4 != null ? text4.hashCode() : 0); - result = 31 * result + (text5 != null ? text5.hashCode() : 0); - result = 31 * result + (text6 != null ? text6.hashCode() : 0); - result = 31 * result + (text7 != null ? text7.hashCode() : 0); - result = 31 * result + (text8 != null ? text8.hashCode() : 0); - result = 31 * result + (text9 != null ? text9.hashCode() : 0); - result = 31 * result + (text10 != null ? text10.hashCode() : 0); - result = 31 * result + (text11 != null ? text11.hashCode() : 0); - result = 31 * result + (text12 != null ? text12.hashCode() : 0); - result = 31 * result + (text13 != null ? text13.hashCode() : 0); - result = 31 * result + (text14 != null ? text14.hashCode() : 0); - result = 31 * result + (text15 != null ? text15.hashCode() : 0); - result = 31 * result + (text16 != null ? text16.hashCode() : 0); - result = 31 * result + (text17 != null ? text17.hashCode() : 0); - result = 31 * result + (text18 != null ? text18.hashCode() : 0); - result = 31 * result + (text19 != null ? text19.hashCode() : 0); - result = 31 * result + (text20 != null ? text20.hashCode() : 0); - result = 31 * result + (int1 != null ? int1.hashCode() : 0); - result = 31 * result + (int2 != null ? int2.hashCode() : 0); - result = 31 * result + (int3 != null ? int3.hashCode() : 0); - result = 31 * result + (int4 != null ? int4.hashCode() : 0); - result = 31 * result + (int5 != null ? int5.hashCode() : 0); - result = 31 * result + (int6 != null ? int6.hashCode() : 0); - result = 31 * result + (int7 != null ? int7.hashCode() : 0); - result = 31 * result + (int8 != null ? int8.hashCode() : 0); - result = 31 * result + (int9 != null ? int9.hashCode() : 0); - result = 31 * result + (int10 != null ? int10.hashCode() : 0); - result = 31 * result + (float1 != null ? float1.hashCode() : 0); - result = 31 * result + (float2 != null ? float2.hashCode() : 0); - result = 31 * result + (float3 != null ? float3.hashCode() : 0); - result = 31 * result + (float4 != null ? float4.hashCode() : 0); - result = 31 * result + (float5 != null ? float5.hashCode() : 0); - result = 31 * result + (float6 != null ? float6.hashCode() : 0); - result = 31 * result + (float7 != null ? float7.hashCode() : 0); - result = 31 * result + (float8 != null ? float8.hashCode() : 0); - result = 31 * result + (float9 != null ? float9.hashCode() : 0); - result = 31 * result + (float10 != null ? float10.hashCode() : 0); - result = 31 * result + (textBlock1 != null ? textBlock1.hashCode() : 0); - result = 31 * result + (textBlock2 != null ? textBlock2.hashCode() : 0); - result = 31 * result + (textBlock3 != null ? textBlock3.hashCode() : 0); - result = 31 * result + (textBlock4 != null ? textBlock4.hashCode() : 0); - result = 31 * result + (textBlock5 != null ? textBlock5.hashCode() : 0); - result = 31 * result + (date1 != null ? date1.hashCode() : 0); - result = 31 * result + (date2 != null ? date2.hashCode() : 0); - result = 31 * result + (date3 != null ? date3.hashCode() : 0); - result = 31 * result + (date4 != null ? date4.hashCode() : 0); - result = 31 * result + (date5 != null ? date5.hashCode() : 0); - result = 31 * result + (date6 != null ? date6.hashCode() : 0); - result = 31 * result + (date7 != null ? date7.hashCode() : 0); - result = 31 * result + (date8 != null ? date8.hashCode() : 0); - result = 31 * result + (date9 != null ? date9.hashCode() : 0); - result = 31 * result + (date10 != null ? date10.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id="); - sb.append(id); - } - if(text1 != null){ - sb.append(lbc + "text1="); - sb.append(text1); - } - if(text2 != null){ - sb.append(lbc + "text2="); - sb.append(text2); - } - if(text3 != null){ - sb.append(lbc + "text3="); - sb.append(text3); - } - if(text4 != null){ - sb.append(lbc + "text4="); - sb.append(text4); - } - if(text5 != null){ - sb.append(lbc + "text5="); - sb.append(text5); - } - if(text6 != null){ - sb.append(lbc + "text6="); - sb.append(text6); - } - if(text7 != null){ - sb.append(lbc + "text7="); - sb.append(text7); - } - if(text8 != null){ - sb.append(lbc + "text8="); - sb.append(text8); - } - if(text9 != null){ - sb.append(lbc + "text9="); - sb.append(text9); - } - if(text10 != null){ - sb.append(lbc + "text10="); - sb.append(text10); - } - if(text11 != null){ - sb.append(lbc + "text11="); - sb.append(text11); - } - if(text12 != null){ - sb.append(lbc + "text12="); - sb.append(text12); - } - if(text13 != null){ - sb.append(lbc + "text13="); - sb.append(text13); - } - if(text14 != null){ - sb.append(lbc + "text14="); - sb.append(text14); - } - if(text15 != null){ - sb.append(lbc + "text15="); - sb.append(text15); - } - if(text16 != null){ - sb.append(lbc + "text16="); - sb.append(text16); - } - if(text17 != null){ - sb.append(lbc + "text17="); - sb.append(text17); - } - if(text18 != null){ - sb.append(lbc + "text18="); - sb.append(text18); - } - if(text19 != null){ - sb.append(lbc + "text19="); - sb.append(text19); - } - if(text20 != null){ - sb.append(lbc + "text20="); - sb.append(text20); - } - if(int1 != null){ - sb.append(lbc + "int1="); - sb.append(int1); - } - if(int2 != null){ - sb.append(lbc + "int2="); - sb.append(int2); - } - if(int3 != null){ - sb.append(lbc + "int3="); - sb.append(int3); - } - if(int4 != null){ - sb.append(lbc + "int4="); - sb.append(int4); - } - if(int5 != null){ - sb.append(lbc + "int5="); - sb.append(int5); - } - if(int6 != null){ - sb.append(lbc + "int6="); - sb.append(int6); - } - if(int7 != null){ - sb.append(lbc + "int7="); - sb.append(int7); - } - if(int8 != null){ - sb.append(lbc + "int8="); - sb.append(int8); - } - if(int9 != null){ - sb.append(lbc + "int9="); - sb.append(int9); - } - if(int10 != null){ - sb.append(lbc + "int10="); - sb.append(int10); - } - if(float1 != null){ - sb.append(lbc + "float1="); - sb.append(float1); - } - if(float2 != null){ - sb.append(lbc + "float2="); - sb.append(float2); - } - if(float3 != null){ - sb.append(lbc + "float3="); - sb.append(float3); - } - if(float4 != null){ - sb.append(lbc + "float4="); - sb.append(float4); - } - if(float5 != null){ - sb.append(lbc + "float5="); - sb.append(float5); - } - if(float6 != null){ - sb.append(lbc + "float6="); - sb.append(float6); - } - if(float7 != null){ - sb.append(lbc + "float7="); - sb.append(float7); - } - if(float8 != null){ - sb.append(lbc + "float8="); - sb.append(float8); - } - if(float9 != null){ - sb.append(lbc + "float9="); - sb.append(float9); - } - if(float10 != null){ - sb.append(lbc + "float10="); - sb.append(float10); - } - if(textBlock1 != null){ - sb.append(lbc + "textBlock1="); - sb.append(textBlock1); - } - if(textBlock2 != null){ - sb.append(lbc + "textBlock2="); - sb.append(textBlock2); - } - if(textBlock3 != null){ - sb.append(lbc + "textBlock3="); - sb.append(textBlock3); - } - if(textBlock4 != null){ - sb.append(lbc + "textBlock4="); - sb.append(textBlock4); - } - if(textBlock5 != null){ - sb.append(lbc + "textBlock5="); - sb.append(textBlock5); - } - if(date1 != null){ - sb.append(lbc + "date1="); - sb.append(date1); - } - if(date2 != null){ - sb.append(lbc + "date2="); - sb.append(date2); - } - if(date3 != null){ - sb.append(lbc + "date3="); - sb.append(date3); - } - if(date4 != null){ - sb.append(lbc + "date4="); - sb.append(date4); - } - if(date5 != null){ - sb.append(lbc + "date5="); - sb.append(date5); - } - if(date6 != null){ - sb.append(lbc + "date6="); - sb.append(date6); - } - if(date7 != null){ - sb.append(lbc + "date7="); - sb.append(date7); - } - if(date8 != null){ - sb.append(lbc + "date8="); - sb.append(date8); - } - if(date9 != null){ - sb.append(lbc + "date9="); - sb.append(date9); - } - if(date10 != null){ - sb.append(lbc + "date10="); - sb.append(date10); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded="); - sb.append(dateAdded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified="); - sb.append(dateLastModified); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id="); - sb.append(id); - } - if(text1 != null){ - sb.append(lbc + "text1="); - sb.append(text1); - } - if(text2 != null){ - sb.append(lbc + "text2="); - sb.append(text2); - } - if(text3 != null){ - sb.append(lbc + "text3="); - sb.append(text3); - } - if(text4 != null){ - sb.append(lbc + "text4="); - sb.append(text4); - } - if(text5 != null){ - sb.append(lbc + "text5="); - sb.append(text5); - } - if(text6 != null){ - sb.append(lbc + "text6="); - sb.append(text6); - } - if(text7 != null){ - sb.append(lbc + "text7="); - sb.append(text7); - } - if(text8 != null){ - sb.append(lbc + "text8="); - sb.append(text8); - } - if(text9 != null){ - sb.append(lbc + "text9="); - sb.append(text9); - } - if(text10 != null){ - sb.append(lbc + "text10="); - sb.append(text10); - } - if(text11 != null){ - sb.append(lbc + "text11="); - sb.append(text11); - } - if(text12 != null){ - sb.append(lbc + "text12="); - sb.append(text12); - } - if(text13 != null){ - sb.append(lbc + "text13="); - sb.append(text13); - } - if(text14 != null){ - sb.append(lbc + "text14="); - sb.append(text14); - } - if(text15 != null){ - sb.append(lbc + "text15="); - sb.append(text15); - } - if(text16 != null){ - sb.append(lbc + "text16="); - sb.append(text16); - } - if(text17 != null){ - sb.append(lbc + "text17="); - sb.append(text17); - } - if(text18 != null){ - sb.append(lbc + "text18="); - sb.append(text18); - } - if(text19 != null){ - sb.append(lbc + "text19="); - sb.append(text19); - } - if(text20 != null){ - sb.append(lbc + "text20="); - sb.append(text20); - } - if(int1 != null){ - sb.append(lbc + "int1="); - sb.append(int1); - } - if(int2 != null){ - sb.append(lbc + "int2="); - sb.append(int2); - } - if(int3 != null){ - sb.append(lbc + "int3="); - sb.append(int3); - } - if(int4 != null){ - sb.append(lbc + "int4="); - sb.append(int4); - } - if(int5 != null){ - sb.append(lbc + "int5="); - sb.append(int5); - } - if(int6 != null){ - sb.append(lbc + "int6="); - sb.append(int6); - } - if(int7 != null){ - sb.append(lbc + "int7="); - sb.append(int7); - } - if(int8 != null){ - sb.append(lbc + "int8="); - sb.append(int8); - } - if(int9 != null){ - sb.append(lbc + "int9="); - sb.append(int9); - } - if(int10 != null){ - sb.append(lbc + "int10="); - sb.append(int10); - } - if(float1 != null){ - sb.append(lbc + "float1="); - sb.append(float1); - } - if(float2 != null){ - sb.append(lbc + "float2="); - sb.append(float2); - } - if(float3 != null){ - sb.append(lbc + "float3="); - sb.append(float3); - } - if(float4 != null){ - sb.append(lbc + "float4="); - sb.append(float4); - } - if(float5 != null){ - sb.append(lbc + "float5="); - sb.append(float5); - } - if(float6 != null){ - sb.append(lbc + "float6="); - sb.append(float6); - } - if(float7 != null){ - sb.append(lbc + "float7="); - sb.append(float7); - } - if(float8 != null){ - sb.append(lbc + "float8="); - sb.append(float8); - } - if(float9 != null){ - sb.append(lbc + "float9="); - sb.append(float9); - } - if(float10 != null){ - sb.append(lbc + "float10="); - sb.append(float10); - } - if(textBlock1 != null){ - sb.append(lbc + "textBlock1="); - sb.append(textBlock1); - } - if(textBlock2 != null){ - sb.append(lbc + "textBlock2="); - sb.append(textBlock2); - } - if(textBlock3 != null){ - sb.append(lbc + "textBlock3="); - sb.append(textBlock3); - } - if(textBlock4 != null){ - sb.append(lbc + "textBlock4="); - sb.append(textBlock4); - } - if(textBlock5 != null){ - sb.append(lbc + "textBlock5="); - sb.append(textBlock5); - } - if(date1 != null){ - sb.append(lbc + "date1="); - sb.append(date1); - } - if(date2 != null){ - sb.append(lbc + "date2="); - sb.append(date2); - } - if(date3 != null){ - sb.append(lbc + "date3="); - sb.append(date3); - } - if(date4 != null){ - sb.append(lbc + "date4="); - sb.append(date4); - } - if(date5 != null){ - sb.append(lbc + "date5="); - sb.append(date5); - } - if(date6 != null){ - sb.append(lbc + "date6="); - sb.append(date6); - } - if(date7 != null){ - sb.append(lbc + "date7="); - sb.append(date7); - } - if(date8 != null){ - sb.append(lbc + "date8="); - sb.append(date8); - } - if(date9 != null){ - sb.append(lbc + "date9="); - sb.append(date9); - } - if(date10 != null){ - sb.append(lbc + "date10="); - sb.append(date10); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded="); - sb.append(dateAdded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified="); - sb.append(dateLastModified); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id="); - sb.append(id); - sb.append(", text1="); - sb.append(text1); - sb.append(", text2="); - sb.append(text2); - sb.append(", text3="); - sb.append(text3); - sb.append(", text4="); - sb.append(text4); - sb.append(", text5="); - sb.append(text5); - sb.append(", text6="); - sb.append(text6); - sb.append(", text7="); - sb.append(text7); - sb.append(", text8="); - sb.append(text8); - sb.append(", text9="); - sb.append(text9); - sb.append(", text10="); - sb.append(text10); - sb.append(", text11="); - sb.append(text11); - sb.append(", text12="); - sb.append(text12); - sb.append(", text13="); - sb.append(text13); - sb.append(", text14="); - sb.append(text14); - sb.append(", text15="); - sb.append(text15); - sb.append(", text16="); - sb.append(text16); - sb.append(", text17="); - sb.append(text17); - sb.append(", text18="); - sb.append(text18); - sb.append(", text19="); - sb.append(text19); - sb.append(", text20="); - sb.append(text20); - sb.append(", int1="); - sb.append(int1); - sb.append(", int2="); - sb.append(int2); - sb.append(", int3="); - sb.append(int3); - sb.append(", int4="); - sb.append(int4); - sb.append(", int5="); - sb.append(int5); - sb.append(", int6="); - sb.append(int6); - sb.append(", int7="); - sb.append(int7); - sb.append(", int8="); - sb.append(int8); - sb.append(", int9="); - sb.append(int9); - sb.append(", int10="); - sb.append(int10); - sb.append(", float1="); - sb.append(float1); - sb.append(", float2="); - sb.append(float2); - sb.append(", float3="); - sb.append(float3); - sb.append(", float4="); - sb.append(float4); - sb.append(", float5="); - sb.append(float5); - sb.append(", float6="); - sb.append(float6); - sb.append(", float7="); - sb.append(float7); - sb.append(", float8="); - sb.append(float8); - sb.append(", float9="); - sb.append(float9); - sb.append(", float10="); - sb.append(float10); - sb.append(", textBlock1="); - sb.append(textBlock1); - sb.append(", textBlock2="); - sb.append(textBlock2); - sb.append(", textBlock3="); - sb.append(textBlock3); - sb.append(", textBlock4="); - sb.append(textBlock4); - sb.append(", textBlock5="); - sb.append(textBlock5); - sb.append(", date1="); - sb.append(date1); - sb.append(", date2="); - sb.append(date2); - sb.append(", date3="); - sb.append(date3); - sb.append(", date4="); - sb.append(date4); - sb.append(", date5="); - sb.append(date5); - sb.append(", date6="); - sb.append(date6); - sb.append(", date7="); - sb.append(date7); - sb.append(", date8="); - sb.append(date8); - sb.append(", date9="); - sb.append(date9); - sb.append(", date10="); - sb.append(date10); - sb.append(", dateAdded="); - sb.append(dateAdded); - sb.append(", dateLastModified="); - sb.append(dateLastModified); - sb.append("}"); - return sb.toString(); - } -} + package com.bullhornsdk.data.model.entity.core.customobjectinstances; + + import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; + import com.bullhornsdk.data.model.entity.core.type.CreateEntity; + import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; + import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; + import com.bullhornsdk.data.model.entity.core.type.HardDeleteEntity; + import com.bullhornsdk.data.model.entity.core.type.QueryEntity; + import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; + import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonProperty; + import org.joda.time.DateTime; + + import java.math.BigDecimal; + +public abstract class CustomObjectInstance extends AbstractEntity implements QueryEntity, DateLastModifiedEntity, UpdateEntity, CreateEntity, HardDeleteEntity, EditHistoryEntity { + + private Integer id; + @JsonIgnore + private String text1; + @JsonIgnore + private String text2; + @JsonIgnore + private String text3; + @JsonIgnore + private String text4; + @JsonIgnore + private String text5; + @JsonIgnore + private String text6; + @JsonIgnore + private String text7; + @JsonIgnore + private String text8; + @JsonIgnore + private String text9; + @JsonIgnore + private String text10; + @JsonIgnore + private String text11; + @JsonIgnore + private String text12; + @JsonIgnore + private String text13; + @JsonIgnore + private String text14; + @JsonIgnore + private String text15; + @JsonIgnore + private String text16; + @JsonIgnore + private String text17; + @JsonIgnore + private String text18; + @JsonIgnore + private String text19; + @JsonIgnore + private String text20; + private Integer int1; + private Integer int2; + private Integer int3; + private Integer int4; + private Integer int5; + private Integer int6; + private Integer int7; + private Integer int8; + private Integer int9; + private Integer int10; + private BigDecimal float1; + private BigDecimal float2; + private BigDecimal float3; + private BigDecimal float4; + private BigDecimal float5; + private BigDecimal float6; + private BigDecimal float7; + private BigDecimal float8; + private BigDecimal float9; + private BigDecimal float10; + private String textBlock1; + private String textBlock2; + private String textBlock3; + private String textBlock4; + private String textBlock5; + private DateTime date1; + private DateTime date2; + private DateTime date3; + private DateTime date4; + private DateTime date5; + private DateTime date6; + private DateTime date7; + private DateTime date8; + private DateTime date9; + private DateTime date10; + private DateTime dateAdded; + private DateTime dateLastModified; + + public CustomObjectInstance() { + super(); + } + + @JsonProperty("id") + public Integer getId() { + return id; + } + + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("text1") + public String getText1() { + return text1; + } + + @JsonIgnore + @JsonProperty("text1") + public void setText1(String text1) { + this.text1 = text1; + } + + @JsonProperty("text2") + public String getText2() { + return text2; + } + + @JsonIgnore + @JsonProperty("text2") + public void setText2(String text2) { + this.text2 = text2; + } + + @JsonProperty("text3") + public String getText3() { + return text3; + } + + @JsonIgnore + @JsonProperty("text3") + public void setText3(String text3) { + this.text3 = text3; + } + + @JsonProperty("text4") + public String getText4() { + return text4; + } + + @JsonIgnore + @JsonProperty("text4") + public void setText4(String text4) { + this.text4 = text4; + } + + @JsonProperty("text5") + public String getText5() { + return text5; + } + + @JsonIgnore + @JsonProperty("text5") + public void setText5(String text5) { + this.text5 = text5; + } + + @JsonProperty("text6") + public String getText6() { + return text6; + } + + @JsonIgnore + @JsonProperty("text6") + public void setText6(String text6) { + this.text6 = text6; + } + + @JsonProperty("text7") + public String getText7() { + return text7; + } + + @JsonIgnore + @JsonProperty("text7") + public void setText7(String text7) { + this.text7 = text7; + } + + @JsonProperty("text8") + public String getText8() { + return text8; + } + + @JsonIgnore + @JsonProperty("text8") + public void setText8(String text8) { + this.text8 = text8; + } + + @JsonProperty("text9") + public String getText9() { + return text9; + } + + @JsonIgnore + @JsonProperty("text9") + public void setText9(String text9) { + this.text9 = text9; + } + + @JsonProperty("text10") + public String getText10() { + return text10; + } + + @JsonIgnore + @JsonProperty("text10") + public void setText10(String text10) { + this.text10 = text10; + } + + @JsonProperty("text11") + public String getText11() { + return text11; + } + + @JsonIgnore + @JsonProperty("text11") + public void setText11(String text11) { + this.text11 = text11; + } + + @JsonProperty("text12") + public String getText12() { + return text12; + } + + @JsonIgnore + @JsonProperty("text12") + public void setText12(String text12) { + this.text12 = text12; + } + + @JsonProperty("text13") + public String getText13() { + return text13; + } + + @JsonIgnore + @JsonProperty("text13") + public void setText13(String text13) { + this.text13 = text13; + } + + @JsonProperty("text14") + public String getText14() { + return text14; + } + + @JsonIgnore + @JsonProperty("text14") + public void setText14(String text14) { + this.text14 = text14; + } + + @JsonProperty("text15") + public String getText15() { + return text15; + } + + @JsonIgnore + @JsonProperty("text15") + public void setText15(String text15) { + this.text15 = text15; + } + + @JsonProperty("text16") + public String getText16() { + return text16; + } + + @JsonIgnore + @JsonProperty("text16") + public void setText16(String text16) { + this.text16 = text16; + } + + @JsonProperty("text17") + public String getText17() { + return text17; + } + + @JsonIgnore + @JsonProperty("text17") + public void setText17(String text17) { + this.text17 = text17; + } + + @JsonProperty("text18") + public String getText18() { + return text18; + } + + @JsonIgnore + @JsonProperty("text18") + public void setText18(String text18) { + this.text18 = text18; + } + + @JsonProperty("text19") + public String getText19() { + return text19; + } + + @JsonIgnore + @JsonProperty("text19") + public void setText19(String text19) { + this.text19 = text19; + } + + @JsonProperty("text20") + public String getText20() { + return text20; + } + + @JsonIgnore + @JsonProperty("text20") + public void setText20(String text20) { + this.text20 = text20; + } + + @JsonProperty("int1") + public Integer getInt1() { + return int1; + } + + @JsonProperty("int1") + public void setInt1(Integer int1) { + this.int1 = int1; + } + + @JsonProperty("int2") + public Integer getInt2() { + return int2; + } + + @JsonProperty("int2") + public void setInt2(Integer int2) { + this.int2 = int2; + } + + @JsonProperty("int3") + public Integer getInt3() { + return int3; + } + + @JsonProperty("int3") + public void setInt3(Integer int3) { + this.int3 = int3; + } + + @JsonProperty("int4") + public Integer getInt4() { + return int4; + } + + @JsonProperty("int4") + public void setInt4(Integer int4) { + this.int4 = int4; + } + + @JsonProperty("int5") + public Integer getInt5() { + return int5; + } + + @JsonProperty("int5") + public void setInt5(Integer int5) { + this.int5 = int5; + } + + @JsonProperty("int6") + public Integer getInt6() { + return int6; + } + + @JsonProperty("int6") + public void setInt6(Integer int6) { + this.int6 = int6; + } + + @JsonProperty("int7") + public Integer getInt7() { + return int7; + } + + @JsonProperty("int7") + public void setInt7(Integer int7) { + this.int7 = int7; + } + + @JsonProperty("int8") + public Integer getInt8() { + return int8; + } + + @JsonProperty("int8") + public void setInt8(Integer int8) { + this.int8 = int8; + } + + @JsonProperty("int9") + public Integer getInt9() { + return int9; + } + + @JsonProperty("int9") + public void setInt9(Integer int9) { + this.int9 = int9; + } + + @JsonProperty("int10") + public Integer getInt10() { + return int10; + } + + @JsonProperty("int10") + public void setInt10(Integer int10) { + this.int10 = int10; + } + + @JsonProperty("float1") + public BigDecimal getFloat1() { + return float1; + } + + @JsonProperty("float1") + public void setFloat1(BigDecimal float1) { + this.float1 = float1; + } + + @JsonProperty("float2") + public BigDecimal getFloat2() { + return float2; + } + + @JsonProperty("float2") + public void setFloat2(BigDecimal float2) { + this.float2 = float2; + } + + @JsonProperty("float3") + public BigDecimal getFloat3() { + return float3; + } + + @JsonProperty("float3") + public void setFloat3(BigDecimal float3) { + this.float3 = float3; + } + + @JsonProperty("float4") + public BigDecimal getFloat4() { + return float4; + } + + @JsonProperty("float4") + public void setFloat4(BigDecimal float4) { + this.float4 = float4; + } + + @JsonProperty("float5") + public BigDecimal getFloat5() { + return float5; + } + + @JsonProperty("float5") + public void setFloat5(BigDecimal float5) { + this.float5 = float5; + } + + @JsonProperty("float6") + public BigDecimal getFloat6() { + return float6; + } + + @JsonProperty("float6") + public void setFloat6(BigDecimal float6) { + this.float6 = float6; + } + + @JsonProperty("float7") + public BigDecimal getFloat7() { + return float7; + } + + @JsonProperty("float7") + public void setFloat7(BigDecimal float7) { + this.float7 = float7; + } + + @JsonProperty("float8") + public BigDecimal getFloat8() { + return float8; + } + + @JsonProperty("float8") + public void setFloat8(BigDecimal float8) { + this.float8 = float8; + } + + @JsonProperty("float9") + public BigDecimal getFloat9() { + return float9; + } + + @JsonProperty("float9") + public void setFloat9(BigDecimal float9) { + this.float9 = float9; + } + + @JsonProperty("float10") + public BigDecimal getFloat10() { + return float10; + } + + @JsonProperty("float10") + public void setFloat10(BigDecimal float10) { + this.float10 = float10; + } + + @JsonProperty("textBlock1") + public String getTextBlock1() { + return textBlock1; + } + + @JsonProperty("textBlock1") + public void setTextBlock1(String textBlock1) { + this.textBlock1 = textBlock1; + } + + @JsonProperty("textBlock2") + public String getTextBlock2() { + return textBlock2; + } + + @JsonProperty("textBlock2") + public void setTextBlock2(String textBlock2) { + this.textBlock2 = textBlock2; + } + + @JsonProperty("textBlock3") + public String getTextBlock3() { + return textBlock3; + } + + @JsonProperty("textBlock3") + public void setTextBlock3(String textBlock3) { + this.textBlock3 = textBlock3; + } + + @JsonProperty("textBlock4") + public String getTextBlock4() { + return textBlock4; + } + + @JsonProperty("textBlock4") + public void setTextBlock4(String textBlock4) { + this.textBlock4 = textBlock4; + } + + @JsonProperty("textBlock5") + public String getTextBlock5() { + return textBlock5; + } + + @JsonProperty("textBlock5") + public void setTextBlock5(String textBlock5) { + this.textBlock5 = textBlock5; + } + + @JsonProperty("date1") + public DateTime getDate1() { + return date1; + } + + @JsonProperty("date1") + public void setDate1(DateTime date1) { + this.date1 = date1; + } + + @JsonProperty("date2") + public DateTime getDate2() { + return date2; + } + + @JsonProperty("date2") + public void setDate2(DateTime date2) { + this.date2 = date2; + } + + @JsonProperty("date3") + public DateTime getDate3() { + return date3; + } + + @JsonProperty("date3") + public void setDate3(DateTime date3) { + this.date3 = date3; + } + + @JsonProperty("date4") + public DateTime getDate4() { + return date4; + } + + @JsonProperty("date4") + public void setDate4(DateTime date4) { + this.date4 = date4; + } + + @JsonProperty("date5") + public DateTime getDate5() { + return date5; + } + + @JsonProperty("date5") + public void setDate5(DateTime date5) { + this.date5 = date5; + } + + @JsonProperty("date6") + public DateTime getDate6() { + return date6; + } + + @JsonProperty("date6") + public void setDate6(DateTime date6) { + this.date6 = date6; + } + + @JsonProperty("date7") + public DateTime getDate7() { + return date7; + } + + @JsonProperty("date7") + public void setDate7(DateTime date7) { + this.date7 = date7; + } + + @JsonProperty("date8") + public DateTime getDate8() { + return date8; + } + + @JsonProperty("date8") + public void setDate8(DateTime date8) { + this.date8 = date8; + } + + @JsonProperty("date9") + public DateTime getDate9() { + return date9; + } + + @JsonProperty("date9") + public void setDate9(DateTime date9) { + this.date9 = date9; + } + + @JsonProperty("date10") + public DateTime getDate10() { + return date10; + } + + @JsonProperty("date10") + public void setDate10(DateTime date10) { + this.date10 = date10; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + CustomObjectInstance that = (CustomObjectInstance) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (text1 != null ? !text1.equals(that.text1) : that.text1 != null) return false; + if (text2 != null ? !text2.equals(that.text2) : that.text2 != null) return false; + if (text3 != null ? !text3.equals(that.text3) : that.text3 != null) return false; + if (text4 != null ? !text4.equals(that.text4) : that.text4 != null) return false; + if (text5 != null ? !text5.equals(that.text5) : that.text5 != null) return false; + if (text6 != null ? !text6.equals(that.text6) : that.text6 != null) return false; + if (text7 != null ? !text7.equals(that.text7) : that.text7 != null) return false; + if (text8 != null ? !text8.equals(that.text8) : that.text8 != null) return false; + if (text9 != null ? !text9.equals(that.text9) : that.text9 != null) return false; + if (text10 != null ? !text10.equals(that.text10) : that.text10 != null) return false; + if (text11 != null ? !text11.equals(that.text11) : that.text11 != null) return false; + if (text12 != null ? !text12.equals(that.text12) : that.text12 != null) return false; + if (text13 != null ? !text13.equals(that.text13) : that.text13 != null) return false; + if (text14 != null ? !text14.equals(that.text14) : that.text14 != null) return false; + if (text15 != null ? !text15.equals(that.text15) : that.text15 != null) return false; + if (text16 != null ? !text16.equals(that.text16) : that.text16 != null) return false; + if (text17 != null ? !text17.equals(that.text17) : that.text17 != null) return false; + if (text18 != null ? !text18.equals(that.text18) : that.text18 != null) return false; + if (text19 != null ? !text19.equals(that.text19) : that.text19 != null) return false; + if (text20 != null ? !text20.equals(that.text20) : that.text20 != null) return false; + if (int1 != null ? !int1.equals(that.int1) : that.int1 != null) return false; + if (int2 != null ? !int2.equals(that.int2) : that.int2 != null) return false; + if (int3 != null ? !int3.equals(that.int3) : that.int3 != null) return false; + if (int4 != null ? !int4.equals(that.int4) : that.int4 != null) return false; + if (int5 != null ? !int5.equals(that.int5) : that.int5 != null) return false; + if (int6 != null ? !int6.equals(that.int6) : that.int6 != null) return false; + if (int7 != null ? !int7.equals(that.int7) : that.int7 != null) return false; + if (int8 != null ? !int8.equals(that.int8) : that.int8 != null) return false; + if (int9 != null ? !int9.equals(that.int9) : that.int9 != null) return false; + if (int10 != null ? !int10.equals(that.int10) : that.int10 != null) return false; + if (float1 != null ? !float1.equals(that.float1) : that.float1 != null) return false; + if (float2 != null ? !float2.equals(that.float2) : that.float2 != null) return false; + if (float3 != null ? !float3.equals(that.float3) : that.float3 != null) return false; + if (float4 != null ? !float4.equals(that.float4) : that.float4 != null) return false; + if (float5 != null ? !float5.equals(that.float5) : that.float5 != null) return false; + if (float6 != null ? !float6.equals(that.float6) : that.float6 != null) return false; + if (float7 != null ? !float7.equals(that.float7) : that.float7 != null) return false; + if (float8 != null ? !float8.equals(that.float8) : that.float8 != null) return false; + if (float9 != null ? !float9.equals(that.float9) : that.float9 != null) return false; + if (float10 != null ? !float10.equals(that.float10) : that.float10 != null) return false; + if (textBlock1 != null ? !textBlock1.equals(that.textBlock1) : that.textBlock1 != null) return false; + if (textBlock2 != null ? !textBlock2.equals(that.textBlock2) : that.textBlock2 != null) return false; + if (textBlock3 != null ? !textBlock3.equals(that.textBlock3) : that.textBlock3 != null) return false; + if (textBlock4 != null ? !textBlock4.equals(that.textBlock4) : that.textBlock4 != null) return false; + if (textBlock5 != null ? !textBlock5.equals(that.textBlock5) : that.textBlock5 != null) return false; + if (date1 != null ? !date1.equals(that.date1) : that.date1 != null) return false; + if (date2 != null ? !date2.equals(that.date2) : that.date2 != null) return false; + if (date3 != null ? !date3.equals(that.date3) : that.date3 != null) return false; + if (date4 != null ? !date4.equals(that.date4) : that.date4 != null) return false; + if (date5 != null ? !date5.equals(that.date5) : that.date5 != null) return false; + if (date6 != null ? !date6.equals(that.date6) : that.date6 != null) return false; + if (date7 != null ? !date7.equals(that.date7) : that.date7 != null) return false; + if (date8 != null ? !date8.equals(that.date8) : that.date8 != null) return false; + if (date9 != null ? !date9.equals(that.date9) : that.date9 != null) return false; + if (date10 != null ? !date10.equals(that.date10) : that.date10 != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + return !(dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null); + + } + + @Override + public int hashCode() { + int result = id != null ? id.hashCode() : 0; + result = 31 * result + (text1 != null ? text1.hashCode() : 0); + result = 31 * result + (text2 != null ? text2.hashCode() : 0); + result = 31 * result + (text3 != null ? text3.hashCode() : 0); + result = 31 * result + (text4 != null ? text4.hashCode() : 0); + result = 31 * result + (text5 != null ? text5.hashCode() : 0); + result = 31 * result + (text6 != null ? text6.hashCode() : 0); + result = 31 * result + (text7 != null ? text7.hashCode() : 0); + result = 31 * result + (text8 != null ? text8.hashCode() : 0); + result = 31 * result + (text9 != null ? text9.hashCode() : 0); + result = 31 * result + (text10 != null ? text10.hashCode() : 0); + result = 31 * result + (text11 != null ? text11.hashCode() : 0); + result = 31 * result + (text12 != null ? text12.hashCode() : 0); + result = 31 * result + (text13 != null ? text13.hashCode() : 0); + result = 31 * result + (text14 != null ? text14.hashCode() : 0); + result = 31 * result + (text15 != null ? text15.hashCode() : 0); + result = 31 * result + (text16 != null ? text16.hashCode() : 0); + result = 31 * result + (text17 != null ? text17.hashCode() : 0); + result = 31 * result + (text18 != null ? text18.hashCode() : 0); + result = 31 * result + (text19 != null ? text19.hashCode() : 0); + result = 31 * result + (text20 != null ? text20.hashCode() : 0); + result = 31 * result + (int1 != null ? int1.hashCode() : 0); + result = 31 * result + (int2 != null ? int2.hashCode() : 0); + result = 31 * result + (int3 != null ? int3.hashCode() : 0); + result = 31 * result + (int4 != null ? int4.hashCode() : 0); + result = 31 * result + (int5 != null ? int5.hashCode() : 0); + result = 31 * result + (int6 != null ? int6.hashCode() : 0); + result = 31 * result + (int7 != null ? int7.hashCode() : 0); + result = 31 * result + (int8 != null ? int8.hashCode() : 0); + result = 31 * result + (int9 != null ? int9.hashCode() : 0); + result = 31 * result + (int10 != null ? int10.hashCode() : 0); + result = 31 * result + (float1 != null ? float1.hashCode() : 0); + result = 31 * result + (float2 != null ? float2.hashCode() : 0); + result = 31 * result + (float3 != null ? float3.hashCode() : 0); + result = 31 * result + (float4 != null ? float4.hashCode() : 0); + result = 31 * result + (float5 != null ? float5.hashCode() : 0); + result = 31 * result + (float6 != null ? float6.hashCode() : 0); + result = 31 * result + (float7 != null ? float7.hashCode() : 0); + result = 31 * result + (float8 != null ? float8.hashCode() : 0); + result = 31 * result + (float9 != null ? float9.hashCode() : 0); + result = 31 * result + (float10 != null ? float10.hashCode() : 0); + result = 31 * result + (textBlock1 != null ? textBlock1.hashCode() : 0); + result = 31 * result + (textBlock2 != null ? textBlock2.hashCode() : 0); + result = 31 * result + (textBlock3 != null ? textBlock3.hashCode() : 0); + result = 31 * result + (textBlock4 != null ? textBlock4.hashCode() : 0); + result = 31 * result + (textBlock5 != null ? textBlock5.hashCode() : 0); + result = 31 * result + (date1 != null ? date1.hashCode() : 0); + result = 31 * result + (date2 != null ? date2.hashCode() : 0); + result = 31 * result + (date3 != null ? date3.hashCode() : 0); + result = 31 * result + (date4 != null ? date4.hashCode() : 0); + result = 31 * result + (date5 != null ? date5.hashCode() : 0); + result = 31 * result + (date6 != null ? date6.hashCode() : 0); + result = 31 * result + (date7 != null ? date7.hashCode() : 0); + result = 31 * result + (date8 != null ? date8.hashCode() : 0); + result = 31 * result + (date9 != null ? date9.hashCode() : 0); + result = 31 * result + (date10 != null ? date10.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("id="); + sb.append(id); + sb.append(", text1="); + sb.append(text1); + sb.append(", text2="); + sb.append(text2); + sb.append(", text3="); + sb.append(text3); + sb.append(", text4="); + sb.append(text4); + sb.append(", text5="); + sb.append(text5); + sb.append(", text6="); + sb.append(text6); + sb.append(", text7="); + sb.append(text7); + sb.append(", text8="); + sb.append(text8); + sb.append(", text9="); + sb.append(text9); + sb.append(", text10="); + sb.append(text10); + sb.append(", text11="); + sb.append(text11); + sb.append(", text12="); + sb.append(text12); + sb.append(", text13="); + sb.append(text13); + sb.append(", text14="); + sb.append(text14); + sb.append(", text15="); + sb.append(text15); + sb.append(", text16="); + sb.append(text16); + sb.append(", text17="); + sb.append(text17); + sb.append(", text18="); + sb.append(text18); + sb.append(", text19="); + sb.append(text19); + sb.append(", text20="); + sb.append(text20); + sb.append(", int1="); + sb.append(int1); + sb.append(", int2="); + sb.append(int2); + sb.append(", int3="); + sb.append(int3); + sb.append(", int4="); + sb.append(int4); + sb.append(", int5="); + sb.append(int5); + sb.append(", int6="); + sb.append(int6); + sb.append(", int7="); + sb.append(int7); + sb.append(", int8="); + sb.append(int8); + sb.append(", int9="); + sb.append(int9); + sb.append(", int10="); + sb.append(int10); + sb.append(", float1="); + sb.append(float1); + sb.append(", float2="); + sb.append(float2); + sb.append(", float3="); + sb.append(float3); + sb.append(", float4="); + sb.append(float4); + sb.append(", float5="); + sb.append(float5); + sb.append(", float6="); + sb.append(float6); + sb.append(", float7="); + sb.append(float7); + sb.append(", float8="); + sb.append(float8); + sb.append(", float9="); + sb.append(float9); + sb.append(", float10="); + sb.append(float10); + sb.append(", textBlock1="); + sb.append(textBlock1); + sb.append(", textBlock2="); + sb.append(textBlock2); + sb.append(", textBlock3="); + sb.append(textBlock3); + sb.append(", textBlock4="); + sb.append(textBlock4); + sb.append(", textBlock5="); + sb.append(textBlock5); + sb.append(", date1="); + sb.append(date1); + sb.append(", date2="); + sb.append(date2); + sb.append(", date3="); + sb.append(date3); + sb.append(", date4="); + sb.append(date4); + sb.append(", date5="); + sb.append(date5); + sb.append(", date6="); + sb.append(date6); + sb.append(", date7="); + sb.append(date7); + sb.append(", date8="); + sb.append(date8); + sb.append(", date9="); + sb.append(date9); + sb.append(", date10="); + sb.append(date10); + sb.append(", dateAdded="); + sb.append(dateAdded); + sb.append(", dateLastModified="); + sb.append(dateLastModified); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 9f4607e6..1ccb85fc 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -1,948 +1,948 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.bullhornsdk.data.validation.BullhornUUID; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "appointmentUUID", "guests", "candidateReference", "childAppointments", "clientContactReference", - "communicationMethod", "dateAdded", "dateBegin", "dateEnd", "dateLastModified", "description", "isAllDay", "isDeleted", - "isPrivate", "jobOrder", "lead", "location", "migrateGUID", "notificationMinutes", "opportunity", "owner", "parentAppointment", "placement", - "recurrenceDayBits", "recurrenceFrequency", "recurrenceMax", "recurrenceMonthBits", "recurrenceStyle", "recurrenceType", - "showTimeAs", "subject", "timeZoneID", "type" }) -public class Appointment extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, - DateLastModifiedEntity, EditHistoryEntity, AssociationEntity { - private Integer id; - - @BullhornUUID - private String appointmentUUID; - - private OneToMany guests; - - private Candidate candidateReference; - - private OneToManyLinkedId childAppointments; - - private ClientContact clientContactReference; - - @JsonIgnore - @Size(max = 30) - private String communicationMethod; - - private DateTime dateAdded; - - private DateTime dateBegin; - - private DateTime dateEnd; - - private DateTime dateLastModified; - - private String description; - - private Boolean isAllDay; - - private Boolean isDeleted; - - private Boolean isPrivate; - - private JobOrder jobOrder; - - private Lead lead; - - @JsonIgnore - @Size(max = 100) - private String location; - - private Object migrateGUID; - - private Integer notificationMinutes; - - private Opportunity opportunity; - - private Person owner; - - private Appointment parentAppointment; - - private Placement placement; - - private Integer recurrenceDayBits; - - private Integer recurrenceFrequency; - - private Integer recurrenceMax; - - private Integer recurrenceMonthBits; - - @Size(max = 10) - private String recurrenceStyle; - - @Size(max = 1) - private String recurrenceType; - - private String showTimeAs; - - @Size(max = 100) - private String subject; - - private String timeZoneID; - - @JsonIgnore - @Size(max = 30) - private String type; - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - public Appointment() { - super(); - - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public Appointment instantiateForInsert() { - Appointment entity = new Appointment(); - entity.setCommunicationMethod("Phone"); - entity.setDateBegin(new DateTime()); - entity.setDateEnd(new DateTime()); - entity.setDescription("Test"); - entity.setIsDeleted(Boolean.FALSE); - entity.setIsPrivate(Boolean.FALSE); - entity.setNotificationMinutes(0); - entity.setSubject("Test"); - entity.setType("Test"); - return entity; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("appointmentUUID") - public String getAppointmentUUID() { - return appointmentUUID; - } - - @JsonProperty("appointmentUUID") - public void setAppointmentUUID(String appointmentUUID) { - this.appointmentUUID = appointmentUUID; - } - - @JsonIgnore - public OneToMany getGuests() { - return guests; - } - - @ReadOnly - @JsonProperty("guests") - public void setGuests(OneToMany guests) { - this.guests = guests; - } - - @JsonProperty("candidateReference") - public Candidate getCandidateReference() { - return candidateReference; - } - - @JsonProperty("candidateReference") - public void setCandidateReference(Candidate candidateReference) { - this.candidateReference = candidateReference; - } - - @JsonIgnore - public OneToManyLinkedId getChildAppointments() { - return childAppointments; - } - - @JsonProperty("childAppointments") - public void setChildAppointments(OneToManyLinkedId childAppointments) { - this.childAppointments = childAppointments; - } - - @JsonProperty("clientContactReference") - public ClientContact getClientContactReference() { - return clientContactReference; - } - - @JsonProperty("clientContactReference") - public void setClientContactReference(ClientContact clientContactReference) { - this.clientContactReference = clientContactReference; - } - - @JsonProperty("communicationMethod") - public String getCommunicationMethod() { - return communicationMethod; - } - - @JsonIgnore - public void setCommunicationMethod(String communicationMethod) { - this.communicationMethod = communicationMethod; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateBegin") - public DateTime getDateBegin() { - return dateBegin; - } - - @JsonProperty("dateBegin") - public void setDateBegin(DateTime dateBegin) { - this.dateBegin = dateBegin; - } - - @JsonProperty("dateEnd") - public DateTime getDateEnd() { - return dateEnd; - } - - @JsonProperty("dateEnd") - public void setDateEnd(DateTime dateEnd) { - this.dateEnd = dateEnd; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonProperty("description") - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("isAllDay") - public Boolean getIsAllDay() { - return isAllDay; - } - - @JsonProperty("isAllDay") - public void setIsAllDay(Boolean isAllDay) { - this.isAllDay = isAllDay; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isPrivate") - public Boolean getIsPrivate() { - return isPrivate; - } - - @JsonProperty("isPrivate") - public void setIsPrivate(Boolean isPrivate) { - this.isPrivate = isPrivate; - } - - @JsonProperty("jobOrder") - public JobOrder getJobOrder() { - return jobOrder; - } - - @JsonProperty("jobOrder") - public void setJobOrder(JobOrder jobOrder) { - this.jobOrder = jobOrder; - } - - @JsonProperty("lead") - public Lead getLead() { - return lead; - } - - @JsonProperty("lead") - public void setLead(Lead lead) { - this.lead = lead; - } - - @JsonProperty("location") - public String getLocation() { - return location; - } - - @JsonIgnore - public void setLocation(String location) { - this.location = location; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonProperty("migrateGUID") - public void setMigrateGUID(Object migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("notificationMinutes") - public Integer getNotificationMinutes() { - return notificationMinutes; - } - - @JsonProperty("notificationMinutes") - public void setNotificationMinutes(Integer notificationMinutes) { - this.notificationMinutes = notificationMinutes; - } - - @JsonProperty("owner") - public Person getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(Person owner) { - this.owner = owner; - } - - @JsonProperty("parentAppointment") - public Appointment getParentAppointment() { - return parentAppointment; - } - - @JsonProperty("parentAppointment") - public void setParentAppointment(Appointment parentAppointment) { - this.parentAppointment = parentAppointment; - } - - @JsonProperty("placement") - public Placement getPlacement() { - return placement; - } - - @JsonProperty("placement") - public void setPlacement(Placement placement) { - this.placement = placement; - } - - @JsonProperty("recurrenceDayBits") - public Integer getRecurrenceDayBits() { - return recurrenceDayBits; - } - - @JsonProperty("recurrenceDayBits") - public void setRecurrenceDayBits(Integer recurrenceDayBits) { - this.recurrenceDayBits = recurrenceDayBits; - } - - @JsonProperty("recurrenceFrequency") - public Integer getRecurrenceFrequency() { - return recurrenceFrequency; - } - - @JsonProperty("recurrenceFrequency") - public void setRecurrenceFrequency(Integer recurrenceFrequency) { - this.recurrenceFrequency = recurrenceFrequency; - } - - @JsonProperty("recurrenceMax") - public Integer getRecurrenceMax() { - return recurrenceMax; - } - - @JsonProperty("recurrenceMax") - public void setRecurrenceMax(Integer recurrenceMax) { - this.recurrenceMax = recurrenceMax; - } - - @JsonProperty("recurrenceMonthBits") - public Integer getRecurrenceMonthBits() { - return recurrenceMonthBits; - } - - @JsonProperty("recurrenceMonthBits") - public void setRecurrenceMonthBits(Integer recurrenceMonthBits) { - this.recurrenceMonthBits = recurrenceMonthBits; - } - - @JsonProperty("recurrenceStyle") - public String getRecurrenceStyle() { - return recurrenceStyle; - } - - @JsonProperty("recurrenceStyle") - public void setRecurrenceStyle(String recurrenceStyle) { - this.recurrenceStyle = recurrenceStyle; - } - - @JsonProperty("recurrenceType") - public String getRecurrenceType() { - return recurrenceType; - } - - @JsonProperty("recurrenceType") - public void setRecurrenceType(String recurrenceType) { - this.recurrenceType = recurrenceType; - } - - @JsonProperty("showTimeAs") - public String getShowTimeAs() { - return showTimeAs; - } - - @JsonProperty("showTimeAs") - public void setShowTimeAs(String showTimeAs) { - this.showTimeAs = showTimeAs; - } - - @JsonProperty("subject") - public String getSubject() { - return subject; - } - - @JsonProperty("subject") - public void setSubject(String subject) { - this.subject = subject; - } - - @JsonProperty("timeZoneID") - public String getTimeZoneID() { - return timeZoneID; - } - - @JsonProperty("timeZoneID") - public void setTimeZoneID(String timeZoneID) { - this.timeZoneID = timeZoneID; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("opportunity") - public Opportunity getOpportunity() { - return opportunity; - } - - @JsonProperty("opportunity") - public void setOpportunity(Opportunity opportunity) { - this.opportunity = opportunity; - } - - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - Appointment that = (Appointment) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (appointmentUUID != null ? !appointmentUUID.equals(that.appointmentUUID) : that.appointmentUUID != null) - return false; - if (guests != null ? !guests.equals(that.guests) : that.guests != null) return false; - if (candidateReference != null ? !candidateReference.equals(that.candidateReference) : that.candidateReference != null) - return false; - if (childAppointments != null ? !childAppointments.equals(that.childAppointments) : that.childAppointments != null) - return false; - if (clientContactReference != null ? !clientContactReference.equals(that.clientContactReference) : that.clientContactReference != null) - return false; - if (communicationMethod != null ? !communicationMethod.equals(that.communicationMethod) : that.communicationMethod != null) - return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateBegin != null ? !dateBegin.equals(that.dateBegin) : that.dateBegin != null) return false; - if (dateEnd != null ? !dateEnd.equals(that.dateEnd) : that.dateEnd != null) return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (description != null ? !description.equals(that.description) : that.description != null) return false; - if (isAllDay != null ? !isAllDay.equals(that.isAllDay) : that.isAllDay != null) return false; - if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; - if (isPrivate != null ? !isPrivate.equals(that.isPrivate) : that.isPrivate != null) return false; - if (jobOrder != null ? !jobOrder.equals(that.jobOrder) : that.jobOrder != null) return false; - if (lead != null ? !lead.equals(that.lead) : that.lead != null) return false; - if (location != null ? !location.equals(that.location) : that.location != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; - if (notificationMinutes != null ? !notificationMinutes.equals(that.notificationMinutes) : that.notificationMinutes != null) - return false; - if (opportunity != null ? !opportunity.equals(that.opportunity) : that.opportunity != null) return false; - if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; - if (parentAppointment != null ? !parentAppointment.equals(that.parentAppointment) : that.parentAppointment != null) - return false; - if (placement != null ? !placement.equals(that.placement) : that.placement != null) return false; - if (recurrenceDayBits != null ? !recurrenceDayBits.equals(that.recurrenceDayBits) : that.recurrenceDayBits != null) - return false; - if (recurrenceFrequency != null ? !recurrenceFrequency.equals(that.recurrenceFrequency) : that.recurrenceFrequency != null) - return false; - if (recurrenceMax != null ? !recurrenceMax.equals(that.recurrenceMax) : that.recurrenceMax != null) - return false; - if (recurrenceMonthBits != null ? !recurrenceMonthBits.equals(that.recurrenceMonthBits) : that.recurrenceMonthBits != null) - return false; - if (recurrenceStyle != null ? !recurrenceStyle.equals(that.recurrenceStyle) : that.recurrenceStyle != null) - return false; - if (recurrenceType != null ? !recurrenceType.equals(that.recurrenceType) : that.recurrenceType != null) - return false; - if (showTimeAs != null ? !showTimeAs.equals(that.showTimeAs) : that.showTimeAs != null) return false; - if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false; - if (timeZoneID != null ? !timeZoneID.equals(that.timeZoneID) : that.timeZoneID != null) return false; - return !(type != null ? !type.equals(that.type) : that.type != null); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("Appointment {\nid="); - builder.append(id); - builder.append(", \nappointmentUUID="); - builder.append(appointmentUUID); - builder.append(", \nguests="); - builder.append(guests); - builder.append(", \ncandidateReference="); - builder.append(candidateReference); - builder.append(", \nchildAppointments="); - builder.append(childAppointments); - builder.append(", \nclientContactReference="); - builder.append(clientContactReference); - builder.append(", \ncommunicationMethod="); - builder.append(communicationMethod); - builder.append(", \ndateAdded="); - builder.append(dateAdded); - builder.append(", \ndateBegin="); - builder.append(dateBegin); - builder.append(", \ndateEnd="); - builder.append(dateEnd); - builder.append(", \ndateLastModified="); - builder.append(dateLastModified); - builder.append(", \ndescription="); - builder.append(description); - builder.append(", \nisAllDay="); - builder.append(isAllDay); - builder.append(", \nisDeleted="); - builder.append(isDeleted); - builder.append(", \nisPrivate="); - builder.append(isPrivate); - builder.append(", \njobOrder="); - builder.append(jobOrder); - builder.append(", \nlocation="); - builder.append(location); - builder.append(", \nmigrateGUID="); - builder.append(migrateGUID); - builder.append(", \nnotificationMinutes="); - builder.append(notificationMinutes); - builder.append(", \nowner="); - builder.append(owner); - builder.append(", \nparentAppointment="); - builder.append(parentAppointment); - builder.append(", \nplacement="); - builder.append(placement); - builder.append(", \nrecurrenceDayBits="); - builder.append(recurrenceDayBits); - builder.append(", \nrecurrenceFrequency="); - builder.append(recurrenceFrequency); - builder.append(", \nrecurrenceMax="); - builder.append(recurrenceMax); - builder.append(", \nrecurrenceMonthBits="); - builder.append(recurrenceMonthBits); - builder.append(", \nrecurrenceStyle="); - builder.append(recurrenceStyle); - builder.append(", \nrecurrenceType="); - builder.append(recurrenceType); - builder.append(", \nshowTimeAs="); - builder.append(showTimeAs); - builder.append(", \nsubject="); - builder.append(subject); - builder.append(", \ntimeZoneID="); - builder.append(timeZoneID); - builder.append(", \ntype="); - builder.append(type); - builder.append(", \nopportunity="); - builder.append(opportunity); - builder.append(", \nadditionalProperties="); - builder.append(this.getAdditionalProperties()); - builder.append("\n}"); - return builder.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - StringBuilder builder = new StringBuilder().append("Appointment { "); - if(includeLineBreaks) - builder.append(" { "); - if(id != null){ - builder.append("id="); - builder.append(id); - } - if(appointmentUUID != null){ - builder.append(lbc + "appointmentUUID="); - builder.append(appointmentUUID); - } - if(guests != null){ - builder.append(lbc + "guests="); - builder.append(guests.toStringNonNull(includeLineBreaks)); - } - if(candidateReference != null){ - builder.append(lbc + "candidateReference="); - builder.append(candidateReference.toStringNonNull(includeLineBreaks)); - } - if(childAppointments != null){ - builder.append(lbc + "childAppointments="); - builder.append(childAppointments.toStringNonNull(includeLineBreaks)); - } - if(clientContactReference != null){ - builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference.toStringNonNull(includeLineBreaks)); - } - if(communicationMethod != null){ - builder.append(lbc + "communicationMethod="); - builder.append(communicationMethod); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(dateBegin != null){ - builder.append(lbc + "dateBegin="); - builder.append(dateBegin); - } - if(dateEnd != null){ - builder.append(lbc + "dateEnd="); - builder.append(dateEnd); - } - if(dateLastModified != null){ - builder.append(lbc + "dateLastModified="); - builder.append(dateLastModified); - } - if(description != null){ - builder.append(lbc + "description="); - builder.append(description); - } - if(isAllDay != null){ - builder.append(lbc + "isAllDay="); - builder.append(isAllDay); - } - if(isDeleted != null){ - builder.append(lbc + "isDeleted="); - builder.append(isDeleted); - } - if(isPrivate != null){ - builder.append(lbc + "isPrivate="); - builder.append(isPrivate); - } - if(jobOrder != null){ - builder.append(lbc + "jobOrder="); - builder.append(jobOrder.toStringNonNull(includeLineBreaks)); - } - if(location != null){ - builder.append(lbc + "location="); - builder.append(location); - } - if(migrateGUID != null){ - builder.append(lbc + "migrateGUID="); - builder.append(migrateGUID); - } - if(notificationMinutes != null){ - builder.append(lbc + "notificationMinutes="); - builder.append(notificationMinutes); - } - if(owner != null){ - builder.append(lbc + "owner="); - builder.append(owner.toStringNonNull(includeLineBreaks)); - } - if(parentAppointment != null){ - builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment.toStringNonNull(includeLineBreaks)); - } - if(placement != null){ - builder.append(lbc + "placement="); - builder.append(placement.toStringNonNull(includeLineBreaks)); - } - if(recurrenceDayBits != null){ - builder.append(lbc + "recurrenceDayBits="); - builder.append(recurrenceDayBits); - } - if(recurrenceFrequency != null){ - builder.append(lbc + "recurrenceFrequency="); - builder.append(recurrenceFrequency); - } - if(recurrenceMax != null){ - builder.append(lbc + "recurrenceMax="); - builder.append(recurrenceMax); - } - if(recurrenceMonthBits != null){ - builder.append(lbc + "recurrenceMonthBits="); - builder.append(recurrenceMonthBits); - } - if(recurrenceStyle != null){ - builder.append(lbc + "recurrenceStyle="); - builder.append(recurrenceStyle); - } - if(recurrenceType != null){ - builder.append(lbc + "recurrenceType="); - builder.append(recurrenceType); - } - if(showTimeAs != null){ - builder.append(lbc + "showTimeAs="); - builder.append(showTimeAs); - } - if(subject != null){ - builder.append(lbc + "subject="); - builder.append(subject); - } - if(timeZoneID != null){ - builder.append(lbc + "timeZoneID="); - builder.append(timeZoneID); - } - if(type != null){ - builder.append(lbc + "type="); - builder.append(type); - } - if(opportunity != null){ - builder.append(lbc + "opportunity="); - builder.append(opportunity.toStringNonNull(includeLineBreaks)); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - if(includeLineBreaks) - builder.append("\n"); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder builder = new StringBuilder(); - builder.append(getClass() + " { "); - if(id != null){ - builder.append("id=").append(id); - } - if(appointmentUUID != null){ - builder.append(lbc + "appointmentUUID="); - builder.append(appointmentUUID); - } - if(guests != null){ - builder.append(lbc + "guests="); - builder.append(guests.toStringNonNull()); - } - if(candidateReference != null){ - builder.append(lbc + "candidateReference="); - builder.append(candidateReference.toStringNonNull()); - } - if(childAppointments != null){ - builder.append(lbc + "childAppointments="); - builder.append(childAppointments.toStringNonNull()); - } - if(clientContactReference != null){ - builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference.toStringNonNull()); - } - if(communicationMethod != null){ - builder.append(lbc + "communicationMethod="); - builder.append(communicationMethod); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(dateBegin != null){ - builder.append(lbc + "dateBegin="); - builder.append(dateBegin); - } - if(dateEnd != null){ - builder.append(lbc + "dateEnd="); - builder.append(dateEnd); - } - if(dateLastModified != null){ - builder.append(lbc + "dateLastModified="); - builder.append(dateLastModified); - } - if(description != null){ - builder.append(lbc + "description="); - builder.append(description); - } - if(isAllDay != null){ - builder.append(lbc + "isAllDay="); - builder.append(isAllDay); - } - if(isDeleted != null){ - builder.append(lbc + "isDeleted="); - builder.append(isDeleted); - } - if(isPrivate != null){ - builder.append(lbc + "isPrivate="); - builder.append(isPrivate); - } - if(jobOrder != null){ - builder.append(lbc + "jobOrder="); - builder.append(jobOrder.toStringNonNull()); - } - if(location != null){ - builder.append(lbc + "location="); - builder.append(location); - } - if(migrateGUID != null){ - builder.append(lbc + "migrateGUID="); - builder.append(migrateGUID); - } - if(notificationMinutes != null){ - builder.append(lbc + "notificationMinutes="); - builder.append(notificationMinutes); - } - if(owner != null){ - builder.append(lbc + "owner="); - builder.append(owner.toStringNonNull()); - } - if(parentAppointment != null){ - builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment.toStringNonNull()); - } - if(placement != null){ - builder.append(lbc + "placement="); - builder.append(placement.toStringNonNull()); - } - if(recurrenceDayBits != null){ - builder.append(lbc + "recurrenceDayBits="); - builder.append(recurrenceDayBits); - } - if(recurrenceFrequency != null){ - builder.append(lbc + "recurrenceFrequency="); - builder.append(recurrenceFrequency); - } - if(recurrenceMax != null){ - builder.append(lbc + "recurrenceMax="); - builder.append(recurrenceMax); - } - if(recurrenceMonthBits != null){ - builder.append(lbc + "recurrenceMonthBits="); - builder.append(recurrenceMonthBits); - } - if(recurrenceStyle != null){ - builder.append(lbc + "recurrenceStyle="); - builder.append(recurrenceStyle); - } - if(recurrenceType != null){ - builder.append(lbc + "recurrenceType="); - builder.append(recurrenceType); - } - if(showTimeAs != null){ - builder.append(lbc + "showTimeAs="); - builder.append(showTimeAs); - } - if(subject != null){ - builder.append(lbc + "subject="); - builder.append(subject); - } - if(timeZoneID != null){ - builder.append(lbc + "timeZoneID="); - builder.append(timeZoneID); - } - if(type != null){ - builder.append(lbc + "type="); - builder.append(type); - } - if(opportunity != null){ - builder.append(lbc + "opportunity="); - builder.append(opportunity.toStringNonNull()); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - - builder.append(lbc + "}"); - return builder.toString(); - } - - @Override - public int hashCode() { - int result = id != null ? id.hashCode() : 0; - result = 31 * result + (appointmentUUID != null ? appointmentUUID.hashCode() : 0); - result = 31 * result + (guests != null ? guests.hashCode() : 0); - result = 31 * result + (candidateReference != null ? candidateReference.hashCode() : 0); - result = 31 * result + (childAppointments != null ? childAppointments.hashCode() : 0); - result = 31 * result + (clientContactReference != null ? clientContactReference.hashCode() : 0); - result = 31 * result + (communicationMethod != null ? communicationMethod.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateBegin != null ? dateBegin.hashCode() : 0); - result = 31 * result + (dateEnd != null ? dateEnd.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (isAllDay != null ? isAllDay.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isPrivate != null ? isPrivate.hashCode() : 0); - result = 31 * result + (jobOrder != null ? jobOrder.hashCode() : 0); - result = 31 * result + (lead != null ? lead.hashCode() : 0); - result = 31 * result + (location != null ? location.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (notificationMinutes != null ? notificationMinutes.hashCode() : 0); - result = 31 * result + (opportunity != null ? opportunity.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (parentAppointment != null ? parentAppointment.hashCode() : 0); - result = 31 * result + (placement != null ? placement.hashCode() : 0); - result = 31 * result + (recurrenceDayBits != null ? recurrenceDayBits.hashCode() : 0); - result = 31 * result + (recurrenceFrequency != null ? recurrenceFrequency.hashCode() : 0); - result = 31 * result + (recurrenceMax != null ? recurrenceMax.hashCode() : 0); - result = 31 * result + (recurrenceMonthBits != null ? recurrenceMonthBits.hashCode() : 0); - result = 31 * result + (recurrenceStyle != null ? recurrenceStyle.hashCode() : 0); - result = 31 * result + (recurrenceType != null ? recurrenceType.hashCode() : 0); - result = 31 * result + (showTimeAs != null ? showTimeAs.hashCode() : 0); - result = 31 * result + (subject != null ? subject.hashCode() : 0); - result = 31 * result + (timeZoneID != null ? timeZoneID.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - return result; - } - - - -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.bullhornsdk.data.validation.BullhornUUID; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "appointmentUUID", "guests", "candidateReference", "childAppointments", "clientContactReference", + "communicationMethod", "dateAdded", "dateBegin", "dateEnd", "dateLastModified", "description", "isAllDay", "isDeleted", + "isPrivate", "jobOrder", "lead", "location", "migrateGUID", "notificationMinutes", "opportunity", "owner", "parentAppointment", "placement", + "recurrenceDayBits", "recurrenceFrequency", "recurrenceMax", "recurrenceMonthBits", "recurrenceStyle", "recurrenceType", + "showTimeAs", "subject", "timeZoneID", "type" }) +public class Appointment extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, + DateLastModifiedEntity, EditHistoryEntity, AssociationEntity { + private Integer id; + + @BullhornUUID + private String appointmentUUID; + + private OneToMany guests; + + private Candidate candidateReference; + + private OneToManyLinkedId childAppointments; + + private ClientContact clientContactReference; + + @JsonIgnore + @Size(max = 30) + private String communicationMethod; + + private DateTime dateAdded; + + private DateTime dateBegin; + + private DateTime dateEnd; + + private DateTime dateLastModified; + + private String description; + + private Boolean isAllDay; + + private Boolean isDeleted; + + private Boolean isPrivate; + + private JobOrder jobOrder; + + private Lead lead; + + @JsonIgnore + @Size(max = 100) + private String location; + + private Object migrateGUID; + + private Integer notificationMinutes; + + private Opportunity opportunity; + + private Person owner; + + private Appointment parentAppointment; + + private Placement placement; + + private Integer recurrenceDayBits; + + private Integer recurrenceFrequency; + + private Integer recurrenceMax; + + private Integer recurrenceMonthBits; + + @Size(max = 10) + private String recurrenceStyle; + + @Size(max = 1) + private String recurrenceType; + + private String showTimeAs; + + @Size(max = 100) + private String subject; + + private String timeZoneID; + + @JsonIgnore + @Size(max = 30) + private String type; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + public Appointment() { + super(); + + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public Appointment instantiateForInsert() { + Appointment entity = new Appointment(); + entity.setCommunicationMethod("Phone"); + entity.setDateBegin(new DateTime()); + entity.setDateEnd(new DateTime()); + entity.setDescription("Test"); + entity.setIsDeleted(Boolean.FALSE); + entity.setIsPrivate(Boolean.FALSE); + entity.setNotificationMinutes(0); + entity.setSubject("Test"); + entity.setType("Test"); + return entity; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("appointmentUUID") + public String getAppointmentUUID() { + return appointmentUUID; + } + + @JsonProperty("appointmentUUID") + public void setAppointmentUUID(String appointmentUUID) { + this.appointmentUUID = appointmentUUID; + } + + @JsonIgnore + public OneToMany getGuests() { + return guests; + } + + @ReadOnly + @JsonProperty("guests") + public void setGuests(OneToMany guests) { + this.guests = guests; + } + + @JsonProperty("candidateReference") + public Candidate getCandidateReference() { + return candidateReference; + } + + @JsonProperty("candidateReference") + public void setCandidateReference(Candidate candidateReference) { + this.candidateReference = candidateReference; + } + + @JsonIgnore + public OneToManyLinkedId getChildAppointments() { + return childAppointments; + } + + @JsonProperty("childAppointments") + public void setChildAppointments(OneToManyLinkedId childAppointments) { + this.childAppointments = childAppointments; + } + + @JsonProperty("clientContactReference") + public ClientContact getClientContactReference() { + return clientContactReference; + } + + @JsonProperty("clientContactReference") + public void setClientContactReference(ClientContact clientContactReference) { + this.clientContactReference = clientContactReference; + } + + @JsonProperty("communicationMethod") + public String getCommunicationMethod() { + return communicationMethod; + } + + @JsonIgnore + public void setCommunicationMethod(String communicationMethod) { + this.communicationMethod = communicationMethod; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateBegin") + public DateTime getDateBegin() { + return dateBegin; + } + + @JsonProperty("dateBegin") + public void setDateBegin(DateTime dateBegin) { + this.dateBegin = dateBegin; + } + + @JsonProperty("dateEnd") + public DateTime getDateEnd() { + return dateEnd; + } + + @JsonProperty("dateEnd") + public void setDateEnd(DateTime dateEnd) { + this.dateEnd = dateEnd; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("isAllDay") + public Boolean getIsAllDay() { + return isAllDay; + } + + @JsonProperty("isAllDay") + public void setIsAllDay(Boolean isAllDay) { + this.isAllDay = isAllDay; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isPrivate") + public Boolean getIsPrivate() { + return isPrivate; + } + + @JsonProperty("isPrivate") + public void setIsPrivate(Boolean isPrivate) { + this.isPrivate = isPrivate; + } + + @JsonProperty("jobOrder") + public JobOrder getJobOrder() { + return jobOrder; + } + + @JsonProperty("jobOrder") + public void setJobOrder(JobOrder jobOrder) { + this.jobOrder = jobOrder; + } + + @JsonProperty("lead") + public Lead getLead() { + return lead; + } + + @JsonProperty("lead") + public void setLead(Lead lead) { + this.lead = lead; + } + + @JsonProperty("location") + public String getLocation() { + return location; + } + + @JsonIgnore + public void setLocation(String location) { + this.location = location; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonProperty("migrateGUID") + public void setMigrateGUID(Object migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("notificationMinutes") + public Integer getNotificationMinutes() { + return notificationMinutes; + } + + @JsonProperty("notificationMinutes") + public void setNotificationMinutes(Integer notificationMinutes) { + this.notificationMinutes = notificationMinutes; + } + + @JsonProperty("owner") + public Person getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(Person owner) { + this.owner = owner; + } + + @JsonProperty("parentAppointment") + public Appointment getParentAppointment() { + return parentAppointment; + } + + @JsonProperty("parentAppointment") + public void setParentAppointment(Appointment parentAppointment) { + this.parentAppointment = parentAppointment; + } + + @JsonProperty("placement") + public Placement getPlacement() { + return placement; + } + + @JsonProperty("placement") + public void setPlacement(Placement placement) { + this.placement = placement; + } + + @JsonProperty("recurrenceDayBits") + public Integer getRecurrenceDayBits() { + return recurrenceDayBits; + } + + @JsonProperty("recurrenceDayBits") + public void setRecurrenceDayBits(Integer recurrenceDayBits) { + this.recurrenceDayBits = recurrenceDayBits; + } + + @JsonProperty("recurrenceFrequency") + public Integer getRecurrenceFrequency() { + return recurrenceFrequency; + } + + @JsonProperty("recurrenceFrequency") + public void setRecurrenceFrequency(Integer recurrenceFrequency) { + this.recurrenceFrequency = recurrenceFrequency; + } + + @JsonProperty("recurrenceMax") + public Integer getRecurrenceMax() { + return recurrenceMax; + } + + @JsonProperty("recurrenceMax") + public void setRecurrenceMax(Integer recurrenceMax) { + this.recurrenceMax = recurrenceMax; + } + + @JsonProperty("recurrenceMonthBits") + public Integer getRecurrenceMonthBits() { + return recurrenceMonthBits; + } + + @JsonProperty("recurrenceMonthBits") + public void setRecurrenceMonthBits(Integer recurrenceMonthBits) { + this.recurrenceMonthBits = recurrenceMonthBits; + } + + @JsonProperty("recurrenceStyle") + public String getRecurrenceStyle() { + return recurrenceStyle; + } + + @JsonProperty("recurrenceStyle") + public void setRecurrenceStyle(String recurrenceStyle) { + this.recurrenceStyle = recurrenceStyle; + } + + @JsonProperty("recurrenceType") + public String getRecurrenceType() { + return recurrenceType; + } + + @JsonProperty("recurrenceType") + public void setRecurrenceType(String recurrenceType) { + this.recurrenceType = recurrenceType; + } + + @JsonProperty("showTimeAs") + public String getShowTimeAs() { + return showTimeAs; + } + + @JsonProperty("showTimeAs") + public void setShowTimeAs(String showTimeAs) { + this.showTimeAs = showTimeAs; + } + + @JsonProperty("subject") + public String getSubject() { + return subject; + } + + @JsonProperty("subject") + public void setSubject(String subject) { + this.subject = subject; + } + + @JsonProperty("timeZoneID") + public String getTimeZoneID() { + return timeZoneID; + } + + @JsonProperty("timeZoneID") + public void setTimeZoneID(String timeZoneID) { + this.timeZoneID = timeZoneID; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("opportunity") + public Opportunity getOpportunity() { + return opportunity; + } + + @JsonProperty("opportunity") + public void setOpportunity(Opportunity opportunity) { + this.opportunity = opportunity; + } + + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Appointment that = (Appointment) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (appointmentUUID != null ? !appointmentUUID.equals(that.appointmentUUID) : that.appointmentUUID != null) + return false; + if (guests != null ? !guests.equals(that.guests) : that.guests != null) return false; + if (candidateReference != null ? !candidateReference.equals(that.candidateReference) : that.candidateReference != null) + return false; + if (childAppointments != null ? !childAppointments.equals(that.childAppointments) : that.childAppointments != null) + return false; + if (clientContactReference != null ? !clientContactReference.equals(that.clientContactReference) : that.clientContactReference != null) + return false; + if (communicationMethod != null ? !communicationMethod.equals(that.communicationMethod) : that.communicationMethod != null) + return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateBegin != null ? !dateBegin.equals(that.dateBegin) : that.dateBegin != null) return false; + if (dateEnd != null ? !dateEnd.equals(that.dateEnd) : that.dateEnd != null) return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (description != null ? !description.equals(that.description) : that.description != null) return false; + if (isAllDay != null ? !isAllDay.equals(that.isAllDay) : that.isAllDay != null) return false; + if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; + if (isPrivate != null ? !isPrivate.equals(that.isPrivate) : that.isPrivate != null) return false; + if (jobOrder != null ? !jobOrder.equals(that.jobOrder) : that.jobOrder != null) return false; + if (lead != null ? !lead.equals(that.lead) : that.lead != null) return false; + if (location != null ? !location.equals(that.location) : that.location != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; + if (notificationMinutes != null ? !notificationMinutes.equals(that.notificationMinutes) : that.notificationMinutes != null) + return false; + if (opportunity != null ? !opportunity.equals(that.opportunity) : that.opportunity != null) return false; + if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; + if (parentAppointment != null ? !parentAppointment.equals(that.parentAppointment) : that.parentAppointment != null) + return false; + if (placement != null ? !placement.equals(that.placement) : that.placement != null) return false; + if (recurrenceDayBits != null ? !recurrenceDayBits.equals(that.recurrenceDayBits) : that.recurrenceDayBits != null) + return false; + if (recurrenceFrequency != null ? !recurrenceFrequency.equals(that.recurrenceFrequency) : that.recurrenceFrequency != null) + return false; + if (recurrenceMax != null ? !recurrenceMax.equals(that.recurrenceMax) : that.recurrenceMax != null) + return false; + if (recurrenceMonthBits != null ? !recurrenceMonthBits.equals(that.recurrenceMonthBits) : that.recurrenceMonthBits != null) + return false; + if (recurrenceStyle != null ? !recurrenceStyle.equals(that.recurrenceStyle) : that.recurrenceStyle != null) + return false; + if (recurrenceType != null ? !recurrenceType.equals(that.recurrenceType) : that.recurrenceType != null) + return false; + if (showTimeAs != null ? !showTimeAs.equals(that.showTimeAs) : that.showTimeAs != null) return false; + if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false; + if (timeZoneID != null ? !timeZoneID.equals(that.timeZoneID) : that.timeZoneID != null) return false; + return !(type != null ? !type.equals(that.type) : that.type != null); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append("Appointment {\nid="); + builder.append(id); + builder.append(", \nappointmentUUID="); + builder.append(appointmentUUID); + builder.append(", \nguests="); + builder.append(guests); + builder.append(", \ncandidateReference="); + builder.append(candidateReference); + builder.append(", \nchildAppointments="); + builder.append(childAppointments); + builder.append(", \nclientContactReference="); + builder.append(clientContactReference); + builder.append(", \ncommunicationMethod="); + builder.append(communicationMethod); + builder.append(", \ndateAdded="); + builder.append(dateAdded); + builder.append(", \ndateBegin="); + builder.append(dateBegin); + builder.append(", \ndateEnd="); + builder.append(dateEnd); + builder.append(", \ndateLastModified="); + builder.append(dateLastModified); + builder.append(", \ndescription="); + builder.append(description); + builder.append(", \nisAllDay="); + builder.append(isAllDay); + builder.append(", \nisDeleted="); + builder.append(isDeleted); + builder.append(", \nisPrivate="); + builder.append(isPrivate); + builder.append(", \njobOrder="); + builder.append(jobOrder); + builder.append(", \nlocation="); + builder.append(location); + builder.append(", \nmigrateGUID="); + builder.append(migrateGUID); + builder.append(", \nnotificationMinutes="); + builder.append(notificationMinutes); + builder.append(", \nowner="); + builder.append(owner); + builder.append(", \nparentAppointment="); + builder.append(parentAppointment); + builder.append(", \nplacement="); + builder.append(placement); + builder.append(", \nrecurrenceDayBits="); + builder.append(recurrenceDayBits); + builder.append(", \nrecurrenceFrequency="); + builder.append(recurrenceFrequency); + builder.append(", \nrecurrenceMax="); + builder.append(recurrenceMax); + builder.append(", \nrecurrenceMonthBits="); + builder.append(recurrenceMonthBits); + builder.append(", \nrecurrenceStyle="); + builder.append(recurrenceStyle); + builder.append(", \nrecurrenceType="); + builder.append(recurrenceType); + builder.append(", \nshowTimeAs="); + builder.append(showTimeAs); + builder.append(", \nsubject="); + builder.append(subject); + builder.append(", \ntimeZoneID="); + builder.append(timeZoneID); + builder.append(", \ntype="); + builder.append(type); + builder.append(", \nopportunity="); + builder.append(opportunity); + builder.append(", \nadditionalProperties="); + builder.append(this.getAdditionalProperties()); + builder.append("\n}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder().append("Appointment { "); + if(includeLineBreaks) + builder.append(" { "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests.toStringNonNull(includeLineBreaks)); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference.toStringNonNull(includeLineBreaks)); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments.toStringNonNull(includeLineBreaks)); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference.toStringNonNull(includeLineBreaks)); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder.toStringNonNull(includeLineBreaks)); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner.toStringNonNull(includeLineBreaks)); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment.toStringNonNull(includeLineBreaks)); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement.toStringNonNull(includeLineBreaks)); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity.toStringNonNull(includeLineBreaks)); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(); + builder.append(getClass() + " { "); + if(id != null){ + builder.append("id=").append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests.toStringNonNull()); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference.toStringNonNull()); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments.toStringNonNull()); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference.toStringNonNull()); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder.toStringNonNull()); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner.toStringNonNull()); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment.toStringNonNull()); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement.toStringNonNull()); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity.toStringNonNull()); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + + builder.append(lbc + "}"); + return builder.toString(); + } + + @Override + public int hashCode() { + int result = id != null ? id.hashCode() : 0; + result = 31 * result + (appointmentUUID != null ? appointmentUUID.hashCode() : 0); + result = 31 * result + (guests != null ? guests.hashCode() : 0); + result = 31 * result + (candidateReference != null ? candidateReference.hashCode() : 0); + result = 31 * result + (childAppointments != null ? childAppointments.hashCode() : 0); + result = 31 * result + (clientContactReference != null ? clientContactReference.hashCode() : 0); + result = 31 * result + (communicationMethod != null ? communicationMethod.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateBegin != null ? dateBegin.hashCode() : 0); + result = 31 * result + (dateEnd != null ? dateEnd.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (isAllDay != null ? isAllDay.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isPrivate != null ? isPrivate.hashCode() : 0); + result = 31 * result + (jobOrder != null ? jobOrder.hashCode() : 0); + result = 31 * result + (lead != null ? lead.hashCode() : 0); + result = 31 * result + (location != null ? location.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (notificationMinutes != null ? notificationMinutes.hashCode() : 0); + result = 31 * result + (opportunity != null ? opportunity.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (parentAppointment != null ? parentAppointment.hashCode() : 0); + result = 31 * result + (placement != null ? placement.hashCode() : 0); + result = 31 * result + (recurrenceDayBits != null ? recurrenceDayBits.hashCode() : 0); + result = 31 * result + (recurrenceFrequency != null ? recurrenceFrequency.hashCode() : 0); + result = 31 * result + (recurrenceMax != null ? recurrenceMax.hashCode() : 0); + result = 31 * result + (recurrenceMonthBits != null ? recurrenceMonthBits.hashCode() : 0); + result = 31 * result + (recurrenceStyle != null ? recurrenceStyle.hashCode() : 0); + result = 31 * result + (recurrenceType != null ? recurrenceType.hashCode() : 0); + result = 31 * result + (showTimeAs != null ? showTimeAs.hashCode() : 0); + result = 31 * result + (subject != null ? subject.hashCode() : 0); + result = 31 * result + (timeZoneID != null ? timeZoneID.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + return result; + } + + + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java index f478aed2..68e95562 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java @@ -1,1155 +1,1155 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import org.joda.time.DateTime; - -import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.BaseCustomFields; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -import java.math.BigDecimal; - -/** - * Created by john.sullivan on 10/7/2017. - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({"id", "name", "isDeleted", "parentBranch", "externalID", "dateAdded", "customText1", "customText2", "customText3", - "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customText10", "customTextBlock1", - "customTextBlock2", "customTextBlock3", "customDate1", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", - "customFloat1", "customFloat2", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customInt1", "customInt2", "customInt3", - "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customInt10", "ancestors", "descendants", "corporateUsers"}) -public class Branch extends BaseCustomFields implements AllRecordsEntity, CreateEntity, UpdateEntity, QueryEntity, SoftDeleteEntity, AssociationEntity { - - private Integer id; - - private String name; - - private Boolean isDeleted; - - private Branch parentBranch; - - private String externalID; - - private DateTime dateAdded; - - private String customText1; - - private String customText2; - - private String customText3; - - private String customText4; - - private String customText5; - - private String customText6; - - private String customText7; - - private String customText8; - - private String customText9; - - private String customText10; - - private String customTextBlock1; - - private String customTextBlock2; - - private String customTextBlock3; - - private DateTime customDate1; - - private DateTime customDate2; - - private DateTime customDate3; - - private DateTime customDate4; - - private DateTime customDate5; - - private DateTime customDate6; - - private BigDecimal customFloat1; - - private BigDecimal customFloat2; - - private BigDecimal customFloat3; - - private BigDecimal customFloat4; - - private BigDecimal customFloat5; - - private BigDecimal customFloat6; - - private Integer customInt1; - - private Integer customInt2; - - private Integer customInt3; - - private Integer customInt4; - - private Integer customInt5; - - private Integer customInt6; - - private Integer customInt7; - - private Integer customInt8; - - private Integer customInt9; - - private Integer customInt10; - - private OneToMany ancestors; - - private OneToMany descendants; - - private OneToMany corporateUsers; - - @JsonProperty("id") - @Override - public Integer getId() { - return id; - } - - @JsonProperty("id") - @Override - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @JsonProperty("isDeleted") - @Override - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("parentBranch") - public Branch getParentBranch() { - return parentBranch; - } - - @JsonProperty("parentBranch") - public void setParentBranch(Branch parentBranch) { - this.parentBranch = parentBranch; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonProperty("externalID") - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("customText1") - public String getCustomText1() { - return customText1; - } - - @JsonProperty("customText1") - public void setCustomText1(String customText1) { - this.customText1 = customText1; - } - - @JsonProperty("customText2") - public String getCustomText2() { - return customText2; - } - - @JsonProperty("customText2") - public void setCustomText2(String customText2) { - this.customText2 = customText2; - } - - @JsonProperty("customText3") - public String getCustomText3() { - return customText3; - } - - @JsonProperty("customText3") - public void setCustomText3(String customText3) { - this.customText3 = customText3; - } - - @JsonProperty("customText4") - public String getCustomText4() { - return customText4; - } - - @JsonProperty("customText4") - public void setCustomText4(String customText4) { - this.customText4 = customText4; - } - - @JsonProperty("customText5") - public String getCustomText5() { - return customText5; - } - - @JsonProperty("customText5") - public void setCustomText5(String customText5) { - this.customText5 = customText5; - } - - @JsonProperty("customText6") - public String getCustomText6() { - return customText6; - } - - @JsonProperty("customText6") - public void setCustomText6(String customText6) { - this.customText6 = customText6; - } - - @JsonProperty("customText7") - public String getCustomText7() { - return customText7; - } - - @JsonProperty("customText7") - public void setCustomText7(String customText7) { - this.customText7 = customText7; - } - - @JsonProperty("customText8") - public String getCustomText8() { - return customText8; - } - - @JsonProperty("customText8") - public void setCustomText8(String customText8) { - this.customText8 = customText8; - } - - @JsonProperty("customText9") - public String getCustomText9() { - return customText9; - } - - @JsonProperty("customText9") - public void setCustomText9(String customText9) { - this.customText9 = customText9; - } - - @JsonProperty("customText10") - public String getCustomText10() { - return customText10; - } - - @JsonProperty("customText10") - public void setCustomText10(String customText10) { - this.customText10 = customText10; - } - - @JsonProperty("customTextBlock1") - public String getCustomTextBlock1() { - return customTextBlock1; - } - - @JsonProperty("customTextBlock1") - public void setCustomTextBlock1(String customTextBlock1) { - this.customTextBlock1 = customTextBlock1; - } - - @JsonProperty("customTextBlock2") - public String getCustomTextBlock2() { - return customTextBlock2; - } - - @JsonProperty("customTextBlock2") - public void setCustomTextBlock2(String customTextBlock2) { - this.customTextBlock2 = customTextBlock2; - } - - @JsonProperty("customTextBlock3") - public String getCustomTextBlock3() { - return customTextBlock3; - } - - @JsonProperty("customTextBlock3") - public void setCustomTextBlock3(String customTextBlock3) { - this.customTextBlock3 = customTextBlock3; - } - - @JsonProperty("customDate1") - public DateTime getCustomDate1() { - return customDate1; - } - - @JsonProperty("customDate1") - public void setCustomDate1(DateTime customDate1) { - this.customDate1 = customDate1; - } - - @JsonProperty("customDate2") - public DateTime getCustomDate2() { - return customDate2; - } - - @JsonProperty("customDate2") - public void setCustomDate2(DateTime customDate2) { - this.customDate2 = customDate2; - } - - @JsonProperty("customDate3") - public DateTime getCustomDate3() { - return customDate3; - } - - @JsonProperty("customDate3") - public void setCustomDate3(DateTime customDate3) { - this.customDate3 = customDate3; - } - - @JsonProperty("customDate4") - public DateTime getCustomDate4() { - return customDate4; - } - - @JsonProperty("customDate4") - public void setCustomDate4(DateTime customDate4) { - this.customDate4 = customDate4; - } - - @JsonProperty("customDate5") - public DateTime getCustomDate5() { - return customDate5; - } - - @JsonProperty("customDate5") - public void setCustomDate5(DateTime customDate5) { - this.customDate5 = customDate5; - } - - @JsonProperty("customDate6") - public DateTime getCustomDate6() { - return customDate6; - } - - @JsonProperty("customDate6") - public void setCustomDate6(DateTime customDate6) { - this.customDate6 = customDate6; - } - - @JsonProperty("customFloat1") - public BigDecimal getCustomFloat1() { - return customFloat1; - } - - @JsonProperty("customFloat1") - public void setCustomFloat1(BigDecimal customFloat1) { - this.customFloat1 = customFloat1; - } - - @JsonProperty("customFloat2") - public BigDecimal getCustomFloat2() { - return customFloat2; - } - - @JsonProperty("customFloat2") - public void setCustomFloat2(BigDecimal customFloat2) { - this.customFloat2 = customFloat2; - } - - @JsonProperty("customFloat3") - public BigDecimal getCustomFloat3() { - return customFloat3; - } - - @JsonProperty("customFloat3") - public void setCustomFloat3(BigDecimal customFloat3) { - this.customFloat3 = customFloat3; - } - - @JsonProperty("customFloat4") - public BigDecimal getCustomFloat4() { - return customFloat4; - } - - @JsonProperty("customFloat4") - public void setCustomFloat4(BigDecimal customFloat4) { - this.customFloat4 = customFloat4; - } - - @JsonProperty("customFloat5") - public BigDecimal getCustomFloat5() { - return customFloat5; - } - - @JsonProperty("customFloat5") - public void setCustomFloat5(BigDecimal customFloat5) { - this.customFloat5 = customFloat5; - } - - @JsonProperty("customFloat6") - public BigDecimal getCustomFloat6() { - return customFloat6; - } - - @JsonProperty("customFloat6") - public void setCustomFloat6(BigDecimal customFloat6) { - this.customFloat6 = customFloat6; - } - - @JsonProperty("customInt1") - public Integer getCustomInt1() { - return customInt1; - } - - @JsonProperty("customInt1") - public void setCustomInt1(Integer customInt1) { - this.customInt1 = customInt1; - } - - @JsonProperty("customInt2") - public Integer getCustomInt2() { - return customInt2; - } - - @JsonProperty("customInt2") - public void setCustomInt2(Integer customInt2) { - this.customInt2 = customInt2; - } - - @JsonProperty("customInt3") - public Integer getCustomInt3() { - return customInt3; - } - - @JsonProperty("customInt3") - public void setCustomInt3(Integer customInt3) { - this.customInt3 = customInt3; - } - - @JsonProperty("customInt4") - public Integer getCustomInt4() { - return customInt4; - } - - @JsonProperty("customInt4") - public void setCustomInt4(Integer customInt4) { - this.customInt4 = customInt4; - } - - @JsonProperty("customInt5") - public Integer getCustomInt5() { - return customInt5; - } - - @JsonProperty("customInt5") - public void setCustomInt5(Integer customInt5) { - this.customInt5 = customInt5; - } - - @JsonProperty("customInt6") - public Integer getCustomInt6() { - return customInt6; - } - - @JsonProperty("customInt6") - public void setCustomInt6(Integer customInt6) { - this.customInt6 = customInt6; - } - - @JsonProperty("customInt7") - public Integer getCustomInt7() { - return customInt7; - } - - @JsonProperty("customInt7") - public void setCustomInt7(Integer customInt7) { - this.customInt7 = customInt7; - } - - @JsonProperty("customInt8") - public Integer getCustomInt8() { - return customInt8; - } - - @JsonProperty("customInt8") - public void setCustomInt8(Integer customInt8) { - this.customInt8 = customInt8; - } - - @JsonProperty("customInt9") - public Integer getCustomInt9() { - return customInt9; - } - - @JsonProperty("customInt9") - public void setCustomInt9(Integer customInt9) { - this.customInt9 = customInt9; - } - - @JsonProperty("customInt10") - public Integer getCustomInt10() { - return customInt10; - } - - @JsonProperty("customInt10") - public void setCustomInt10(Integer customInt10) { - this.customInt10 = customInt10; - } - - @JsonProperty("ancestors") - public OneToMany getAncestors() { - return ancestors; - } - - @JsonProperty("ancestors") - @ReadOnly - public void setAncestors(OneToMany ancestors) { - this.ancestors = ancestors; - } - - @JsonProperty("descendants") - public OneToMany getDescendants() { - return descendants; - } - - @JsonProperty("descendants") - @ReadOnly - public void setDescendants(OneToMany descendants) { - this.descendants = descendants; - } - - @JsonProperty("corporateUsers") - public OneToMany getCorporateUsers() { - return corporateUsers; - } - - @JsonProperty("corporateUsers") - @ReadOnly - public void setCorporateUsers(OneToMany corporateUsers) { - this.corporateUsers = corporateUsers; - } - - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof Branch)) return false; - if (!super.equals(o)) return false; - - Branch branch = (Branch) o; - - if (id != null ? !id.equals(branch.id) : branch.id != null) return false; - if (name != null ? !name.equals(branch.name) : branch.name != null) return false; - if (isDeleted != null ? !isDeleted.equals(branch.isDeleted) : branch.isDeleted != null) return false; - if (parentBranch != null ? !parentBranch.equals(branch.parentBranch) : branch.parentBranch != null) - return false; - if (externalID != null ? !externalID.equals(branch.externalID) : branch.externalID != null) return false; - if (dateAdded != null ? !dateAdded.equals(branch.dateAdded) : branch.dateAdded != null) return false; - if (customText1 != null ? !customText1.equals(branch.customText1) : branch.customText1 != null) return false; - if (customText2 != null ? !customText2.equals(branch.customText2) : branch.customText2 != null) return false; - if (customText3 != null ? !customText3.equals(branch.customText3) : branch.customText3 != null) return false; - if (customText4 != null ? !customText4.equals(branch.customText4) : branch.customText4 != null) return false; - if (customText5 != null ? !customText5.equals(branch.customText5) : branch.customText5 != null) return false; - if (customText6 != null ? !customText6.equals(branch.customText6) : branch.customText6 != null) return false; - if (customText7 != null ? !customText7.equals(branch.customText7) : branch.customText7 != null) return false; - if (customText8 != null ? !customText8.equals(branch.customText8) : branch.customText8 != null) return false; - if (customText9 != null ? !customText9.equals(branch.customText9) : branch.customText9 != null) return false; - if (customText10 != null ? !customText10.equals(branch.customText10) : branch.customText10 != null) - return false; - if (customTextBlock1 != null ? !customTextBlock1.equals(branch.customTextBlock1) : branch.customTextBlock1 != null) - return false; - if (customTextBlock2 != null ? !customTextBlock2.equals(branch.customTextBlock2) : branch.customTextBlock2 != null) - return false; - if (customTextBlock3 != null ? !customTextBlock3.equals(branch.customTextBlock3) : branch.customTextBlock3 != null) - return false; - if (customDate1 != null ? !customDate1.equals(branch.customDate1) : branch.customDate1 != null) return false; - if (customDate2 != null ? !customDate2.equals(branch.customDate2) : branch.customDate2 != null) return false; - if (customDate3 != null ? !customDate3.equals(branch.customDate3) : branch.customDate3 != null) return false; - if (customDate4 != null ? !customDate4.equals(branch.customDate4) : branch.customDate4 != null) return false; - if (customDate5 != null ? !customDate5.equals(branch.customDate5) : branch.customDate5 != null) return false; - if (customDate6 != null ? !customDate6.equals(branch.customDate6) : branch.customDate6 != null) return false; - if (customFloat1 != null ? !customFloat1.equals(branch.customFloat1) : branch.customFloat1 != null) - return false; - if (customFloat2 != null ? !customFloat2.equals(branch.customFloat2) : branch.customFloat2 != null) - return false; - if (customFloat3 != null ? !customFloat3.equals(branch.customFloat3) : branch.customFloat3 != null) - return false; - if (customFloat4 != null ? !customFloat4.equals(branch.customFloat4) : branch.customFloat4 != null) - return false; - if (customFloat5 != null ? !customFloat5.equals(branch.customFloat5) : branch.customFloat5 != null) - return false; - if (customFloat6 != null ? !customFloat6.equals(branch.customFloat6) : branch.customFloat6 != null) - return false; - if (customInt1 != null ? !customInt1.equals(branch.customInt1) : branch.customInt1 != null) return false; - if (customInt2 != null ? !customInt2.equals(branch.customInt2) : branch.customInt2 != null) return false; - if (customInt3 != null ? !customInt3.equals(branch.customInt3) : branch.customInt3 != null) return false; - if (customInt4 != null ? !customInt4.equals(branch.customInt4) : branch.customInt4 != null) return false; - if (customInt5 != null ? !customInt5.equals(branch.customInt5) : branch.customInt5 != null) return false; - if (customInt6 != null ? !customInt6.equals(branch.customInt6) : branch.customInt6 != null) return false; - if (customInt7 != null ? !customInt7.equals(branch.customInt7) : branch.customInt7 != null) return false; - if (customInt8 != null ? !customInt8.equals(branch.customInt8) : branch.customInt8 != null) return false; - if (customInt9 != null ? !customInt9.equals(branch.customInt9) : branch.customInt9 != null) return false; - if (customInt10 != null ? !customInt10.equals(branch.customInt10) : branch.customInt10 != null) return false; - if (ancestors != null ? !ancestors.equals(branch.ancestors) : branch.ancestors != null) return false; - if (descendants != null ? !descendants.equals(branch.descendants) : branch.descendants != null) return false; - return corporateUsers != null ? corporateUsers.equals(branch.corporateUsers) : branch.corporateUsers == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (parentBranch != null ? parentBranch.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (customText1 != null ? customText1.hashCode() : 0); - result = 31 * result + (customText2 != null ? customText2.hashCode() : 0); - result = 31 * result + (customText3 != null ? customText3.hashCode() : 0); - result = 31 * result + (customText4 != null ? customText4.hashCode() : 0); - result = 31 * result + (customText5 != null ? customText5.hashCode() : 0); - result = 31 * result + (customText6 != null ? customText6.hashCode() : 0); - result = 31 * result + (customText7 != null ? customText7.hashCode() : 0); - result = 31 * result + (customText8 != null ? customText8.hashCode() : 0); - result = 31 * result + (customText9 != null ? customText9.hashCode() : 0); - result = 31 * result + (customText10 != null ? customText10.hashCode() : 0); - result = 31 * result + (customTextBlock1 != null ? customTextBlock1.hashCode() : 0); - result = 31 * result + (customTextBlock2 != null ? customTextBlock2.hashCode() : 0); - result = 31 * result + (customTextBlock3 != null ? customTextBlock3.hashCode() : 0); - result = 31 * result + (customDate1 != null ? customDate1.hashCode() : 0); - result = 31 * result + (customDate2 != null ? customDate2.hashCode() : 0); - result = 31 * result + (customDate3 != null ? customDate3.hashCode() : 0); - result = 31 * result + (customDate4 != null ? customDate4.hashCode() : 0); - result = 31 * result + (customDate5 != null ? customDate5.hashCode() : 0); - result = 31 * result + (customDate6 != null ? customDate6.hashCode() : 0); - result = 31 * result + (customFloat1 != null ? customFloat1.hashCode() : 0); - result = 31 * result + (customFloat2 != null ? customFloat2.hashCode() : 0); - result = 31 * result + (customFloat3 != null ? customFloat3.hashCode() : 0); - result = 31 * result + (customFloat4 != null ? customFloat4.hashCode() : 0); - result = 31 * result + (customFloat5 != null ? customFloat5.hashCode() : 0); - result = 31 * result + (customFloat6 != null ? customFloat6.hashCode() : 0); - result = 31 * result + (customInt1 != null ? customInt1.hashCode() : 0); - result = 31 * result + (customInt2 != null ? customInt2.hashCode() : 0); - result = 31 * result + (customInt3 != null ? customInt3.hashCode() : 0); - result = 31 * result + (customInt4 != null ? customInt4.hashCode() : 0); - result = 31 * result + (customInt5 != null ? customInt5.hashCode() : 0); - result = 31 * result + (customInt6 != null ? customInt6.hashCode() : 0); - result = 31 * result + (customInt7 != null ? customInt7.hashCode() : 0); - result = 31 * result + (customInt8 != null ? customInt8.hashCode() : 0); - result = 31 * result + (customInt9 != null ? customInt9.hashCode() : 0); - result = 31 * result + (customInt10 != null ? customInt10.hashCode() : 0); - result = 31 * result + (ancestors != null ? ancestors.hashCode() : 0); - result = 31 * result + (descendants != null ? descendants.hashCode() : 0); - result = 31 * result + (corporateUsers != null ? corporateUsers.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder sb = new StringBuilder(getClass().getName()); - sb.append(" { "); - if(id != null){ - sb.append(lbc + " id="); - sb.append(id); - } - if(name != null){ - sb.append(lbc + " name="); - sb.append(name); - } - if(isDeleted != null){ - sb.append(lbc + " isDeleted="); - sb.append(isDeleted); - } - if(parentBranch != null){ - sb.append(lbc + " parentBranch="); - sb.append(parentBranch.toStringNonNull()); - } - if(externalID != null){ - sb.append(lbc + " externalID="); - sb.append(externalID); - } - if(dateAdded != null){ - sb.append(lbc + " dateAdded="); - sb.append(dateAdded); - } - if(customText1 != null){ - sb.append(lbc + " customText1="); - sb.append(customText1); - } - if(customText2 != null){ - sb.append(lbc + " customText2="); - sb.append(customText2); - } - if(customText3 != null){ - sb.append(lbc + " customText3="); - sb.append(customText3); - } - if(customText4 != null){ - sb.append(lbc + " customText4="); - sb.append(customText4); - } - if(customText5 != null){ - sb.append(lbc + " customText5="); - sb.append(customText5); - } - if(customText6 != null){ - sb.append(lbc + " customText6="); - sb.append(customText6); - } - if(customText7 != null){ - sb.append(lbc + " customText7="); - sb.append(customText7); - } - if(customText8 != null){ - sb.append(lbc + " customText8="); - sb.append(customText8); - } - if(customText9 != null){ - sb.append(lbc + " customText9="); - sb.append(customText9); - } - if(customText10 != null){ - sb.append(lbc + " customText10="); - sb.append(customText10); - } - if(customTextBlock1 != null){ - sb.append(lbc + " customTextBlock1="); - sb.append(customTextBlock1); - } - if(customTextBlock2 != null){ - sb.append(lbc + " customTextBlock2="); - sb.append(customTextBlock2); - } - if(customTextBlock3 != null){ - sb.append(lbc + " customTextBlock3="); - sb.append(customTextBlock3); - } - if(customDate1 != null){ - sb.append(lbc + " customDate1="); - sb.append(customDate1); - } - if(customDate2 != null){ - sb.append(lbc + " customDate2="); - sb.append(customDate2); - } - if(customDate3 != null){ - sb.append(lbc + " customDate3="); - sb.append(customDate3); - } - if(customDate4 != null){ - sb.append(lbc + " customDate4="); - sb.append(customDate4); - } - if(customDate5 != null){ - sb.append(lbc + " customDate5="); - sb.append(customDate5); - } - if(customDate6 != null){ - sb.append(lbc + " customDate6="); - sb.append(customDate6); - } - if(customFloat1 != null){ - sb.append(lbc + " customFloat1="); - sb.append(customFloat1); - } - if(customFloat2 != null){ - sb.append(lbc + " customFloat2="); - sb.append(customFloat2); - } - if(customFloat3 != null){ - sb.append(lbc + " customFloat3="); - sb.append(customFloat3); - } - if(customFloat4 != null){ - sb.append(lbc + " customFloat4="); - sb.append(customFloat4); - } - if(customFloat5 != null){ - sb.append(lbc + " customFloat5="); - sb.append(customFloat5); - } - if(customFloat6 != null){ - sb.append(lbc + " customFloat6="); - sb.append(customFloat6); - } - if(customInt1 != null){ - sb.append(lbc + " customInt1="); - sb.append(customInt1); - } - if(customInt2 != null){ - sb.append(lbc + " customInt2="); - sb.append(customInt2); - } - if(customInt3 != null){ - sb.append(lbc + " customInt3="); - sb.append(customInt3); - } - if(customInt4 != null){ - sb.append(lbc + " customInt4="); - sb.append(customInt4); - } - if(customInt5 != null){ - sb.append(lbc + " customInt5="); - sb.append(customInt5); - } - if(customInt6 != null){ - sb.append(lbc + " customInt6="); - sb.append(customInt6); - } - if(customInt7 != null){ - sb.append(lbc + " customInt7="); - sb.append(customInt7); - } - if(customInt8 != null){ - sb.append(lbc + " customInt8="); - sb.append(customInt8); - } - if(customInt9 != null){ - sb.append(lbc + " customInt9="); - sb.append(customInt9); - } - if(customInt10 != null){ - sb.append(lbc + " customInt10="); - sb.append(customInt10); - } - if(ancestors != null){ - sb.append(lbc + " ancestors="); - sb.append(ancestors.toStringNonNull()); - } - if(descendants != null){ - sb.append(lbc + " descendants="); - sb.append(descendants.toStringNonNull()); - } - if(corporateUsers != null){ - sb.append(lbc + " corporateUsers="); - sb.append(corporateUsers.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = lbc + " "; - StringBuilder sb =new StringBuilder(getClass().getName()); - sb.append(" { "); - if(includeLineBreaks) - sb.append("\n"); - if(id != null){ - sb.append(lbc + " id="); - sb.append(id); - } - if(name != null){ - sb.append(lbc + " name="); - sb.append(name); - } - if(isDeleted != null){ - sb.append(lbc + " isDeleted="); - sb.append(isDeleted); - } - if(parentBranch != null){ - sb.append(lbc + " parentBranch="); - sb.append(parentBranch.toStringNonNull(includeLineBreaks)); - } - if(externalID != null){ - sb.append(lbc + " externalID="); - sb.append(externalID); - } - if(dateAdded != null){ - sb.append(lbc + " dateAdded="); - sb.append(dateAdded); - } - if(customText1 != null){ - sb.append(lbc + " customText1="); - sb.append(customText1); - } - if(customText2 != null){ - sb.append(lbc + " customText2="); - sb.append(customText2); - } - if(customText3 != null){ - sb.append(lbc + " customText3="); - sb.append(customText3); - } - if(customText4 != null){ - sb.append(lbc + " customText4="); - sb.append(customText4); - } - if(customText5 != null){ - sb.append(lbc + " customText5="); - sb.append(customText5); - } - if(customText6 != null){ - sb.append(lbc + " customText6="); - sb.append(customText6); - } - if(customText7 != null){ - sb.append(lbc + " customText7="); - sb.append(customText7); - } - if(customText8 != null){ - sb.append(lbc + " customText8="); - sb.append(customText8); - } - if(customText9 != null){ - sb.append(lbc + " customText9="); - sb.append(customText9); - } - if(customText10 != null){ - sb.append(lbc + " customText10="); - sb.append(customText10); - } - if(customTextBlock1 != null){ - sb.append(lbc + " customTextBlock1="); - sb.append(customTextBlock1); - } - if(customTextBlock2 != null){ - sb.append(lbc + " customTextBlock2="); - sb.append(customTextBlock2); - } - if(customTextBlock3 != null){ - sb.append(lbc + " customTextBlock3="); - sb.append(customTextBlock3); - } - if(customDate1 != null){ - sb.append(lbc + " customDate1="); - sb.append(customDate1); - } - if(customDate2 != null){ - sb.append(lbc + " customDate2="); - sb.append(customDate2); - } - if(customDate3 != null){ - sb.append(lbc + " customDate3="); - sb.append(customDate3); - } - if(customDate4 != null){ - sb.append(lbc + " customDate4="); - sb.append(customDate4); - } - if(customDate5 != null){ - sb.append(lbc + " customDate5="); - sb.append(customDate5); - } - if(customDate6 != null){ - sb.append(lbc + " customDate6="); - sb.append(customDate6); - } - if(customFloat1 != null){ - sb.append(lbc + " customFloat1="); - sb.append(customFloat1); - } - if(customFloat2 != null){ - sb.append(lbc + " customFloat2="); - sb.append(customFloat2); - } - if(customFloat3 != null){ - sb.append(lbc + " customFloat3="); - sb.append(customFloat3); - } - if(customFloat4 != null){ - sb.append(lbc + " customFloat4="); - sb.append(customFloat4); - } - if(customFloat5 != null){ - sb.append(lbc + " customFloat5="); - sb.append(customFloat5); - } - if(customFloat6 != null){ - sb.append(lbc + " customFloat6="); - sb.append(customFloat6); - } - if(customInt1 != null){ - sb.append(lbc + " customInt1="); - sb.append(customInt1); - } - if(customInt2 != null){ - sb.append(lbc + " customInt2="); - sb.append(customInt2); - } - if(customInt3 != null){ - sb.append(lbc + " customInt3="); - sb.append(customInt3); - } - if(customInt4 != null){ - sb.append(lbc + " customInt4="); - sb.append(customInt4); - } - if(customInt5 != null){ - sb.append(lbc + " customInt5="); - sb.append(customInt5); - } - if(customInt6 != null){ - sb.append(lbc + " customInt6="); - sb.append(customInt6); - } - if(customInt7 != null){ - sb.append(lbc + " customInt7="); - sb.append(customInt7); - } - if(customInt8 != null){ - sb.append(lbc + " customInt8="); - sb.append(customInt8); - } - if(customInt9 != null){ - sb.append(lbc + " customInt9="); - sb.append(customInt9); - } - if(customInt10 != null){ - sb.append(lbc + " customInt10="); - sb.append(customInt10); - } - if(ancestors != null){ - sb.append(lbc + " ancestors="); - sb.append(ancestors.toStringNonNull(includeLineBreaks)); - } - if(descendants != null){ - sb.append(lbc + " descendants="); - sb.append(descendants.toStringNonNull(includeLineBreaks)); - } - if(corporateUsers != null){ - sb.append(lbc + " corporateUsers="); - sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - StringBuilder sb =new StringBuilder(getClass().getName()); - sb.append(" { "); - sb.append("\n id="); - sb.append(id); - sb.append(",\n name="); - sb.append(name); - sb.append(",\n isDeleted="); - sb.append(isDeleted); - sb.append(",\n parentBranch="); - sb.append(parentBranch); - sb.append(",\n externalID="); - sb.append(externalID); - sb.append(",\n dateAdded="); - sb.append(dateAdded); - sb.append(",\n customText1="); - sb.append(customText1); - sb.append(",\n customText2="); - sb.append(customText2); - sb.append(",\n customText3="); - sb.append(customText3); - sb.append(",\n customText4="); - sb.append(customText4); - sb.append(",\n customText5="); - sb.append(customText5); - sb.append(",\n customText6="); - sb.append(customText6); - sb.append(",\n customText7="); - sb.append(customText7); - sb.append(",\n customText8="); - sb.append(customText8); - sb.append(",\n customText9="); - sb.append(customText9); - sb.append(",\n customText10="); - sb.append(customText10); - sb.append(",\n customTextBlock1="); - sb.append(customTextBlock1); - sb.append(",\n customTextBlock2="); - sb.append(customTextBlock2); - sb.append(",\n customTextBlock3="); - sb.append(customTextBlock3); - sb.append(",\n customDate1="); - sb.append(customDate1); - sb.append(",\n customDate2="); - sb.append(customDate2); - sb.append(",\n customDate3="); - sb.append(customDate3); - sb.append(",\n customDate4="); - sb.append(customDate4); - sb.append(",\n customDate5="); - sb.append(customDate5); - sb.append(",\n customDate6="); - sb.append(customDate6); - sb.append(",\n customFloat1="); - sb.append(customFloat1); - sb.append(",\n customFloat2="); - sb.append(customFloat2); - sb.append(",\n customFloat3="); - sb.append(customFloat3); - sb.append(",\n customFloat4="); - sb.append(customFloat4); - sb.append(",\n customFloat5="); - sb.append(customFloat5); - sb.append(",\n customFloat6="); - sb.append(customFloat6); - sb.append(",\n customInt1="); - sb.append(customInt1); - sb.append(",\n customInt2="); - sb.append(customInt2); - sb.append(",\n customInt3="); - sb.append(customInt3); - sb.append(",\n customInt4="); - sb.append(customInt4); - sb.append(",\n customInt5="); - sb.append(customInt5); - sb.append(",\n customInt6="); - sb.append(customInt6); - sb.append(",\n customInt7="); - sb.append(customInt7); - sb.append(",\n customInt8="); - sb.append(customInt8); - sb.append(",\n customInt9="); - sb.append(customInt9); - sb.append(",\n customInt10="); - sb.append(customInt10); - sb.append(",\n ancestors="); - sb.append(ancestors); - sb.append(",\n descendants="); - sb.append(descendants); - sb.append(",\n corporateUsers="); - sb.append(corporateUsers); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import org.joda.time.DateTime; + +import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.BaseCustomFields; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; + +/** + * Created by john.sullivan on 10/7/2017. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "name", "isDeleted", "parentBranch", "externalID", "dateAdded", "customText1", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customText10", "customTextBlock1", + "customTextBlock2", "customTextBlock3", "customDate1", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customFloat1", "customFloat2", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customInt1", "customInt2", "customInt3", + "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customInt10", "ancestors", "descendants", "corporateUsers"}) +public class Branch extends BaseCustomFields implements AllRecordsEntity, CreateEntity, UpdateEntity, QueryEntity, SoftDeleteEntity, AssociationEntity { + + private Integer id; + + private String name; + + private Boolean isDeleted; + + private Branch parentBranch; + + private String externalID; + + private DateTime dateAdded; + + private String customText1; + + private String customText2; + + private String customText3; + + private String customText4; + + private String customText5; + + private String customText6; + + private String customText7; + + private String customText8; + + private String customText9; + + private String customText10; + + private String customTextBlock1; + + private String customTextBlock2; + + private String customTextBlock3; + + private DateTime customDate1; + + private DateTime customDate2; + + private DateTime customDate3; + + private DateTime customDate4; + + private DateTime customDate5; + + private DateTime customDate6; + + private BigDecimal customFloat1; + + private BigDecimal customFloat2; + + private BigDecimal customFloat3; + + private BigDecimal customFloat4; + + private BigDecimal customFloat5; + + private BigDecimal customFloat6; + + private Integer customInt1; + + private Integer customInt2; + + private Integer customInt3; + + private Integer customInt4; + + private Integer customInt5; + + private Integer customInt6; + + private Integer customInt7; + + private Integer customInt8; + + private Integer customInt9; + + private Integer customInt10; + + private OneToMany ancestors; + + private OneToMany descendants; + + private OneToMany corporateUsers; + + @JsonProperty("id") + @Override + public Integer getId() { + return id; + } + + @JsonProperty("id") + @Override + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @JsonProperty("isDeleted") + @Override + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("parentBranch") + public Branch getParentBranch() { + return parentBranch; + } + + @JsonProperty("parentBranch") + public void setParentBranch(Branch parentBranch) { + this.parentBranch = parentBranch; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonProperty("externalID") + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("customText1") + public String getCustomText1() { + return customText1; + } + + @JsonProperty("customText1") + public void setCustomText1(String customText1) { + this.customText1 = customText1; + } + + @JsonProperty("customText2") + public String getCustomText2() { + return customText2; + } + + @JsonProperty("customText2") + public void setCustomText2(String customText2) { + this.customText2 = customText2; + } + + @JsonProperty("customText3") + public String getCustomText3() { + return customText3; + } + + @JsonProperty("customText3") + public void setCustomText3(String customText3) { + this.customText3 = customText3; + } + + @JsonProperty("customText4") + public String getCustomText4() { + return customText4; + } + + @JsonProperty("customText4") + public void setCustomText4(String customText4) { + this.customText4 = customText4; + } + + @JsonProperty("customText5") + public String getCustomText5() { + return customText5; + } + + @JsonProperty("customText5") + public void setCustomText5(String customText5) { + this.customText5 = customText5; + } + + @JsonProperty("customText6") + public String getCustomText6() { + return customText6; + } + + @JsonProperty("customText6") + public void setCustomText6(String customText6) { + this.customText6 = customText6; + } + + @JsonProperty("customText7") + public String getCustomText7() { + return customText7; + } + + @JsonProperty("customText7") + public void setCustomText7(String customText7) { + this.customText7 = customText7; + } + + @JsonProperty("customText8") + public String getCustomText8() { + return customText8; + } + + @JsonProperty("customText8") + public void setCustomText8(String customText8) { + this.customText8 = customText8; + } + + @JsonProperty("customText9") + public String getCustomText9() { + return customText9; + } + + @JsonProperty("customText9") + public void setCustomText9(String customText9) { + this.customText9 = customText9; + } + + @JsonProperty("customText10") + public String getCustomText10() { + return customText10; + } + + @JsonProperty("customText10") + public void setCustomText10(String customText10) { + this.customText10 = customText10; + } + + @JsonProperty("customTextBlock1") + public String getCustomTextBlock1() { + return customTextBlock1; + } + + @JsonProperty("customTextBlock1") + public void setCustomTextBlock1(String customTextBlock1) { + this.customTextBlock1 = customTextBlock1; + } + + @JsonProperty("customTextBlock2") + public String getCustomTextBlock2() { + return customTextBlock2; + } + + @JsonProperty("customTextBlock2") + public void setCustomTextBlock2(String customTextBlock2) { + this.customTextBlock2 = customTextBlock2; + } + + @JsonProperty("customTextBlock3") + public String getCustomTextBlock3() { + return customTextBlock3; + } + + @JsonProperty("customTextBlock3") + public void setCustomTextBlock3(String customTextBlock3) { + this.customTextBlock3 = customTextBlock3; + } + + @JsonProperty("customDate1") + public DateTime getCustomDate1() { + return customDate1; + } + + @JsonProperty("customDate1") + public void setCustomDate1(DateTime customDate1) { + this.customDate1 = customDate1; + } + + @JsonProperty("customDate2") + public DateTime getCustomDate2() { + return customDate2; + } + + @JsonProperty("customDate2") + public void setCustomDate2(DateTime customDate2) { + this.customDate2 = customDate2; + } + + @JsonProperty("customDate3") + public DateTime getCustomDate3() { + return customDate3; + } + + @JsonProperty("customDate3") + public void setCustomDate3(DateTime customDate3) { + this.customDate3 = customDate3; + } + + @JsonProperty("customDate4") + public DateTime getCustomDate4() { + return customDate4; + } + + @JsonProperty("customDate4") + public void setCustomDate4(DateTime customDate4) { + this.customDate4 = customDate4; + } + + @JsonProperty("customDate5") + public DateTime getCustomDate5() { + return customDate5; + } + + @JsonProperty("customDate5") + public void setCustomDate5(DateTime customDate5) { + this.customDate5 = customDate5; + } + + @JsonProperty("customDate6") + public DateTime getCustomDate6() { + return customDate6; + } + + @JsonProperty("customDate6") + public void setCustomDate6(DateTime customDate6) { + this.customDate6 = customDate6; + } + + @JsonProperty("customFloat1") + public BigDecimal getCustomFloat1() { + return customFloat1; + } + + @JsonProperty("customFloat1") + public void setCustomFloat1(BigDecimal customFloat1) { + this.customFloat1 = customFloat1; + } + + @JsonProperty("customFloat2") + public BigDecimal getCustomFloat2() { + return customFloat2; + } + + @JsonProperty("customFloat2") + public void setCustomFloat2(BigDecimal customFloat2) { + this.customFloat2 = customFloat2; + } + + @JsonProperty("customFloat3") + public BigDecimal getCustomFloat3() { + return customFloat3; + } + + @JsonProperty("customFloat3") + public void setCustomFloat3(BigDecimal customFloat3) { + this.customFloat3 = customFloat3; + } + + @JsonProperty("customFloat4") + public BigDecimal getCustomFloat4() { + return customFloat4; + } + + @JsonProperty("customFloat4") + public void setCustomFloat4(BigDecimal customFloat4) { + this.customFloat4 = customFloat4; + } + + @JsonProperty("customFloat5") + public BigDecimal getCustomFloat5() { + return customFloat5; + } + + @JsonProperty("customFloat5") + public void setCustomFloat5(BigDecimal customFloat5) { + this.customFloat5 = customFloat5; + } + + @JsonProperty("customFloat6") + public BigDecimal getCustomFloat6() { + return customFloat6; + } + + @JsonProperty("customFloat6") + public void setCustomFloat6(BigDecimal customFloat6) { + this.customFloat6 = customFloat6; + } + + @JsonProperty("customInt1") + public Integer getCustomInt1() { + return customInt1; + } + + @JsonProperty("customInt1") + public void setCustomInt1(Integer customInt1) { + this.customInt1 = customInt1; + } + + @JsonProperty("customInt2") + public Integer getCustomInt2() { + return customInt2; + } + + @JsonProperty("customInt2") + public void setCustomInt2(Integer customInt2) { + this.customInt2 = customInt2; + } + + @JsonProperty("customInt3") + public Integer getCustomInt3() { + return customInt3; + } + + @JsonProperty("customInt3") + public void setCustomInt3(Integer customInt3) { + this.customInt3 = customInt3; + } + + @JsonProperty("customInt4") + public Integer getCustomInt4() { + return customInt4; + } + + @JsonProperty("customInt4") + public void setCustomInt4(Integer customInt4) { + this.customInt4 = customInt4; + } + + @JsonProperty("customInt5") + public Integer getCustomInt5() { + return customInt5; + } + + @JsonProperty("customInt5") + public void setCustomInt5(Integer customInt5) { + this.customInt5 = customInt5; + } + + @JsonProperty("customInt6") + public Integer getCustomInt6() { + return customInt6; + } + + @JsonProperty("customInt6") + public void setCustomInt6(Integer customInt6) { + this.customInt6 = customInt6; + } + + @JsonProperty("customInt7") + public Integer getCustomInt7() { + return customInt7; + } + + @JsonProperty("customInt7") + public void setCustomInt7(Integer customInt7) { + this.customInt7 = customInt7; + } + + @JsonProperty("customInt8") + public Integer getCustomInt8() { + return customInt8; + } + + @JsonProperty("customInt8") + public void setCustomInt8(Integer customInt8) { + this.customInt8 = customInt8; + } + + @JsonProperty("customInt9") + public Integer getCustomInt9() { + return customInt9; + } + + @JsonProperty("customInt9") + public void setCustomInt9(Integer customInt9) { + this.customInt9 = customInt9; + } + + @JsonProperty("customInt10") + public Integer getCustomInt10() { + return customInt10; + } + + @JsonProperty("customInt10") + public void setCustomInt10(Integer customInt10) { + this.customInt10 = customInt10; + } + + @JsonProperty("ancestors") + public OneToMany getAncestors() { + return ancestors; + } + + @JsonProperty("ancestors") + @ReadOnly + public void setAncestors(OneToMany ancestors) { + this.ancestors = ancestors; + } + + @JsonProperty("descendants") + public OneToMany getDescendants() { + return descendants; + } + + @JsonProperty("descendants") + @ReadOnly + public void setDescendants(OneToMany descendants) { + this.descendants = descendants; + } + + @JsonProperty("corporateUsers") + public OneToMany getCorporateUsers() { + return corporateUsers; + } + + @JsonProperty("corporateUsers") + @ReadOnly + public void setCorporateUsers(OneToMany corporateUsers) { + this.corporateUsers = corporateUsers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (!(o instanceof Branch)) return false; + if (!super.equals(o)) return false; + + Branch branch = (Branch) o; + + if (id != null ? !id.equals(branch.id) : branch.id != null) return false; + if (name != null ? !name.equals(branch.name) : branch.name != null) return false; + if (isDeleted != null ? !isDeleted.equals(branch.isDeleted) : branch.isDeleted != null) return false; + if (parentBranch != null ? !parentBranch.equals(branch.parentBranch) : branch.parentBranch != null) + return false; + if (externalID != null ? !externalID.equals(branch.externalID) : branch.externalID != null) return false; + if (dateAdded != null ? !dateAdded.equals(branch.dateAdded) : branch.dateAdded != null) return false; + if (customText1 != null ? !customText1.equals(branch.customText1) : branch.customText1 != null) return false; + if (customText2 != null ? !customText2.equals(branch.customText2) : branch.customText2 != null) return false; + if (customText3 != null ? !customText3.equals(branch.customText3) : branch.customText3 != null) return false; + if (customText4 != null ? !customText4.equals(branch.customText4) : branch.customText4 != null) return false; + if (customText5 != null ? !customText5.equals(branch.customText5) : branch.customText5 != null) return false; + if (customText6 != null ? !customText6.equals(branch.customText6) : branch.customText6 != null) return false; + if (customText7 != null ? !customText7.equals(branch.customText7) : branch.customText7 != null) return false; + if (customText8 != null ? !customText8.equals(branch.customText8) : branch.customText8 != null) return false; + if (customText9 != null ? !customText9.equals(branch.customText9) : branch.customText9 != null) return false; + if (customText10 != null ? !customText10.equals(branch.customText10) : branch.customText10 != null) + return false; + if (customTextBlock1 != null ? !customTextBlock1.equals(branch.customTextBlock1) : branch.customTextBlock1 != null) + return false; + if (customTextBlock2 != null ? !customTextBlock2.equals(branch.customTextBlock2) : branch.customTextBlock2 != null) + return false; + if (customTextBlock3 != null ? !customTextBlock3.equals(branch.customTextBlock3) : branch.customTextBlock3 != null) + return false; + if (customDate1 != null ? !customDate1.equals(branch.customDate1) : branch.customDate1 != null) return false; + if (customDate2 != null ? !customDate2.equals(branch.customDate2) : branch.customDate2 != null) return false; + if (customDate3 != null ? !customDate3.equals(branch.customDate3) : branch.customDate3 != null) return false; + if (customDate4 != null ? !customDate4.equals(branch.customDate4) : branch.customDate4 != null) return false; + if (customDate5 != null ? !customDate5.equals(branch.customDate5) : branch.customDate5 != null) return false; + if (customDate6 != null ? !customDate6.equals(branch.customDate6) : branch.customDate6 != null) return false; + if (customFloat1 != null ? !customFloat1.equals(branch.customFloat1) : branch.customFloat1 != null) + return false; + if (customFloat2 != null ? !customFloat2.equals(branch.customFloat2) : branch.customFloat2 != null) + return false; + if (customFloat3 != null ? !customFloat3.equals(branch.customFloat3) : branch.customFloat3 != null) + return false; + if (customFloat4 != null ? !customFloat4.equals(branch.customFloat4) : branch.customFloat4 != null) + return false; + if (customFloat5 != null ? !customFloat5.equals(branch.customFloat5) : branch.customFloat5 != null) + return false; + if (customFloat6 != null ? !customFloat6.equals(branch.customFloat6) : branch.customFloat6 != null) + return false; + if (customInt1 != null ? !customInt1.equals(branch.customInt1) : branch.customInt1 != null) return false; + if (customInt2 != null ? !customInt2.equals(branch.customInt2) : branch.customInt2 != null) return false; + if (customInt3 != null ? !customInt3.equals(branch.customInt3) : branch.customInt3 != null) return false; + if (customInt4 != null ? !customInt4.equals(branch.customInt4) : branch.customInt4 != null) return false; + if (customInt5 != null ? !customInt5.equals(branch.customInt5) : branch.customInt5 != null) return false; + if (customInt6 != null ? !customInt6.equals(branch.customInt6) : branch.customInt6 != null) return false; + if (customInt7 != null ? !customInt7.equals(branch.customInt7) : branch.customInt7 != null) return false; + if (customInt8 != null ? !customInt8.equals(branch.customInt8) : branch.customInt8 != null) return false; + if (customInt9 != null ? !customInt9.equals(branch.customInt9) : branch.customInt9 != null) return false; + if (customInt10 != null ? !customInt10.equals(branch.customInt10) : branch.customInt10 != null) return false; + if (ancestors != null ? !ancestors.equals(branch.ancestors) : branch.ancestors != null) return false; + if (descendants != null ? !descendants.equals(branch.descendants) : branch.descendants != null) return false; + return corporateUsers != null ? corporateUsers.equals(branch.corporateUsers) : branch.corporateUsers == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (parentBranch != null ? parentBranch.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (customText1 != null ? customText1.hashCode() : 0); + result = 31 * result + (customText2 != null ? customText2.hashCode() : 0); + result = 31 * result + (customText3 != null ? customText3.hashCode() : 0); + result = 31 * result + (customText4 != null ? customText4.hashCode() : 0); + result = 31 * result + (customText5 != null ? customText5.hashCode() : 0); + result = 31 * result + (customText6 != null ? customText6.hashCode() : 0); + result = 31 * result + (customText7 != null ? customText7.hashCode() : 0); + result = 31 * result + (customText8 != null ? customText8.hashCode() : 0); + result = 31 * result + (customText9 != null ? customText9.hashCode() : 0); + result = 31 * result + (customText10 != null ? customText10.hashCode() : 0); + result = 31 * result + (customTextBlock1 != null ? customTextBlock1.hashCode() : 0); + result = 31 * result + (customTextBlock2 != null ? customTextBlock2.hashCode() : 0); + result = 31 * result + (customTextBlock3 != null ? customTextBlock3.hashCode() : 0); + result = 31 * result + (customDate1 != null ? customDate1.hashCode() : 0); + result = 31 * result + (customDate2 != null ? customDate2.hashCode() : 0); + result = 31 * result + (customDate3 != null ? customDate3.hashCode() : 0); + result = 31 * result + (customDate4 != null ? customDate4.hashCode() : 0); + result = 31 * result + (customDate5 != null ? customDate5.hashCode() : 0); + result = 31 * result + (customDate6 != null ? customDate6.hashCode() : 0); + result = 31 * result + (customFloat1 != null ? customFloat1.hashCode() : 0); + result = 31 * result + (customFloat2 != null ? customFloat2.hashCode() : 0); + result = 31 * result + (customFloat3 != null ? customFloat3.hashCode() : 0); + result = 31 * result + (customFloat4 != null ? customFloat4.hashCode() : 0); + result = 31 * result + (customFloat5 != null ? customFloat5.hashCode() : 0); + result = 31 * result + (customFloat6 != null ? customFloat6.hashCode() : 0); + result = 31 * result + (customInt1 != null ? customInt1.hashCode() : 0); + result = 31 * result + (customInt2 != null ? customInt2.hashCode() : 0); + result = 31 * result + (customInt3 != null ? customInt3.hashCode() : 0); + result = 31 * result + (customInt4 != null ? customInt4.hashCode() : 0); + result = 31 * result + (customInt5 != null ? customInt5.hashCode() : 0); + result = 31 * result + (customInt6 != null ? customInt6.hashCode() : 0); + result = 31 * result + (customInt7 != null ? customInt7.hashCode() : 0); + result = 31 * result + (customInt8 != null ? customInt8.hashCode() : 0); + result = 31 * result + (customInt9 != null ? customInt9.hashCode() : 0); + result = 31 * result + (customInt10 != null ? customInt10.hashCode() : 0); + result = 31 * result + (ancestors != null ? ancestors.hashCode() : 0); + result = 31 * result + (descendants != null ? descendants.hashCode() : 0); + result = 31 * result + (corporateUsers != null ? corporateUsers.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder sb = new StringBuilder(getClass().getName()); + sb.append(" { "); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + if(customText1 != null){ + sb.append(lbc + " customText1="); + sb.append(customText1); + } + if(customText2 != null){ + sb.append(lbc + " customText2="); + sb.append(customText2); + } + if(customText3 != null){ + sb.append(lbc + " customText3="); + sb.append(customText3); + } + if(customText4 != null){ + sb.append(lbc + " customText4="); + sb.append(customText4); + } + if(customText5 != null){ + sb.append(lbc + " customText5="); + sb.append(customText5); + } + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull()); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull()); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = lbc + " "; + StringBuilder sb =new StringBuilder(getClass().getName()); + sb.append(" { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + if(customText1 != null){ + sb.append(lbc + " customText1="); + sb.append(customText1); + } + if(customText2 != null){ + sb.append(lbc + " customText2="); + sb.append(customText2); + } + if(customText3 != null){ + sb.append(lbc + " customText3="); + sb.append(customText3); + } + if(customText4 != null){ + sb.append(lbc + " customText4="); + sb.append(customText4); + } + if(customText5 != null){ + sb.append(lbc + " customText5="); + sb.append(customText5); + } + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull(includeLineBreaks)); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull(includeLineBreaks)); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + StringBuilder sb =new StringBuilder(getClass().getName()); + sb.append(" { "); + sb.append("\n id="); + sb.append(id); + sb.append(",\n name="); + sb.append(name); + sb.append(",\n isDeleted="); + sb.append(isDeleted); + sb.append(",\n parentBranch="); + sb.append(parentBranch); + sb.append(",\n externalID="); + sb.append(externalID); + sb.append(",\n dateAdded="); + sb.append(dateAdded); + sb.append(",\n customText1="); + sb.append(customText1); + sb.append(",\n customText2="); + sb.append(customText2); + sb.append(",\n customText3="); + sb.append(customText3); + sb.append(",\n customText4="); + sb.append(customText4); + sb.append(",\n customText5="); + sb.append(customText5); + sb.append(",\n customText6="); + sb.append(customText6); + sb.append(",\n customText7="); + sb.append(customText7); + sb.append(",\n customText8="); + sb.append(customText8); + sb.append(",\n customText9="); + sb.append(customText9); + sb.append(",\n customText10="); + sb.append(customText10); + sb.append(",\n customTextBlock1="); + sb.append(customTextBlock1); + sb.append(",\n customTextBlock2="); + sb.append(customTextBlock2); + sb.append(",\n customTextBlock3="); + sb.append(customTextBlock3); + sb.append(",\n customDate1="); + sb.append(customDate1); + sb.append(",\n customDate2="); + sb.append(customDate2); + sb.append(",\n customDate3="); + sb.append(customDate3); + sb.append(",\n customDate4="); + sb.append(customDate4); + sb.append(",\n customDate5="); + sb.append(customDate5); + sb.append(",\n customDate6="); + sb.append(customDate6); + sb.append(",\n customFloat1="); + sb.append(customFloat1); + sb.append(",\n customFloat2="); + sb.append(customFloat2); + sb.append(",\n customFloat3="); + sb.append(customFloat3); + sb.append(",\n customFloat4="); + sb.append(customFloat4); + sb.append(",\n customFloat5="); + sb.append(customFloat5); + sb.append(",\n customFloat6="); + sb.append(customFloat6); + sb.append(",\n customInt1="); + sb.append(customInt1); + sb.append(",\n customInt2="); + sb.append(customInt2); + sb.append(",\n customInt3="); + sb.append(customInt3); + sb.append(",\n customInt4="); + sb.append(customInt4); + sb.append(",\n customInt5="); + sb.append(customInt5); + sb.append(",\n customInt6="); + sb.append(customInt6); + sb.append(",\n customInt7="); + sb.append(customInt7); + sb.append(",\n customInt8="); + sb.append(customInt8); + sb.append(",\n customInt9="); + sb.append(customInt9); + sb.append(",\n customInt10="); + sb.append(customInt10); + sb.append(",\n ancestors="); + sb.append(ancestors); + sb.append(",\n descendants="); + sb.append(descendants); + sb.append(",\n corporateUsers="); + sb.append(corporateUsers); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java index 9e5c8858..b626a012 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java @@ -1,168 +1,168 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import javax.validation.constraints.Size; - -import org.joda.time.DateTime; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "dateAdded", "name" }) -public class BusinessSector extends AbstractEntity implements QueryEntity, AllRecordsEntity { - - private Integer id; - - private DateTime dateAdded; - - @Size(max = 100) - private String name; - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((dateAdded == null) ? 0 : dateAdded.hashCode()); - result = prime * result + ((id == null) ? 0 : id.hashCode()); - result = prime * result + ((name == null) ? 0 : name.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - BusinessSector other = (BusinessSector) obj; - if (dateAdded == null) { - if (other.dateAdded != null) - return false; - } else if (!dateAdded.isEqual(other.dateAdded)) - return false; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - return true; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - if(id != null){ - builder.append(lbc + "id="); - builder.append(id); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(name != null){ - builder.append(lbc + "name="); - builder.append(name); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - builder.append("}"); - return builder.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - if(includeLineBreaks) - builder.append("\n"); - if(id != null){ - builder.append(lbc + "id="); - builder.append(id); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(name != null){ - builder.append(lbc + "name="); - builder.append(name); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - if(includeLineBreaks) - builder.append("\n"); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - builder.append("\nid="); - builder.append(id); - builder.append(", \ndateAdded="); - builder.append(dateAdded); - builder.append(", \nname="); - builder.append(name); - builder.append(", \nadditionalProperties="); - builder.append(this.getAdditionalProperties()); - builder.append("\n}"); - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.core.standard; + +import javax.validation.constraints.Size; + +import org.joda.time.DateTime; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "dateAdded", "name" }) +public class BusinessSector extends AbstractEntity implements QueryEntity, AllRecordsEntity { + + private Integer id; + + private DateTime dateAdded; + + @Size(max = 100) + private String name; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((dateAdded == null) ? 0 : dateAdded.hashCode()); + result = prime * result + ((id == null) ? 0 : id.hashCode()); + result = prime * result + ((name == null) ? 0 : name.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + BusinessSector other = (BusinessSector) obj; + if (dateAdded == null) { + if (other.dateAdded != null) + return false; + } else if (!dateAdded.isEqual(other.dateAdded)) + return false; + if (id == null) { + if (other.id != null) + return false; + } else if (!id.equals(other.id)) + return false; + if (name == null) { + if (other.name != null) + return false; + } else if (!name.equals(other.name)) + return false; + return true; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(getClass().getName()); + builder.append(" {"); + builder.append("\nid="); + builder.append(id); + builder.append(", \ndateAdded="); + builder.append(dateAdded); + builder.append(", \nname="); + builder.append(name); + builder.append(", \nadditionalProperties="); + builder.append(this.getAdditionalProperties()); + builder.append("\n}"); + return builder.toString(); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java index 86e5322f..3f166357 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java @@ -1,3358 +1,3358 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import java.math.BigDecimal; - -import javax.validation.constraints.Size; - -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsF; -import org.hibernate.validator.constraints.Email; -import org.joda.time.DateTime; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.response.file.standard.StandardFileAttachment; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "canEnterTime", "categories", "category", "certificationList", "certifications", - "clientCorporationBlackList", "clientCorporationWhiteList", "comments", "companyName", "companyURL", "customDate1", "customDate10", - "customDate11", "customDate12", "customDate13","customDate2", "customDate3", "customDate4", "customDate5", "customDate6", "customDate7", - "customDate8", "customDate9", "customFloat1", "customFloat10", "customFloat11","customFloat12", "customFloat13", "customFloat14", "customFloat15", - "customFloat16", "customFloat17", "customFloat18", "customFloat19", "customFloat2", "customFloat20", "customFloat21", "customFloat22", - "customFloat23", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customFloat7", "customFloat8", "customFloat9", - "customInt1", "customInt10", "customInt11", "customInt12", "customInt13", "customInt14", "customInt15", "customInt16", - "customInt17", "customInt18", "customInt19", "customInt2", "customInt20", "customInt21", "customInt22", "customInt23", - "customInt3", "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customText1", - "customText10", "customText11", "customText12", "customText13", "customText14", "customText15", "customText16", "customText17", - "customText18", "customText19", "customText2", "customText20", "customText21", "customText22", "customText23", - "customText24", "customText25", "customText26", "customText27", "customText28", "customText29", "customText3", "customText30", - "customText31", "customText32", "customText33", "customText34", "customText35", "customText36", "customText37", "customText38", - "customText39", "customText4", "customText40", "customText5", "customText6", - "customText7", "customText8", "customText9", "customTextBlock1", "customTextBlock10", "customTextBlock2", "customTextBlock3", - "customTextBlock4", "customTextBlock5", "customTextBlock6", "customTextBlock7", "customTextBlock8", "customTextBlock9", - "dateAdded", "dateAvailable", "dateAvailableEnd", "dateI9Expiration", "dateLastComment", "dateLastModified", "dateNextCall", - "dateOfBirth", "dayRate", "dayRateLow", "degreeList", "description", "desiredLocations", "disability", "educationDegree", - "educations", "email", "email2", "email3", "employeeType", "employmentPreference", "customEncryptedText1", "customEncryptedText2", - "customEncryptedText3", "customEncryptedText4", "customEncryptedText5", "customEncryptedText6", "customEncryptedText7", "customEncryptedText8", - "customEncryptedText9", "customEncryptedText10", "ethnicity", "experience", "externalID", "fax", - "fax2", "fax3", "federalAddtionalWitholdingsAmount", "federalExemptions", "federalFilingStatus", "fileAttachments", "firstName", - "gender", "hourlyRate", "hourlyRateLow", "i9OnFile", "isAnonymized", "isDayLightSavings", "isDeleted", "isEditable", "isLockedOut", "interviews", - "lastName", "linkedPerson", "leads", "localAddtionalWitholdingsAmount", "localExemptions", "localFilingStatus", "localTaxCode", - "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", "namePrefix", "nameSuffix", "nickName", "notes", "numCategories", - "numOwners", "occupation", "owner", "pager", "paperWorkOnFile", "password", "phone", "phone2", "phone3", "placements", - "preferredContact", "primarySkills", "recentClientList", "referredBy", "referredByPerson", "references", "salary", "salaryLow", - "secondaryAddress", "secondaryOwners", "secondarySkills", "sendouts", "skillSet", "smsOptIn", "source", "specialties", - "submissions", "ssn", "stateAddtionalWitholdingsAmount", "stateExemptions", "stateFilingStatus", "status", "tasks", "taxID", - "taxState", "tearsheets", "timeZoneOffsetEST", "travelLimit", "type", "username", "veteran", "webResponses", "willRelocate", "workAuthorized", - "workHistories", "workPhone", "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", - "customObject7s", "customObject8s", "customObject9s", "customObject10s" }) -public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, - AssociationEntity, DateLastModifiedEntity, EditHistoryEntity { - - private BigDecimal luceneScore; - - private Integer id; - - private Address address; - - private Branch branch; - - private OneToMany businessSectors; - - private Boolean canEnterTime; - - private OneToMany categories; - - private Category category; - - private OneToMany certificationList; - - @JsonIgnore - private String certifications; - - private OneToMany clientCorporationBlackList; - - private OneToMany clientCorporationWhiteList; - - @JsonIgnore - private String comments; - - @JsonIgnore - @Size(max = 100) - private String companyName; - - @JsonIgnore - @Size(max = 100) - private String companyURL; - - private DateTime dateAdded; - - private DateTime dateAvailable; - - private DateTime dateAvailableEnd; - - private DateTime dateI9Expiration; - - private DateTime dateLastComment; - - private DateTime dateLastModified; - - private DateTime dateNextCall; - - private DateTime dateOfBirth; - - private BigDecimal dayRate; - - private BigDecimal dayRateLow; - - @JsonIgnore - private String degreeList; - - @JsonIgnore - private String description; - - @JsonIgnore - private String desiredLocations; - - @JsonIgnore - @Size(max = 1) - private String disability; - - @JsonIgnore - private String educationDegree; - - private OneToMany educations; - - @JsonIgnore - @Email - @Size(max = 100) - private String email; - - @JsonIgnore - @Email - @Size(max = 100) - private String email2; - - @JsonIgnore - @Email - @Size(max = 100) - private String email3; - - @JsonIgnore - @Size(max = 30) - private String employeeType; - - @JsonIgnore - @Size(max = 200) - private String employmentPreference; - - @JsonIgnore - @Size(max = 50) - private String ethnicity; - - private Integer experience; - - @JsonIgnore - @Size(max = 50) - private String externalID; - - @JsonIgnore - @Size(max = 20) - private String fax; - - @JsonIgnore - @Size(max = 20) - private String fax2; - - @JsonIgnore - @Size(max = 20) - private String fax3; - - private BigDecimal federalAddtionalWitholdingsAmount; - - private Integer federalExemptions; - - @JsonIgnore - private String federalFilingStatus; - - private OneToMany fileAttachments; - - @JsonIgnore - @Size(max = 50) - private String firstName; - - @JsonIgnore - @Size(max = 6) - private String gender; - - private BigDecimal hourlyRate; - - private BigDecimal hourlyRateLow; - - private OneToMany interviews; - - private Integer i9OnFile; - - private Boolean isDayLightSavings; - - private Boolean isDeleted; - - private Boolean isEditable; - - private Boolean isLockedOut; - - private Boolean isAnonymized; - - @JsonIgnore - @Size(max = 50) - private String lastName; - - private Person linkedPerson; - - private OneToMany leads; - - private BigDecimal localAddtionalWitholdingsAmount; - - private Integer localExemptions; - - @JsonIgnore - private String localFilingStatus; - - @JsonIgnore - private String localTaxCode; - - private Boolean massMailOptOut; - - @JsonIgnore - @Size(max = 50) - private String middleName; - - private Object migrateGUID; - - @JsonIgnore - @Size(max = 20) - private String mobile; - - @JsonIgnore - private String name; - - @JsonIgnore - @Size(max = 5) - private String namePrefix; - - @JsonIgnore - @Size(max = 5) - private String nameSuffix; - - @JsonIgnore - private String nickName; - - private OneToMany notes; - - private Integer numCategories; - - private Integer numOwners; - - @JsonIgnore - @Size(max = 50) - private String occupation; - - private CorporateUser owner; - - @JsonIgnore - @Size(max = 20) - private String pager; - - @JsonIgnore - private String paperWorkOnFile; - - @JsonIgnore - private String password; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - @Size(max = 20) - private String phone2; - - @JsonIgnore - @Size(max = 20) - private String phone3; - - private OneToMany placements; - - @JsonIgnore - @Size(max = 15) - private String preferredContact; - - private OneToMany primarySkills; - - @JsonIgnore - private String recentClientList; - - @JsonIgnore - @Size(max = 50) - private String referredBy; - - private Person referredByPerson; - - private OneToMany references; - - private BigDecimal salary; - - private BigDecimal salaryLow; - - private Address secondaryAddress; - - private OneToMany secondaryOwners; - - private OneToMany secondarySkills; - - private OneToMany sendouts; - - @JsonIgnore - private String skillSet; - - private Boolean smsOptIn; - - @JsonIgnore - private String source; - - private OneToMany specialties; - - @JsonIgnore - @Size(max = 18) - private String ssn; - - private BigDecimal stateAddtionalWitholdingsAmount; - - private Integer stateExemptions; - - @JsonIgnore - private String stateFilingStatus; - - @JsonIgnore - @Size(max = 100) - private String status; - - private OneToMany submissions; - - private OneToMany tasks; - - @JsonIgnore - @Size(max = 18) - private String taxID; - - @JsonIgnore - private String taxState; - - private OneToMany tearsheets; - - private Integer timeZoneOffsetEST; - - private Integer travelLimit; - - @JsonIgnore - @Size(max = 100) - private String type; - - @JsonIgnore - private String username; - - @JsonIgnore - @Size(max = 1) - private String veteran; - - private OneToMany webResponses; - - private Boolean willRelocate; - - private Boolean workAuthorized; - - private OneToMany workHistories; - - @JsonIgnore - @Size(max = 20) - private String workPhone; - - @JsonIgnore - private String customEncryptedText1; - - @JsonIgnore - private String customEncryptedText2; - - @JsonIgnore - private String customEncryptedText3; - - @JsonIgnore - private String customEncryptedText4; - - @JsonIgnore - private String customEncryptedText5; - - @JsonIgnore - private String customEncryptedText6; - - @JsonIgnore - private String customEncryptedText7; - - @JsonIgnore - private String customEncryptedText8; - - @JsonIgnore - private String customEncryptedText9; - - @JsonIgnore - private String customEncryptedText10; - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - public Candidate() { - super(); - } - - public Candidate(Integer id) { - super(); - this.id = id; - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public Candidate instantiateForInsert() { - Candidate entity = new Candidate(); - entity.setCategory(new Category(512973)); - entity.setComments("New lead candidate"); - entity.setEmployeeType("W2"); - entity.setIsDeleted(Boolean.FALSE); - entity.setIsEditable(Boolean.TRUE); - entity.setPreferredContact("Email"); - entity.setStatus("New Lead"); - entity.setOwner(new CorporateUser(1)); - entity.setName(""); - entity.setFirstName(""); - entity.setLastName(""); - entity.setUsername(new DateTime().toString()); - entity.setPassword("secret"); - return entity; - } - - public static void setRequiredFieldsForInsert(Candidate candidate) { - if (candidate.getCategory() == null) { - candidate.setCategory(new Category(512973)); - } - if (candidate.getComments() == null) { - candidate.setComments("New lead candidate"); - } - if (candidate.getEmployeeType() == null) { - candidate.setEmployeeType("W2"); - } - if (candidate.getIsDeleted() == null) { - candidate.setIsDeleted(Boolean.FALSE); - } - if (candidate.getIsEditable() == null) { - candidate.setIsEditable(Boolean.FALSE); - } - if (candidate.getPreferredContact() == null) { - candidate.setPreferredContact("Email"); - } - if (candidate.getStatus() == null) { - candidate.setStatus("New Lead"); - } - if (candidate.getOwner() == null) { - candidate.setOwner(new CorporateUser(1)); - } - if (candidate.getUsername() == null) { - candidate.setUsername(new DateTime().toString()); - } - if (candidate.getPassword() == null) { - candidate.setPassword("secret"); - } - - if (candidate.getName() == null) { - if (candidate.getFirstName() != null && candidate.getLastName() != null) { - candidate.setName(candidate.getFirstName() + " " + candidate.getLastName()); - } else { - candidate.setName(""); - } - } - - } - - @JsonIgnore - public BigDecimal getLuceneScore() { - return luceneScore; - } - - @JsonProperty("_score") - public void setLuceneScore(BigDecimal luceneScore) { - this.luceneScore = luceneScore; - } - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonIgnore - public OneToMany getBusinessSectors() { - return businessSectors; - } - - @JsonProperty("businessSectors") - public void setBusinessSectors(OneToMany businessSectors) { - this.businessSectors = businessSectors; - } - - @JsonProperty("canEnterTime") - public Boolean getCanEnterTime() { - return canEnterTime; - } - - @JsonProperty("canEnterTime") - public void setCanEnterTime(Boolean canEnterTime) { - this.canEnterTime = canEnterTime; - } - - @JsonIgnore - public OneToMany getCategories() { - return categories; - } - - @JsonProperty("categories") - public void setCategories(OneToMany categories) { - this.categories = categories; - } - - @JsonProperty("category") - public Category getCategory() { - return category; - } - - @JsonProperty("category") - public void setCategory(Category category) { - this.category = category; - } - - @JsonIgnore - public OneToMany getCertificationList() { - return certificationList; - } - - @ReadOnly - @JsonProperty("certificationList") - public void setCertificationList(OneToMany certificationList) { - this.certificationList = certificationList; - } - - @JsonProperty("certifications") - public String getCertifications() { - return certifications; - } - - @JsonIgnore - public void setCertifications(String certifications) { - this.certifications = certifications; - } - - @JsonProperty("clientCorporationBlackList") - public OneToMany getClientCorporationBlackList() { - return clientCorporationBlackList; - } - - @ReadOnly - @JsonProperty("clientCorporationBlackList") - public void setClientCorporationBlackList(OneToMany clientCorporationBlackList) { - this.clientCorporationBlackList = clientCorporationBlackList; - } - - @JsonProperty("clientCorporationWhiteList") - public OneToMany getClientCorporationWhiteList() { - return clientCorporationWhiteList; - } - - @ReadOnly - @JsonProperty("clientCorporationWhiteList") - public void setClientCorporationWhiteList(OneToMany clientCorporationWhiteList) { - this.clientCorporationWhiteList = clientCorporationWhiteList; - } - - @JsonProperty("comments") - public String getComments() { - return comments; - } - - @JsonIgnore - public void setComments(String comments) { - this.comments = comments; - } - - @JsonProperty("companyName") - public String getCompanyName() { - return companyName; - } - - @JsonIgnore - public void setCompanyName(String companyName) { - this.companyName = companyName; - } - - @JsonProperty("companyURL") - public String getCompanyURL() { - return companyURL; - } - - @JsonIgnore - public void setCompanyURL(String companyURL) { - this.companyURL = companyURL; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateAvailable") - public DateTime getDateAvailable() { - return dateAvailable; - } - - @JsonProperty("dateAvailable") - public void setDateAvailable(DateTime dateAvailable) { - this.dateAvailable = dateAvailable; - } - - @JsonProperty("dateAvailableEnd") - public DateTime getDateAvailableEnd() { - return dateAvailableEnd; - } - - @JsonProperty("dateAvailableEnd") - public void setDateAvailableEnd(DateTime dateAvailableEnd) { - this.dateAvailableEnd = dateAvailableEnd; - } - - @JsonProperty("dateI9Expiration") - public DateTime getDateI9Expiration() { - return dateI9Expiration; - } - - @JsonProperty("dateI9Expiration") - public void setDateI9Expiration(DateTime dateI9Expiration) { - this.dateI9Expiration = dateI9Expiration; - } - - @JsonProperty("dateLastComment") - public DateTime getDateLastComment() { - return dateLastComment; - } - - @ReadOnly - @JsonProperty("dateLastComment") - public void setDateLastComment(DateTime dateLastComment) { - this.dateLastComment = dateLastComment; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - - @JsonProperty("dateNextCall") - public DateTime getDateNextCall() { - return dateNextCall; - } - - @JsonProperty("dateNextCall") - public void setDateNextCall(DateTime dateNextCall) { - this.dateNextCall = dateNextCall; - } - - @JsonProperty("dateOfBirth") - public DateTime getDateOfBirth() { - return dateOfBirth; - } - - @JsonProperty("dateOfBirth") - public void setDateOfBirth(DateTime dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - @JsonProperty("dayRate") - public BigDecimal getDayRate() { - return dayRate; - } - - @JsonProperty("dayRate") - public void setDayRate(BigDecimal dayRate) { - this.dayRate = dayRate; - } - - @JsonProperty("dayRateLow") - public BigDecimal getDayRateLow() { - return dayRateLow; - } - - @JsonProperty("dayRateLow") - public void setDayRateLow(BigDecimal dayRateLow) { - this.dayRateLow = dayRateLow; - } - - @JsonProperty("degreeList") - public String getDegreeList() { - return degreeList; - } - - @JsonIgnore - public void setDegreeList(String degreeList) { - this.degreeList = degreeList; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonIgnore - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("desiredLocations") - public String getDesiredLocations() { - return desiredLocations; - } - - @JsonIgnore - public void setDesiredLocations(String desiredLocations) { - this.desiredLocations = desiredLocations; - } - - @JsonProperty("disability") - public String getDisability() { - return disability; - } - - @JsonIgnore - public void setDisability(String disability) { - this.disability = disability; - } - - @JsonProperty("educationDegree") - public String getEducationDegree() { - return educationDegree; - } - - @JsonIgnore - public void setEducationDegree(String educationDegree) { - this.educationDegree = educationDegree; - } - - @JsonProperty("educations") - public OneToMany getEducations() { - return educations; - } - - @ReadOnly - @JsonProperty("educations") - public void setEducations(OneToMany educations) { - this.educations = educations; - } - - @JsonProperty("email") - public String getEmail() { - return email; - } - - @JsonIgnore - public void setEmail(String email) { - this.email = email; - } - - @JsonProperty("email2") - public String getEmail2() { - return email2; - } - - @JsonIgnore - public void setEmail2(String email2) { - this.email2 = email2; - } - - @JsonProperty("email3") - public String getEmail3() { - return email3; - } - - @JsonIgnore - public void setEmail3(String email3) { - this.email3 = email3; - } - - @JsonProperty("employeeType") - public String getEmployeeType() { - return employeeType; - } - - @JsonIgnore - public void setEmployeeType(String employeeType) { - this.employeeType = employeeType; - } - - @JsonProperty("employmentPreference") - public String getEmploymentPreference() { - return employmentPreference; - } - - @JsonIgnore - public void setEmploymentPreference(String employmentPreference) { - this.employmentPreference = employmentPreference; - } - - @JsonProperty("ethnicity") - public String getEthnicity() { - return ethnicity; - } - - @JsonIgnore - public void setEthnicity(String ethnicity) { - this.ethnicity = ethnicity; - } - - @JsonProperty("experience") - public Integer getExperience() { - return experience; - } - - @JsonProperty("experience") - public void setExperience(Integer experience) { - this.experience = experience; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonIgnore - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("fax2") - public String getFax2() { - return fax2; - } - - @JsonIgnore - public void setFax2(String fax2) { - this.fax2 = fax2; - } - - @JsonProperty("fax3") - public String getFax3() { - return fax3; - } - - @JsonIgnore - public void setFax3(String fax3) { - this.fax3 = fax3; - } - - @JsonProperty("federalAddtionalWitholdingsAmount") - public BigDecimal getFederalAddtionalWitholdingsAmount() { - return federalAddtionalWitholdingsAmount; - } - - @JsonProperty("federalAddtionalWitholdingsAmount") - public void setFederalAddtionalWitholdingsAmount(BigDecimal federalAddtionalWitholdingsAmount) { - this.federalAddtionalWitholdingsAmount = federalAddtionalWitholdingsAmount; - } - - @JsonProperty("federalExemptions") - public Integer getFederalExemptions() { - return federalExemptions; - } - - @JsonProperty("federalExemptions") - public void setFederalExemptions(Integer federalExemptions) { - this.federalExemptions = federalExemptions; - } - - @JsonProperty("federalFilingStatus") - public String getFederalFilingStatus() { - return federalFilingStatus; - } - - @JsonIgnore - public void setFederalFilingStatus(String federalFilingStatus) { - this.federalFilingStatus = federalFilingStatus; - } - - @JsonProperty("fileAttachments") - public OneToMany getFileAttachments() { - return fileAttachments; - } - - @ReadOnly - @JsonProperty("fileAttachments") - public void setFileAttachments(OneToMany fileAttachments) { - this.fileAttachments = fileAttachments; - } - - @JsonProperty("firstName") - public String getFirstName() { - return firstName; - } - - @JsonIgnore - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - @JsonProperty("gender") - public String getGender() { - return gender; - } - - @JsonIgnore - public void setGender(String gender) { - this.gender = gender; - } - - @JsonProperty("hourlyRate") - public BigDecimal getHourlyRate() { - return hourlyRate; - } - - @JsonProperty("hourlyRate") - public void setHourlyRate(BigDecimal hourlyRate) { - this.hourlyRate = hourlyRate; - } - - @JsonProperty("hourlyRateLow") - public BigDecimal getHourlyRateLow() { - return hourlyRateLow; - } - - @JsonProperty("hourlyRateLow") - public void setHourlyRateLow(BigDecimal hourlyRateLow) { - this.hourlyRateLow = hourlyRateLow; - } - - @JsonProperty("interviews") - public OneToMany getInterviews() { - return interviews; - } - - @ReadOnly - @JsonProperty("interviews") - public void setInterviews(OneToMany interviews) { - this.interviews = interviews; - } - - @JsonProperty("i9OnFile") - public Integer getI9OnFile() { - return i9OnFile; - } - - @JsonProperty("i9OnFile") - public void setI9OnFile(Integer i9OnFile) { - this.i9OnFile = i9OnFile; - } - - @JsonProperty("isDayLightSavings") - public Boolean getIsDayLightSavings() { - return isDayLightSavings; - } - - @JsonProperty("isDayLightSavings") - public void setIsDayLightSavings(Boolean isDayLightSavings) { - this.isDayLightSavings = isDayLightSavings; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isEditable") - public Boolean getIsEditable() { - return isEditable; - } - - @JsonProperty("isEditable") - public void setIsEditable(Boolean isEditable) { - this.isEditable = isEditable; - } - - @JsonProperty("isLockedOut") - public Boolean getIsLockedOut() { - return isLockedOut; - } - - @JsonProperty("isLockedOut") - public void setIsLockedOut(Boolean isLockedOut) { - this.isLockedOut = isLockedOut; - } - - @JsonProperty("isAnonymized") - public Boolean getIsAnonymized() { - return isAnonymized; - } - - @JsonProperty("isAnonymized") - public void setIsAnonymized(Boolean isAnonymized) { - this.isAnonymized = isAnonymized; - } - - @JsonProperty("lastName") - public String getLastName() { - return lastName; - } - - @JsonIgnore - public void setLastName(String lastName) { - this.lastName = lastName; - } - - @JsonProperty("linkedPerson") - public Person getLinkedPerson() { - return linkedPerson; - } - - @JsonProperty("linkedPerson") - public void setLinkedPerson(Person linkedPerson) { - this.linkedPerson = linkedPerson; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("localAddtionalWitholdingsAmount") - public BigDecimal getLocalAddtionalWitholdingsAmount() { - return localAddtionalWitholdingsAmount; - } - - @JsonProperty("localAddtionalWitholdingsAmount") - public void setLocalAddtionalWitholdingsAmount(BigDecimal localAddtionalWitholdingsAmount) { - this.localAddtionalWitholdingsAmount = localAddtionalWitholdingsAmount; - } - - @JsonProperty("localExemptions") - public Integer getLocalExemptions() { - return localExemptions; - } - - @JsonProperty("localExemptions") - public void setLocalExemptions(Integer localExemptions) { - this.localExemptions = localExemptions; - } - - @JsonProperty("localFilingStatus") - public String getLocalFilingStatus() { - return localFilingStatus; - } - - @JsonIgnore - public void setLocalFilingStatus(String localFilingStatus) { - this.localFilingStatus = localFilingStatus; - } - - @JsonProperty("localTaxCode") - public String getLocalTaxCode() { - return localTaxCode; - } - - @JsonIgnore - public void setLocalTaxCode(String localTaxCode) { - this.localTaxCode = localTaxCode; - } - - @JsonProperty("massMailOptOut") - public Boolean getMassMailOptOut() { - return massMailOptOut; - } - - @JsonProperty("massMailOptOut") - public void setMassMailOptOut(Boolean massMailOptOut) { - this.massMailOptOut = massMailOptOut; - } - - @JsonProperty("middleName") - public String getMiddleName() { - return middleName; - } - - @JsonIgnore - public void setMiddleName(String middleName) { - this.middleName = middleName; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonProperty("migrateGUID") - public void setMigrateGUID(Object migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("mobile") - public String getMobile() { - return mobile; - } - - @JsonIgnore - public void setMobile(String mobile) { - this.mobile = mobile; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("namePrefix") - public String getNamePrefix() { - return namePrefix; - } - - @JsonIgnore - public void setNamePrefix(String namePrefix) { - this.namePrefix = namePrefix; - } - - @JsonProperty("nameSuffix") - public String getNameSuffix() { - return nameSuffix; - } - - @JsonIgnore - public void setNameSuffix(String nameSuffix) { - this.nameSuffix = nameSuffix; - } - - @JsonProperty("nickName") - public String getNickName() { - return nickName; - } - - @JsonIgnore - public void setNickName(String nickName) { - this.nickName = nickName; - } - - @JsonProperty("notes") - public OneToMany getNotes() { - return notes; - } - - @ReadOnly - @JsonProperty("notes") - public void setNotes(OneToMany notes) { - this.notes = notes; - } - - @JsonProperty("numCategories") - public Integer getNumCategories() { - return numCategories; - } - - @JsonProperty("numCategories") - public void setNumCategories(Integer numCategories) { - this.numCategories = numCategories; - } - - @JsonProperty("numOwners") - public Integer getNumOwners() { - return numOwners; - } - - @JsonProperty("numOwners") - public void setNumOwners(Integer numOwners) { - this.numOwners = numOwners; - } - - @JsonProperty("occupation") - public String getOccupation() { - return occupation; - } - - @JsonIgnore - public void setOccupation(String occupation) { - this.occupation = occupation; - } - - @JsonProperty("owner") - public CorporateUser getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(CorporateUser owner) { - this.owner = owner; - } - - @JsonProperty("pager") - public String getPager() { - return pager; - } - - @JsonIgnore - public void setPager(String pager) { - this.pager = pager; - } - - @JsonProperty("paperWorkOnFile") - public String getPaperWorkOnFile() { - return paperWorkOnFile; - } - - @JsonIgnore - public void setPaperWorkOnFile(String paperWorkOnFile) { - this.paperWorkOnFile = paperWorkOnFile; - } - - @JsonProperty("password") - public String getPassword() { - return password; - } - - @JsonProperty("password") - public void setPassword(String password) { - this.password = password; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("phone2") - public String getPhone2() { - return phone2; - } - - @JsonIgnore - public void setPhone2(String phone2) { - this.phone2 = phone2; - } - - @JsonProperty("phone3") - public String getPhone3() { - return phone3; - } - - @JsonIgnore - public void setPhone3(String phone3) { - this.phone3 = phone3; - } - - @JsonProperty("placements") - public OneToMany getPlacements() { - return placements; - } - - @ReadOnly - @JsonProperty("placements") - public void setPlacements(OneToMany placements) { - this.placements = placements; - } - - @JsonProperty("preferredContact") - public String getPreferredContact() { - return preferredContact; - } - - @JsonIgnore - public void setPreferredContact(String preferredContact) { - this.preferredContact = preferredContact; - } - - @JsonIgnore - public OneToMany getPrimarySkills() { - return primarySkills; - } - - @JsonProperty("primarySkills") - public void setPrimarySkills(OneToMany primarySkills) { - this.primarySkills = primarySkills; - } - - @JsonProperty("recentClientList") - public String getRecentClientList() { - return recentClientList; - } - - @JsonIgnore - public void setRecentClientList(String recentClientList) { - this.recentClientList = recentClientList; - } - - @JsonProperty("referredBy") - public String getReferredBy() { - return referredBy; - } - - @JsonIgnore - public void setReferredBy(String referredBy) { - this.referredBy = referredBy; - } - - @JsonProperty("referredByPerson") - public Person getReferredByPerson() { - return referredByPerson; - } - - @JsonProperty("referredByPerson") - public void setReferredByPerson(Person referredByPerson) { - this.referredByPerson = referredByPerson; - } - - @JsonProperty("references") - public OneToMany getReferences() { - return references; - } - - @ReadOnly - @JsonProperty("references") - public void setReferences(OneToMany references) { - this.references = references; - } - - @JsonProperty("salary") - public BigDecimal getSalary() { - return salary; - } - - @JsonProperty("salary") - public void setSalary(BigDecimal salary) { - this.salary = salary; - } - - @JsonProperty("salaryLow") - public BigDecimal getSalaryLow() { - return salaryLow; - } - - @JsonProperty("salaryLow") - public void setSalaryLow(BigDecimal salaryLow) { - this.salaryLow = salaryLow; - } - - @JsonProperty("secondaryAddress") - public Address getSecondaryAddress() { - return secondaryAddress; - } - - @JsonProperty("secondaryAddress") - public void setSecondaryAddress(Address secondaryAddress) { - this.secondaryAddress = secondaryAddress; - } - - @JsonIgnore - public OneToMany getSecondaryOwners() { - return secondaryOwners; - } - - @JsonProperty("secondaryOwners") - public void setSecondaryOwners(OneToMany secondaryOwners) { - this.secondaryOwners = secondaryOwners; - } - - @JsonIgnore - public OneToMany getSecondarySkills() { - return secondarySkills; - } - - @JsonProperty("secondarySkills") - public void setSecondarySkills(OneToMany secondarySkills) { - this.secondarySkills = secondarySkills; - } - - @JsonProperty("sendouts") - public OneToMany getSendouts() { - return sendouts; - } - - @ReadOnly - @JsonProperty("sendouts") - public void setSendouts(OneToMany sendouts) { - this.sendouts = sendouts; - } - - @JsonProperty("skillSet") - public String getSkillSet() { - return skillSet; - } - - @JsonIgnore - public void setSkillSet(String skillSet) { - this.skillSet = skillSet; - } - - @JsonProperty("smsOptIn") - public Boolean getSmsOptIn() { - return smsOptIn; - } - - @JsonProperty("smsOptIn") - public void setSmsOptIn(Boolean smsOptIn) { - this.smsOptIn = smsOptIn; - } - - @JsonProperty("source") - public String getSource() { - return source; - } - - @JsonIgnore - public void setSource(String source) { - this.source = source; - } - - @JsonIgnore - public OneToMany getSpecialties() { - return specialties; - } - - @JsonProperty("specialties") - public void setSpecialties(OneToMany specialties) { - this.specialties = specialties; - } - - @JsonProperty("ssn") - public String getSsn() { - return ssn; - } - - @JsonProperty("ssn") - public void setSsn(String ssn) { - this.ssn = ssn; - } - - @JsonProperty("stateAddtionalWitholdingsAmount") - public BigDecimal getStateAddtionalWitholdingsAmount() { - return stateAddtionalWitholdingsAmount; - } - - @JsonProperty("stateAddtionalWitholdingsAmount") - public void setStateAddtionalWitholdingsAmount(BigDecimal stateAddtionalWitholdingsAmount) { - this.stateAddtionalWitholdingsAmount = stateAddtionalWitholdingsAmount; - } - - @JsonProperty("stateExemptions") - public Integer getStateExemptions() { - return stateExemptions; - } - - @JsonProperty("stateExemptions") - public void setStateExemptions(Integer stateExemptions) { - this.stateExemptions = stateExemptions; - } - - @JsonProperty("stateFilingStatus") - public String getStateFilingStatus() { - return stateFilingStatus; - } - - @JsonIgnore - public void setStateFilingStatus(String stateFilingStatus) { - this.stateFilingStatus = stateFilingStatus; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("submissions") - public OneToMany getSubmissions() { - return submissions; - } - - @ReadOnly - @JsonProperty("submissions") - public void setSubmissions(OneToMany submissions) { - this.submissions = submissions; - } - - @JsonProperty("tasks") - public OneToMany getTasks() { - return tasks; - } - - @ReadOnly - @JsonProperty("tasks") - public void setTasks(OneToMany tasks) { - this.tasks = tasks; - } - - @JsonProperty("taxID") - public String getTaxID() { - return taxID; - } - - @JsonIgnore - public void setTaxID(String taxID) { - this.taxID = taxID; - } - - @JsonProperty("taxState") - public String getTaxState() { - return taxState; - } - - @JsonIgnore - public void setTaxState(String taxState) { - this.taxState = taxState; - } - - @JsonProperty("tearsheets") - public OneToMany getTearsheets() { - return tearsheets; - } - - @JsonProperty("tearsheets") - public void setTearsheets(OneToMany tearsheets) { - this.tearsheets = tearsheets; - } - - @JsonProperty("timeZoneOffsetEST") - public Integer getTimeZoneOffsetEST() { - return timeZoneOffsetEST; - } - - @JsonProperty("timeZoneOffsetEST") - public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { - this.timeZoneOffsetEST = timeZoneOffsetEST; - } - - @JsonProperty("travelLimit") - public Integer getTravelLimit() { - return travelLimit; - } - - @JsonProperty("travelLimit") - public void setTravelLimit(Integer travelLimit) { - this.travelLimit = travelLimit; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("username") - public String getUsername() { - return username; - } - - @JsonIgnore - public void setUsername(String username) { - this.username = username; - } - - @JsonProperty("veteran") - public String getVeteran() { - return veteran; - } - - @JsonIgnore - public void setVeteran(String veteran) { - this.veteran = veteran; - } - - @JsonProperty("webResponses") - public OneToMany getWebResponses() { - return webResponses; - } - - @ReadOnly - @JsonProperty("webResponses") - public void setWebResponses(OneToMany webResponses) { - this.webResponses = webResponses; - } - - @JsonProperty("willRelocate") - public Boolean getWillRelocate() { - return willRelocate; - } - - @JsonProperty("willRelocate") - public void setWillRelocate(Boolean willRelocate) { - this.willRelocate = willRelocate; - } - - @JsonProperty("workAuthorized") - public Boolean getWorkAuthorized() { - return workAuthorized; - } - - @JsonProperty("workAuthorized") - public void setWorkAuthorized(Boolean workAuthorized) { - this.workAuthorized = workAuthorized; - } - - @JsonProperty("workHistories") - public OneToMany getWorkHistories() { - return workHistories; - } - - @ReadOnly - @JsonProperty("workHistories") - public void setWorkHistories(OneToMany workHistories) { - this.workHistories = workHistories; - } - - @JsonProperty("workPhone") - public String getWorkPhone() { - return workPhone; - } - - @JsonIgnore - public void setWorkPhone(String workPhone) { - this.workPhone = workPhone; - } - - @JsonProperty("customEncryptedText1") - public String getCustomEncryptedText1() { - return customEncryptedText1; - } - - @JsonProperty("customEncryptedText1") - @JsonIgnore - public void setCustomEncryptedText1(String customEncryptedText1) { - this.customEncryptedText1 = customEncryptedText1; - } - - @JsonProperty("customEncryptedText2") - public String getCustomEncryptedText2() { - return customEncryptedText2; - } - - @JsonProperty("customEncryptedText2") - @JsonIgnore - public void setCustomEncryptedText2(String customEncryptedText2) { - this.customEncryptedText2 = customEncryptedText2; - } - - @JsonProperty("customEncryptedText3") - public String getCustomEncryptedText3() { - return customEncryptedText3; - } - - @JsonProperty("customEncryptedText3") - @JsonIgnore - public void setCustomEncryptedText3(String customEncryptedText3) { - this.customEncryptedText3 = customEncryptedText3; - } - - @JsonProperty("customEncryptedText4") - public String getCustomEncryptedText4() { - return customEncryptedText4; - } - - @JsonProperty("customEncryptedText4") - @JsonIgnore - public void setCustomEncryptedText4(String customEncryptedText4) { - this.customEncryptedText4 = customEncryptedText4; - } - - @JsonProperty("customEncryptedText5") - public String getCustomEncryptedText5() { - return customEncryptedText5; - } - - @JsonProperty("customEncryptedText5") - @JsonIgnore - public void setCustomEncryptedText5(String customEncryptedText5) { - this.customEncryptedText5 = customEncryptedText5; - } - - @JsonProperty("customEncryptedText6") - public String getCustomEncryptedText6() { - return customEncryptedText6; - } - - @JsonProperty("customEncryptedText6") - @JsonIgnore - public void setCustomEncryptedText6(String customEncryptedText6) { - this.customEncryptedText6 = customEncryptedText6; - } - - @JsonProperty("customEncryptedText7") - public String getCustomEncryptedText7() { - return customEncryptedText7; - } - - @JsonProperty("customEncryptedText7") - @JsonIgnore - public void setCustomEncryptedText7(String customEncryptedText7) { - this.customEncryptedText7 = customEncryptedText7; - } - - @JsonProperty("customEncryptedText8") - public String getCustomEncryptedText8() { - return customEncryptedText8; - } - - @JsonProperty("customEncryptedText8") - @JsonIgnore - public void setCustomEncryptedText8(String customEncryptedText8) { - this.customEncryptedText8 = customEncryptedText8; - } - - @JsonProperty("customEncryptedText9") - public String getCustomEncryptedText9() { - return customEncryptedText9; - } - - @JsonProperty("customEncryptedText9") - @JsonIgnore - public void setCustomEncryptedText9(String customEncryptedText9) { - this.customEncryptedText9 = customEncryptedText9; - } - - @JsonProperty("customEncryptedText10") - public String getCustomEncryptedText10() { - return customEncryptedText10; - } - - @JsonProperty("customEncryptedText10") - @JsonIgnore - public void setCustomEncryptedText10(String customEncryptedText10) { - this.customEncryptedText10 = customEncryptedText10; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - Candidate candidate = (Candidate) o; - - if (luceneScore != null ? !luceneScore.equals(candidate.luceneScore) : candidate.luceneScore != null) - return false; - if (id != null ? !id.equals(candidate.id) : candidate.id != null) return false; - if (address != null ? !address.equals(candidate.address) : candidate.address != null) return false; - if (branch != null ? !branch.equals(candidate.branch) : candidate.branch != null) return false; - if (businessSectors != null ? !businessSectors.equals(candidate.businessSectors) : candidate.businessSectors != null) - return false; - if (canEnterTime != null ? !canEnterTime.equals(candidate.canEnterTime) : candidate.canEnterTime != null) return false; - if (categories != null ? !categories.equals(candidate.categories) : candidate.categories != null) return false; - if (category != null ? !category.equals(candidate.category) : candidate.category != null) return false; - if (certificationList != null ? !certificationList.equals(candidate.certificationList) : candidate.certificationList != null) - return false; - if (certifications != null ? !certifications.equals(candidate.certifications) : candidate.certifications != null) - return false; - if (clientCorporationBlackList != null ? !clientCorporationBlackList.equals(candidate.clientCorporationBlackList) : candidate.clientCorporationBlackList != null) - return false; - if (clientCorporationWhiteList != null ? !clientCorporationWhiteList.equals(candidate.clientCorporationWhiteList) : candidate.clientCorporationWhiteList != null) - return false; - if (comments != null ? !comments.equals(candidate.comments) : candidate.comments != null) return false; - if (companyName != null ? !companyName.equals(candidate.companyName) : candidate.companyName != null) - return false; - if (companyURL != null ? !companyURL.equals(candidate.companyURL) : candidate.companyURL != null) return false; - if (dateAdded != null ? !dateAdded.equals(candidate.dateAdded) : candidate.dateAdded != null) return false; - if (dateAvailable != null ? !dateAvailable.equals(candidate.dateAvailable) : candidate.dateAvailable != null) - return false; - if (dateAvailableEnd != null ? !dateAvailableEnd.equals(candidate.dateAvailableEnd) : candidate.dateAvailableEnd != null) - return false; - if (dateI9Expiration != null ? !dateI9Expiration.equals(candidate.dateI9Expiration) : candidate.dateI9Expiration != null) - return false; - if (dateLastComment != null ? !dateLastComment.equals(candidate.dateLastComment) : candidate.dateLastComment != null) - return false; - if (dateLastModified != null ? !dateLastModified.equals(candidate.dateLastModified) : candidate.dateLastModified != null) - return false; - if (dateNextCall != null ? !dateNextCall.equals(candidate.dateNextCall) : candidate.dateNextCall != null) - return false; - if (dateOfBirth != null ? !dateOfBirth.equals(candidate.dateOfBirth) : candidate.dateOfBirth != null) - return false; - if (dayRate != null ? !dayRate.equals(candidate.dayRate) : candidate.dayRate != null) return false; - if (dayRateLow != null ? !dayRateLow.equals(candidate.dayRateLow) : candidate.dayRateLow != null) return false; - if (degreeList != null ? !degreeList.equals(candidate.degreeList) : candidate.degreeList != null) return false; - if (description != null ? !description.equals(candidate.description) : candidate.description != null) - return false; - if (desiredLocations != null ? !desiredLocations.equals(candidate.desiredLocations) : candidate.desiredLocations != null) - return false; - if (disability != null ? !disability.equals(candidate.disability) : candidate.disability != null) return false; - if (educationDegree != null ? !educationDegree.equals(candidate.educationDegree) : candidate.educationDegree != null) - return false; - if (educations != null ? !educations.equals(candidate.educations) : candidate.educations != null) return false; - if (email != null ? !email.equals(candidate.email) : candidate.email != null) return false; - if (email2 != null ? !email2.equals(candidate.email2) : candidate.email2 != null) return false; - if (email3 != null ? !email3.equals(candidate.email3) : candidate.email3 != null) return false; - if (employeeType != null ? !employeeType.equals(candidate.employeeType) : candidate.employeeType != null) - return false; - if (employmentPreference != null ? !employmentPreference.equals(candidate.employmentPreference) : candidate.employmentPreference != null) - return false; - if (ethnicity != null ? !ethnicity.equals(candidate.ethnicity) : candidate.ethnicity != null) return false; - if (experience != null ? !experience.equals(candidate.experience) : candidate.experience != null) return false; - if (externalID != null ? !externalID.equals(candidate.externalID) : candidate.externalID != null) return false; - if (fax != null ? !fax.equals(candidate.fax) : candidate.fax != null) return false; - if (fax2 != null ? !fax2.equals(candidate.fax2) : candidate.fax2 != null) return false; - if (fax3 != null ? !fax3.equals(candidate.fax3) : candidate.fax3 != null) return false; - if (federalAddtionalWitholdingsAmount != null ? !federalAddtionalWitholdingsAmount.equals(candidate.federalAddtionalWitholdingsAmount) : candidate.federalAddtionalWitholdingsAmount != null) - return false; - if (federalExemptions != null ? !federalExemptions.equals(candidate.federalExemptions) : candidate.federalExemptions != null) - return false; - if (federalFilingStatus != null ? !federalFilingStatus.equals(candidate.federalFilingStatus) : candidate.federalFilingStatus != null) - return false; - if (fileAttachments != null ? !fileAttachments.equals(candidate.fileAttachments) : candidate.fileAttachments != null) - return false; - if (firstName != null ? !firstName.equals(candidate.firstName) : candidate.firstName != null) return false; - if (gender != null ? !gender.equals(candidate.gender) : candidate.gender != null) return false; - if (hourlyRate != null ? !hourlyRate.equals(candidate.hourlyRate) : candidate.hourlyRate != null) return false; - if (hourlyRateLow != null ? !hourlyRateLow.equals(candidate.hourlyRateLow) : candidate.hourlyRateLow != null) - return false; - if (interviews != null ? !interviews.equals(candidate.interviews) : candidate.interviews != null) return false; - if (i9OnFile != null ? !i9OnFile.equals(candidate.i9OnFile) : candidate.i9OnFile != null) return false; - if (isDayLightSavings != null ? !isDayLightSavings.equals(candidate.isDayLightSavings) : candidate.isDayLightSavings != null) - return false; - if (isDeleted != null ? !isDeleted.equals(candidate.isDeleted) : candidate.isDeleted != null) return false; - if (isEditable != null ? !isEditable.equals(candidate.isEditable) : candidate.isEditable != null) return false; - if (isLockedOut != null ? !isLockedOut.equals(candidate.isLockedOut) : candidate.isLockedOut != null) - return false; - if (isAnonymized != null ? !isAnonymized.equals(candidate.isAnonymized) : candidate.isAnonymized != null) - return false; - if (lastName != null ? !lastName.equals(candidate.lastName) : candidate.lastName != null) return false; - if (linkedPerson != null ? !linkedPerson.equals(candidate.linkedPerson) : candidate.linkedPerson != null) - return false; - if (leads != null ? !leads.equals(candidate.leads) : candidate.leads != null) return false; - if (localAddtionalWitholdingsAmount != null ? !localAddtionalWitholdingsAmount.equals(candidate.localAddtionalWitholdingsAmount) : candidate.localAddtionalWitholdingsAmount != null) - return false; - if (localExemptions != null ? !localExemptions.equals(candidate.localExemptions) : candidate.localExemptions != null) - return false; - if (localFilingStatus != null ? !localFilingStatus.equals(candidate.localFilingStatus) : candidate.localFilingStatus != null) - return false; - if (localTaxCode != null ? !localTaxCode.equals(candidate.localTaxCode) : candidate.localTaxCode != null) - return false; - if (massMailOptOut != null ? !massMailOptOut.equals(candidate.massMailOptOut) : candidate.massMailOptOut != null) - return false; - if (middleName != null ? !middleName.equals(candidate.middleName) : candidate.middleName != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(candidate.migrateGUID) : candidate.migrateGUID != null) - return false; - if (mobile != null ? !mobile.equals(candidate.mobile) : candidate.mobile != null) return false; - if (name != null ? !name.equals(candidate.name) : candidate.name != null) return false; - if (namePrefix != null ? !namePrefix.equals(candidate.namePrefix) : candidate.namePrefix != null) return false; - if (nameSuffix != null ? !nameSuffix.equals(candidate.nameSuffix) : candidate.nameSuffix != null) return false; - if (nickName != null ? !nickName.equals(candidate.nickName) : candidate.nickName != null) return false; - if (notes != null ? !notes.equals(candidate.notes) : candidate.notes != null) return false; - if (numCategories != null ? !numCategories.equals(candidate.numCategories) : candidate.numCategories != null) - return false; - if (numOwners != null ? !numOwners.equals(candidate.numOwners) : candidate.numOwners != null) return false; - if (occupation != null ? !occupation.equals(candidate.occupation) : candidate.occupation != null) return false; - if (owner != null ? !owner.equals(candidate.owner) : candidate.owner != null) return false; - if (pager != null ? !pager.equals(candidate.pager) : candidate.pager != null) return false; - if (paperWorkOnFile != null ? !paperWorkOnFile.equals(candidate.paperWorkOnFile) : candidate.paperWorkOnFile != null) - return false; - if (password != null ? !password.equals(candidate.password) : candidate.password != null) return false; - if (phone != null ? !phone.equals(candidate.phone) : candidate.phone != null) return false; - if (phone2 != null ? !phone2.equals(candidate.phone2) : candidate.phone2 != null) return false; - if (phone3 != null ? !phone3.equals(candidate.phone3) : candidate.phone3 != null) return false; - if (placements != null ? !placements.equals(candidate.placements) : candidate.placements != null) return false; - if (preferredContact != null ? !preferredContact.equals(candidate.preferredContact) : candidate.preferredContact != null) - return false; - if (primarySkills != null ? !primarySkills.equals(candidate.primarySkills) : candidate.primarySkills != null) - return false; - if (recentClientList != null ? !recentClientList.equals(candidate.recentClientList) : candidate.recentClientList != null) - return false; - if (referredBy != null ? !referredBy.equals(candidate.referredBy) : candidate.referredBy != null) return false; - if (referredByPerson != null ? !referredByPerson.equals(candidate.referredByPerson) : candidate.referredByPerson != null) - return false; - if (references != null ? !references.equals(candidate.references) : candidate.references != null) return false; - if (salary != null ? !salary.equals(candidate.salary) : candidate.salary != null) return false; - if (salaryLow != null ? !salaryLow.equals(candidate.salaryLow) : candidate.salaryLow != null) return false; - if (secondaryAddress != null ? !secondaryAddress.equals(candidate.secondaryAddress) : candidate.secondaryAddress != null) - return false; - if (secondaryOwners != null ? !secondaryOwners.equals(candidate.secondaryOwners) : candidate.secondaryOwners != null) - return false; - if (secondarySkills != null ? !secondarySkills.equals(candidate.secondarySkills) : candidate.secondarySkills != null) - return false; - if (sendouts != null ? !sendouts.equals(candidate.sendouts) : candidate.sendouts != null) return false; - if (skillSet != null ? !skillSet.equals(candidate.skillSet) : candidate.skillSet != null) return false; - if (smsOptIn != null ? !smsOptIn.equals(candidate.smsOptIn) : candidate.smsOptIn != null) return false; - if (source != null ? !source.equals(candidate.source) : candidate.source != null) return false; - if (specialties != null ? !specialties.equals(candidate.specialties) : candidate.specialties != null) - return false; - if (ssn != null ? !ssn.equals(candidate.ssn) : candidate.ssn != null) return false; - if (stateAddtionalWitholdingsAmount != null ? !stateAddtionalWitholdingsAmount.equals(candidate.stateAddtionalWitholdingsAmount) : candidate.stateAddtionalWitholdingsAmount != null) - return false; - if (stateExemptions != null ? !stateExemptions.equals(candidate.stateExemptions) : candidate.stateExemptions != null) - return false; - if (stateFilingStatus != null ? !stateFilingStatus.equals(candidate.stateFilingStatus) : candidate.stateFilingStatus != null) - return false; - if (status != null ? !status.equals(candidate.status) : candidate.status != null) return false; - if (submissions != null ? !submissions.equals(candidate.submissions) : candidate.submissions != null) - return false; - if (tasks != null ? !tasks.equals(candidate.tasks) : candidate.tasks != null) return false; - if (taxID != null ? !taxID.equals(candidate.taxID) : candidate.taxID != null) return false; - if (taxState != null ? !taxState.equals(candidate.taxState) : candidate.taxState != null) return false; - if (tearsheets != null ? !tearsheets.equals(candidate.tearsheets) : candidate.tearsheets != null) return false; - if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(candidate.timeZoneOffsetEST) : candidate.timeZoneOffsetEST != null) - return false; - if (travelLimit != null ? !travelLimit.equals(candidate.travelLimit) : candidate.travelLimit != null) - return false; - if (type != null ? !type.equals(candidate.type) : candidate.type != null) return false; - if (username != null ? !username.equals(candidate.username) : candidate.username != null) return false; - if (veteran != null ? !veteran.equals(candidate.veteran) : candidate.veteran != null) return false; - if (webResponses != null ? !webResponses.equals(candidate.webResponses) : candidate.webResponses != null) - return false; - if (willRelocate != null ? !willRelocate.equals(candidate.willRelocate) : candidate.willRelocate != null) - return false; - if (workAuthorized != null ? !workAuthorized.equals(candidate.workAuthorized) : candidate.workAuthorized != null) - return false; - if (workHistories != null ? !workHistories.equals(candidate.workHistories) : candidate.workHistories != null) - return false; - if (customObject1s != null ? !customObject1s.equals(candidate.customObject1s) : candidate.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(candidate.customObject2s) : candidate.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(candidate.customObject3s) : candidate.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(candidate.customObject4s) : candidate.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(candidate.customObject5s) : candidate.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(candidate.customObject6s) : candidate.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(candidate.customObject7s) : candidate.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(candidate.customObject8s) : candidate.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(candidate.customObject9s) : candidate.customObject9s != null) - return false; - if (customObject10s != null ? !customObject10s.equals(candidate.customObject10s) : candidate.customObject10s != null) - return false; - if (customEncryptedText1 != null ? !customEncryptedText1.equals(candidate.customEncryptedText1) : candidate.customEncryptedText1 != null) - return false; - if (customEncryptedText2 != null ? !customEncryptedText2.equals(candidate.customEncryptedText2) : candidate.customEncryptedText2 != null) - return false; - if (customEncryptedText3 != null ? !customEncryptedText3.equals(candidate.customEncryptedText3) : candidate.customEncryptedText3 != null) - return false; - if (customEncryptedText4 != null ? !customEncryptedText4.equals(candidate.customEncryptedText4) : candidate.customEncryptedText4 != null) - return false; - if (customEncryptedText5 != null ? !customEncryptedText5.equals(candidate.customEncryptedText5) : candidate.customEncryptedText5 != null) - return false; - if (customEncryptedText6 != null ? !customEncryptedText6.equals(candidate.customEncryptedText6) : candidate.customEncryptedText6 != null) - return false; - if (customEncryptedText7 != null ? !customEncryptedText7.equals(candidate.customEncryptedText7) : candidate.customEncryptedText7 != null) - return false; - if (customEncryptedText8 != null ? !customEncryptedText8.equals(candidate.customEncryptedText8) : candidate.customEncryptedText8 != null) - return false; - if (customEncryptedText9 != null ? !customEncryptedText9.equals(candidate.customEncryptedText9) : candidate.customEncryptedText9 != null) - return false; - if (customEncryptedText10 != null ? !customEncryptedText10.equals(candidate.customEncryptedText10) : candidate.customEncryptedText10 != null) - return false; - return workPhone != null ? workPhone.equals(candidate.workPhone) : candidate.workPhone == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (luceneScore != null ? luceneScore.hashCode() : 0); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (canEnterTime != null ? canEnterTime.hashCode() : 0); - result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); - result = 31 * result + (categories != null ? categories.hashCode() : 0); - result = 31 * result + (category != null ? category.hashCode() : 0); - result = 31 * result + (certificationList != null ? certificationList.hashCode() : 0); - result = 31 * result + (certifications != null ? certifications.hashCode() : 0); - result = 31 * result + (clientCorporationBlackList != null ? clientCorporationBlackList.hashCode() : 0); - result = 31 * result + (clientCorporationWhiteList != null ? clientCorporationWhiteList.hashCode() : 0); - result = 31 * result + (comments != null ? comments.hashCode() : 0); - result = 31 * result + (companyName != null ? companyName.hashCode() : 0); - result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateAvailable != null ? dateAvailable.hashCode() : 0); - result = 31 * result + (dateAvailableEnd != null ? dateAvailableEnd.hashCode() : 0); - result = 31 * result + (dateI9Expiration != null ? dateI9Expiration.hashCode() : 0); - result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (dateNextCall != null ? dateNextCall.hashCode() : 0); - result = 31 * result + (dateOfBirth != null ? dateOfBirth.hashCode() : 0); - result = 31 * result + (dayRate != null ? dayRate.hashCode() : 0); - result = 31 * result + (dayRateLow != null ? dayRateLow.hashCode() : 0); - result = 31 * result + (degreeList != null ? degreeList.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (desiredLocations != null ? desiredLocations.hashCode() : 0); - result = 31 * result + (disability != null ? disability.hashCode() : 0); - result = 31 * result + (educationDegree != null ? educationDegree.hashCode() : 0); - result = 31 * result + (educations != null ? educations.hashCode() : 0); - result = 31 * result + (email != null ? email.hashCode() : 0); - result = 31 * result + (email2 != null ? email2.hashCode() : 0); - result = 31 * result + (email3 != null ? email3.hashCode() : 0); - result = 31 * result + (employeeType != null ? employeeType.hashCode() : 0); - result = 31 * result + (employmentPreference != null ? employmentPreference.hashCode() : 0); - result = 31 * result + (ethnicity != null ? ethnicity.hashCode() : 0); - result = 31 * result + (experience != null ? experience.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); - result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); - result = 31 * result + (federalAddtionalWitholdingsAmount != null ? federalAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (federalExemptions != null ? federalExemptions.hashCode() : 0); - result = 31 * result + (federalFilingStatus != null ? federalFilingStatus.hashCode() : 0); - result = 31 * result + (fileAttachments != null ? fileAttachments.hashCode() : 0); - result = 31 * result + (firstName != null ? firstName.hashCode() : 0); - result = 31 * result + (gender != null ? gender.hashCode() : 0); - result = 31 * result + (hourlyRate != null ? hourlyRate.hashCode() : 0); - result = 31 * result + (hourlyRateLow != null ? hourlyRateLow.hashCode() : 0); - result = 31 * result + (interviews != null ? interviews.hashCode() : 0); - result = 31 * result + (i9OnFile != null ? i9OnFile.hashCode() : 0); - result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isEditable != null ? isEditable.hashCode() : 0); - result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); - result = 31 * result + (isAnonymized != null ? isAnonymized.hashCode() : 0); - result = 31 * result + (lastName != null ? lastName.hashCode() : 0); - result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (localAddtionalWitholdingsAmount != null ? localAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (localExemptions != null ? localExemptions.hashCode() : 0); - result = 31 * result + (localFilingStatus != null ? localFilingStatus.hashCode() : 0); - result = 31 * result + (localTaxCode != null ? localTaxCode.hashCode() : 0); - result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); - result = 31 * result + (middleName != null ? middleName.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (mobile != null ? mobile.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); - result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); - result = 31 * result + (nickName != null ? nickName.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numCategories != null ? numCategories.hashCode() : 0); - result = 31 * result + (numOwners != null ? numOwners.hashCode() : 0); - result = 31 * result + (occupation != null ? occupation.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (pager != null ? pager.hashCode() : 0); - result = 31 * result + (paperWorkOnFile != null ? paperWorkOnFile.hashCode() : 0); - result = 31 * result + (password != null ? password.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); - result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); - result = 31 * result + (placements != null ? placements.hashCode() : 0); - result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); - result = 31 * result + (primarySkills != null ? primarySkills.hashCode() : 0); - result = 31 * result + (recentClientList != null ? recentClientList.hashCode() : 0); - result = 31 * result + (referredBy != null ? referredBy.hashCode() : 0); - result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); - result = 31 * result + (references != null ? references.hashCode() : 0); - result = 31 * result + (salary != null ? salary.hashCode() : 0); - result = 31 * result + (salaryLow != null ? salaryLow.hashCode() : 0); - result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); - result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); - result = 31 * result + (secondarySkills != null ? secondarySkills.hashCode() : 0); - result = 31 * result + (sendouts != null ? sendouts.hashCode() : 0); - result = 31 * result + (skillSet != null ? skillSet.hashCode() : 0); - result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); - result = 31 * result + (source != null ? source.hashCode() : 0); - result = 31 * result + (specialties != null ? specialties.hashCode() : 0); - result = 31 * result + (ssn != null ? ssn.hashCode() : 0); - result = 31 * result + (stateAddtionalWitholdingsAmount != null ? stateAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (stateExemptions != null ? stateExemptions.hashCode() : 0); - result = 31 * result + (stateFilingStatus != null ? stateFilingStatus.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (submissions != null ? submissions.hashCode() : 0); - result = 31 * result + (tasks != null ? tasks.hashCode() : 0); - result = 31 * result + (taxID != null ? taxID.hashCode() : 0); - result = 31 * result + (taxState != null ? taxState.hashCode() : 0); - result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); - result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); - result = 31 * result + (travelLimit != null ? travelLimit.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - result = 31 * result + (username != null ? username.hashCode() : 0); - result = 31 * result + (veteran != null ? veteran.hashCode() : 0); - result = 31 * result + (webResponses != null ? webResponses.hashCode() : 0); - result = 31 * result + (willRelocate != null ? willRelocate.hashCode() : 0); - result = 31 * result + (workAuthorized != null ? workAuthorized.hashCode() : 0); - result = 31 * result + (workHistories != null ? workHistories.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - result = 31 * result + (workPhone != null ? workPhone.hashCode() : 0); - result = 31 * result + ((customEncryptedText1 == null) ? 0 : customEncryptedText1.hashCode()); - result = 31 * result + ((customEncryptedText2 == null) ? 0 : customEncryptedText2.hashCode()); - result = 31 * result + ((customEncryptedText3 == null) ? 0 : customEncryptedText3.hashCode()); - result = 31 * result + ((customEncryptedText4 == null) ? 0 : customEncryptedText4.hashCode()); - result = 31 * result + ((customEncryptedText5 == null) ? 0 : customEncryptedText5.hashCode()); - result = 31 * result + ((customEncryptedText6 == null) ? 0 : customEncryptedText6.hashCode()); - result = 31 * result + ((customEncryptedText7 == null) ? 0 : customEncryptedText7.hashCode()); - result = 31 * result + ((customEncryptedText8 == null) ? 0 : customEncryptedText8.hashCode()); - result = 31 * result + ((customEncryptedText9 == null) ? 0 : customEncryptedText9.hashCode()); - result = 31 * result + ((customEncryptedText10 == null) ? 0 : customEncryptedText10.hashCode()); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull()); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); - } - if(canEnterTime != null){ - sb.append(lbc + "canEnterTime=").append(canEnterTime); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull()); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull()); - } - if(certificationList != null){ - sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull()); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientCorporationBlackList != null){ - sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull()); - } - if(clientCorporationWhiteList != null){ - sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull()); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(companyName != null){ - sb.append(lbc + "companyName=").append(companyName); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateAvailable != null){ - sb.append(lbc + "dateAvailable=").append(dateAvailable); - } - if(dateAvailableEnd != null){ - sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); - } - if(dateI9Expiration != null){ - sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateNextCall != null){ - sb.append(lbc + "dateNextCall=").append(dateNextCall); - } - if(dateOfBirth != null){ - sb.append(lbc + "dateOfBirth=").append(dateOfBirth); - } - if(dayRate != null){ - sb.append(lbc + "dayRate=").append(dayRate); - } - if(dayRateLow != null){ - sb.append(lbc + "dayRateLow=").append(dayRateLow); - } - if(degreeList != null){ - sb.append(lbc + "degreeList=").append(degreeList); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredLocations != null){ - sb.append(lbc + "desiredLocations=").append(desiredLocations); - } - if(disability != null){ - sb.append(lbc + "disability=").append(disability); - } - if(educationDegree != null){ - sb.append(lbc + "educationDegree=").append(educationDegree); - } - if(educations != null){ - sb.append(lbc + "educations=").append(educations.toStringNonNull()); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(employeeType != null){ - sb.append(lbc + "employeeType=").append(employeeType); - } - if(employmentPreference != null){ - sb.append(lbc + "employmentPreference=").append(employmentPreference); - } - if(ethnicity != null){ - sb.append(lbc + "ethnicity=").append(ethnicity); - } - if(experience != null){ - sb.append(lbc + "experience=").append(experience); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(federalAddtionalWitholdingsAmount != null){ - sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - } - if(federalExemptions != null){ - sb.append(lbc + "federalExemptions=").append(federalExemptions); - } - if(federalFilingStatus != null){ - sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); - } - if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(gender != null){ - sb.append(lbc + "gender=").append(gender); - } - if(hourlyRate != null){ - sb.append(lbc + "hourlyRate=").append(hourlyRate); - } - if(hourlyRateLow != null){ - sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); - } - if(interviews != null){ - sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); - } - if(i9OnFile != null){ - sb.append(lbc + "i9OnFile=").append(i9OnFile); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isEditable != null){ - sb.append(lbc + "isEditable=").append(isEditable); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(isAnonymized != null){ - sb.append(lbc + "isAnonymized=").append(isAnonymized); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(localAddtionalWitholdingsAmount != null){ - sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - } - if(localExemptions != null){ - sb.append(lbc + "localExemptions=").append(localExemptions); - } - if(localFilingStatus != null){ - sb.append(lbc + "localFilingStatus=").append(localFilingStatus); - } - if(localTaxCode != null){ - sb.append(lbc + "localTaxCode=").append(localTaxCode); - } - if(luceneScore != null){ - sb.append(lbc + "luceneScore=").append(luceneScore); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull()); - } - if(numCategories != null){ - sb.append(lbc + "numCategories=").append(numCategories); - } - if(numOwners != null){ - sb.append(lbc + "numOwners=").append(numOwners); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull()); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(paperWorkOnFile != null){ - sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(placements != null){ - sb.append(lbc + "placements=").append(placements.toStringNonNull()); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(primarySkills != null){ - sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull()); - } - if(recentClientList != null){ - sb.append(lbc + "recentClientList=").append(recentClientList); - } - if(referredBy != null){ - sb.append(lbc + "referredBy=").append(referredBy); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); - } - if(references != null){ - sb.append(lbc + "references=").append(references.toStringNonNull()); - } - if(salary != null){ - sb.append(lbc + "salary=").append(salary); - } - if(salaryLow != null){ - sb.append(lbc + "salaryLow=").append(salaryLow); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); - } - if(secondarySkills != null){ - sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull()); - } - if(sendouts != null){ - sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); - } - if(skillSet != null){ - sb.append(lbc + "skillSet=").append(skillSet); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); - } - if(ssn != null){ - sb.append(lbc + "ssn=").append(ssn); - } - if(stateAddtionalWitholdingsAmount != null){ - sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - } - if(stateExemptions != null){ - sb.append(lbc + "stateExemptions=").append(stateExemptions); - } - if(stateFilingStatus != null){ - sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(submissions != null){ - sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); - } - if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); - } - if(taxID != null){ - sb.append(lbc + "taxID=").append(taxID); - } - if(taxState != null){ - sb.append(lbc + "taxState=").append(taxState); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(travelLimit != null){ - sb.append(lbc + "travelLimit=").append(travelLimit); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(veteran != null){ - sb.append(lbc + "veteran=").append(veteran); - } - if(webResponses != null){ - sb.append(lbc + "webResponses=").append(webResponses); - } - if(willRelocate != null){ - sb.append(lbc + "willRelocate=").append(willRelocate); - } - if(workAuthorized != null){ - sb.append(lbc + "workAuthorized=").append(workAuthorized); - } - if(workHistories != null){ - sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull()); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - if(customEncryptedText1 != null){ - sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); - } - if(customEncryptedText2 != null){ - sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); - } - if(customEncryptedText3 != null){ - sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); - } - if(customEncryptedText4 != null){ - sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); - } - if(customEncryptedText5 != null){ - sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); - } - if(customEncryptedText6 != null){ - sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); - } - if(customEncryptedText7 != null){ - sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); - } - if(customEncryptedText8 != null){ - sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); - } - if(customEncryptedText9 != null){ - sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); - } - if(customEncryptedText10 != null){ - sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); - } - if(workPhone != null){ - sb.append(lbc + "workPhone=").append(workPhone); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); - } - if(canEnterTime != null){ - sb.append(lbc + "canEnterTime=").append(canEnterTime); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); - } - if(certificationList != null){ - sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull(includeLineBreaks)); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientCorporationBlackList != null){ - sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull(includeLineBreaks)); - } - if(clientCorporationWhiteList != null){ - sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull(includeLineBreaks)); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(companyName != null){ - sb.append(lbc + "companyName=").append(companyName); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateAvailable != null){ - sb.append(lbc + "dateAvailable=").append(dateAvailable); - } - if(dateAvailableEnd != null){ - sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); - } - if(dateI9Expiration != null){ - sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateNextCall != null){ - sb.append(lbc + "dateNextCall=").append(dateNextCall); - } - if(dateOfBirth != null){ - sb.append(lbc + "dateOfBirth=").append(dateOfBirth); - } - if(dayRate != null){ - sb.append(lbc + "dayRate=").append(dayRate); - } - if(dayRateLow != null){ - sb.append(lbc + "dayRateLow=").append(dayRateLow); - } - if(degreeList != null){ - sb.append(lbc + "degreeList=").append(degreeList); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredLocations != null){ - sb.append(lbc + "desiredLocations=").append(desiredLocations); - } - if(disability != null){ - sb.append(lbc + "disability=").append(disability); - } - if(educationDegree != null){ - sb.append(lbc + "educationDegree=").append(educationDegree); - } - if(educations != null){ - sb.append(lbc + "educations=").append(educations.toStringNonNull(includeLineBreaks)); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(employeeType != null){ - sb.append(lbc + "employeeType=").append(employeeType); - } - if(employmentPreference != null){ - sb.append(lbc + "employmentPreference=").append(employmentPreference); - } - if(ethnicity != null){ - sb.append(lbc + "ethnicity=").append(ethnicity); - } - if(experience != null){ - sb.append(lbc + "experience=").append(experience); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(federalAddtionalWitholdingsAmount != null){ - sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - } - if(federalExemptions != null){ - sb.append(lbc + "federalExemptions=").append(federalExemptions); - } - if(federalFilingStatus != null){ - sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); - } - if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(gender != null){ - sb.append(lbc + "gender=").append(gender); - } - if(hourlyRate != null){ - sb.append(lbc + "hourlyRate=").append(hourlyRate); - } - if(hourlyRateLow != null){ - sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); - } - if(interviews != null){ - sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); - } - if(i9OnFile != null){ - sb.append(lbc + "i9OnFile=").append(i9OnFile); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isEditable != null){ - sb.append(lbc + "isEditable=").append(isEditable); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(isAnonymized != null){ - sb.append(lbc + "isAnonymized=").append(isAnonymized); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull(includeLineBreaks)); - } - if(localAddtionalWitholdingsAmount != null){ - sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - } - if(localExemptions != null){ - sb.append(lbc + "localExemptions=").append(localExemptions); - } - if(localFilingStatus != null){ - sb.append(lbc + "localFilingStatus=").append(localFilingStatus); - } - if(localTaxCode != null){ - sb.append(lbc + "localTaxCode=").append(localTaxCode); - } - if(luceneScore != null){ - sb.append(lbc + "luceneScore=").append(luceneScore); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); - } - if(numCategories != null){ - sb.append(lbc + "numCategories=").append(numCategories); - } - if(numOwners != null){ - sb.append(lbc + "numOwners=").append(numOwners); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(paperWorkOnFile != null){ - sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(placements != null){ - sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(primarySkills != null){ - sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); - } - if(recentClientList != null){ - sb.append(lbc + "recentClientList=").append(recentClientList); - } - if(referredBy != null){ - sb.append(lbc + "referredBy=").append(referredBy); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); - } - if(references != null){ - sb.append(lbc + "references=").append(references.toStringNonNull(includeLineBreaks)); - } - if(salary != null){ - sb.append(lbc + "salary=").append(salary); - } - if(salaryLow != null){ - sb.append(lbc + "salaryLow=").append(salaryLow); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); - } - if(secondarySkills != null){ - sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); - } - if(sendouts != null){ - sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); - } - if(skillSet != null){ - sb.append(lbc + "skillSet=").append(skillSet); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); - } - if(ssn != null){ - sb.append(lbc + "ssn=").append(ssn); - } - if(stateAddtionalWitholdingsAmount != null){ - sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - } - if(stateExemptions != null){ - sb.append(lbc + "stateExemptions=").append(stateExemptions); - } - if(stateFilingStatus != null){ - sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(submissions != null){ - sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); - } - if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); - } - if(taxID != null){ - sb.append(lbc + "taxID=").append(taxID); - } - if(taxState != null){ - sb.append(lbc + "taxState=").append(taxState); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(travelLimit != null){ - sb.append(lbc + "travelLimit=").append(travelLimit); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(veteran != null){ - sb.append(lbc + "veteran=").append(veteran); - } - if(webResponses != null){ - sb.append(lbc + "webResponses=").append(webResponses); - } - if(willRelocate != null){ - sb.append(lbc + "willRelocate=").append(willRelocate); - } - if(workAuthorized != null){ - sb.append(lbc + "workAuthorized=").append(workAuthorized); - } - if(workHistories != null){ - sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull(includeLineBreaks)); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(customEncryptedText1 != null){ - sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); - } - if(customEncryptedText2 != null){ - sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); - } - if(customEncryptedText3 != null){ - sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); - } - if(customEncryptedText4 != null){ - sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); - } - if(customEncryptedText5 != null){ - sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); - } - if(customEncryptedText6 != null){ - sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); - } - if(customEncryptedText7 != null){ - sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); - } - if(customEncryptedText8 != null){ - sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); - } - if(customEncryptedText9 != null){ - sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); - } - if(customEncryptedText10 != null){ - sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); - } - if(workPhone != null){ - sb.append(lbc + "workPhone=").append(workPhone); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", branch=").append(branch); - sb.append(", businessSectors=").append(businessSectors); - sb.append(", canEnterTime=").append(canEnterTime); - sb.append(", categories=").append(categories); - sb.append(", category=").append(category); - sb.append(", certificationList=").append(certificationList); - sb.append(", certifications=").append(certifications); - sb.append(", clientCorporationBlackList=").append(clientCorporationBlackList); - sb.append(", clientCorporationWhiteList=").append(clientCorporationWhiteList); - sb.append(", comments=").append(comments); - sb.append(", companyName=").append(companyName); - sb.append(", companyURL=").append(companyURL); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateAvailable=").append(dateAvailable); - sb.append(", dateAvailableEnd=").append(dateAvailableEnd); - sb.append(", dateI9Expiration=").append(dateI9Expiration); - sb.append(", dateLastComment=").append(dateLastComment); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", dateNextCall=").append(dateNextCall); - sb.append(", dateOfBirth=").append(dateOfBirth); - sb.append(", dayRate=").append(dayRate); - sb.append(", dayRateLow=").append(dayRateLow); - sb.append(", degreeList=").append(degreeList); - sb.append(", description=").append(description); - sb.append(", desiredLocations=").append(desiredLocations); - sb.append(", disability=").append(disability); - sb.append(", educationDegree=").append(educationDegree); - sb.append(", educations=").append(educations); - sb.append(", email=").append(email); - sb.append(", email2=").append(email2); - sb.append(", email3=").append(email3); - sb.append(", employeeType=").append(employeeType); - sb.append(", employmentPreference=").append(employmentPreference); - sb.append(", ethnicity=").append(ethnicity); - sb.append(", experience=").append(experience); - sb.append(", externalID=").append(externalID); - sb.append(", fax=").append(fax); - sb.append(", fax2=").append(fax2); - sb.append(", fax3=").append(fax3); - sb.append(", federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - sb.append(", federalExemptions=").append(federalExemptions); - sb.append(", federalFilingStatus=").append(federalFilingStatus); - sb.append(", fileAttachments=").append(fileAttachments); - sb.append(", firstName=").append(firstName); - sb.append(", gender=").append(gender); - sb.append(", hourlyRate=").append(hourlyRate); - sb.append(", hourlyRateLow=").append(hourlyRateLow); - sb.append(", interviews=").append(interviews); - sb.append(", i9OnFile=").append(i9OnFile); - sb.append(", isDayLightSavings=").append(isDayLightSavings); - sb.append(", isDeleted=").append(isDeleted); - sb.append(", isEditable=").append(isEditable); - sb.append(", isLockedOut=").append(isLockedOut); - sb.append(", isAnonymized=").append(isAnonymized); - sb.append(", lastName=").append(lastName); - sb.append(", linkedPerson=").append(linkedPerson); - sb.append(", leads=").append(leads); - sb.append(", localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - sb.append(", localExemptions=").append(localExemptions); - sb.append(", localFilingStatus=").append(localFilingStatus); - sb.append(", localTaxCode=").append(localTaxCode); - sb.append(", luceneScore=").append(luceneScore); - sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName=").append(middleName); - sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile=").append(mobile); - sb.append(", name=").append(name); - sb.append(", namePrefix=").append(namePrefix); - sb.append(", nameSuffix=").append(nameSuffix); - sb.append(", nickName=").append(nickName); - sb.append(", notes=").append(notes); - sb.append(", numCategories=").append(numCategories); - sb.append(", numOwners=").append(numOwners); - sb.append(", occupation=").append(occupation); - sb.append(", owner=").append(owner); - sb.append(", pager=").append(pager); - sb.append(", paperWorkOnFile=").append(paperWorkOnFile); - sb.append(", password=").append(password); - sb.append(", phone=").append(phone); - sb.append(", phone2=").append(phone2); - sb.append(", phone3=").append(phone3); - sb.append(", placements=").append(placements); - sb.append(", preferredContact=").append(preferredContact); - sb.append(", primarySkills=").append(primarySkills); - sb.append(", recentClientList=").append(recentClientList); - sb.append(", referredBy=").append(referredBy); - sb.append(", referredByPerson=").append(referredByPerson); - sb.append(", references=").append(references); - sb.append(", salary=").append(salary); - sb.append(", salaryLow=").append(salaryLow); - sb.append(", secondaryAddress=").append(secondaryAddress); - sb.append(", secondaryOwners=").append(secondaryOwners); - sb.append(", secondarySkills=").append(secondarySkills); - sb.append(", sendouts=").append(sendouts); - sb.append(", skillSet=").append(skillSet); - sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source=").append(source); - sb.append(", specialties=").append(specialties); - sb.append(", ssn=").append(ssn); - sb.append(", stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - sb.append(", stateExemptions=").append(stateExemptions); - sb.append(", stateFilingStatus=").append(stateFilingStatus); - sb.append(", status=").append(status); - sb.append(", submissions=").append(submissions); - sb.append(", tasks=").append(tasks); - sb.append(", taxID=").append(taxID); - sb.append(", taxState=").append(taxState); - sb.append(", tearsheets=").append(tearsheets); - sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", travelLimit=").append(travelLimit); - sb.append(", type=").append(type); - sb.append(", username=").append(username); - sb.append(", veteran=").append(veteran); - sb.append(", webResponses=").append(webResponses); - sb.append(", willRelocate=").append(willRelocate); - sb.append(", workAuthorized=").append(workAuthorized); - sb.append(", workHistories=").append(workHistories); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append(", customEncryptedText1=").append(customEncryptedText1); - sb.append(", customEncryptedText2=").append(customEncryptedText2); - sb.append(", customEncryptedText3=").append(customEncryptedText3); - sb.append(", customEncryptedText4=").append(customEncryptedText4); - sb.append(", customEncryptedText5=").append(customEncryptedText5); - sb.append(", customEncryptedText6=").append(customEncryptedText6); - sb.append(", customEncryptedText7=").append(customEncryptedText7); - sb.append(", customEncryptedText8=").append(customEncryptedText8); - sb.append(", customEncryptedText9=").append(customEncryptedText9); - sb.append(", customEncryptedText10=").append(customEncryptedText10); - sb.append(", workPhone=").append(workPhone); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import java.math.BigDecimal; + +import javax.validation.constraints.Size; + +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsF; +import org.hibernate.validator.constraints.Email; +import org.joda.time.DateTime; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.response.file.standard.StandardFileAttachment; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "canEnterTime", "categories", "category", "certificationList", "certifications", + "clientCorporationBlackList", "clientCorporationWhiteList", "comments", "companyName", "companyURL", "customDate1", "customDate10", + "customDate11", "customDate12", "customDate13","customDate2", "customDate3", "customDate4", "customDate5", "customDate6", "customDate7", + "customDate8", "customDate9", "customFloat1", "customFloat10", "customFloat11","customFloat12", "customFloat13", "customFloat14", "customFloat15", + "customFloat16", "customFloat17", "customFloat18", "customFloat19", "customFloat2", "customFloat20", "customFloat21", "customFloat22", + "customFloat23", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customFloat7", "customFloat8", "customFloat9", + "customInt1", "customInt10", "customInt11", "customInt12", "customInt13", "customInt14", "customInt15", "customInt16", + "customInt17", "customInt18", "customInt19", "customInt2", "customInt20", "customInt21", "customInt22", "customInt23", + "customInt3", "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customText1", + "customText10", "customText11", "customText12", "customText13", "customText14", "customText15", "customText16", "customText17", + "customText18", "customText19", "customText2", "customText20", "customText21", "customText22", "customText23", + "customText24", "customText25", "customText26", "customText27", "customText28", "customText29", "customText3", "customText30", + "customText31", "customText32", "customText33", "customText34", "customText35", "customText36", "customText37", "customText38", + "customText39", "customText4", "customText40", "customText5", "customText6", + "customText7", "customText8", "customText9", "customTextBlock1", "customTextBlock10", "customTextBlock2", "customTextBlock3", + "customTextBlock4", "customTextBlock5", "customTextBlock6", "customTextBlock7", "customTextBlock8", "customTextBlock9", + "dateAdded", "dateAvailable", "dateAvailableEnd", "dateI9Expiration", "dateLastComment", "dateLastModified", "dateNextCall", + "dateOfBirth", "dayRate", "dayRateLow", "degreeList", "description", "desiredLocations", "disability", "educationDegree", + "educations", "email", "email2", "email3", "employeeType", "employmentPreference", "customEncryptedText1", "customEncryptedText2", + "customEncryptedText3", "customEncryptedText4", "customEncryptedText5", "customEncryptedText6", "customEncryptedText7", "customEncryptedText8", + "customEncryptedText9", "customEncryptedText10", "ethnicity", "experience", "externalID", "fax", + "fax2", "fax3", "federalAddtionalWitholdingsAmount", "federalExemptions", "federalFilingStatus", "fileAttachments", "firstName", + "gender", "hourlyRate", "hourlyRateLow", "i9OnFile", "isAnonymized", "isDayLightSavings", "isDeleted", "isEditable", "isLockedOut", "interviews", + "lastName", "linkedPerson", "leads", "localAddtionalWitholdingsAmount", "localExemptions", "localFilingStatus", "localTaxCode", + "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", "namePrefix", "nameSuffix", "nickName", "notes", "numCategories", + "numOwners", "occupation", "owner", "pager", "paperWorkOnFile", "password", "phone", "phone2", "phone3", "placements", + "preferredContact", "primarySkills", "recentClientList", "referredBy", "referredByPerson", "references", "salary", "salaryLow", + "secondaryAddress", "secondaryOwners", "secondarySkills", "sendouts", "skillSet", "smsOptIn", "source", "specialties", + "submissions", "ssn", "stateAddtionalWitholdingsAmount", "stateExemptions", "stateFilingStatus", "status", "tasks", "taxID", + "taxState", "tearsheets", "timeZoneOffsetEST", "travelLimit", "type", "username", "veteran", "webResponses", "willRelocate", "workAuthorized", + "workHistories", "workPhone", "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", + "customObject7s", "customObject8s", "customObject9s", "customObject10s" }) +public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, + AssociationEntity, DateLastModifiedEntity, EditHistoryEntity { + + private BigDecimal luceneScore; + + private Integer id; + + private Address address; + + private Branch branch; + + private OneToMany businessSectors; + + private Boolean canEnterTime; + + private OneToMany categories; + + private Category category; + + private OneToMany certificationList; + + @JsonIgnore + private String certifications; + + private OneToMany clientCorporationBlackList; + + private OneToMany clientCorporationWhiteList; + + @JsonIgnore + private String comments; + + @JsonIgnore + @Size(max = 100) + private String companyName; + + @JsonIgnore + @Size(max = 100) + private String companyURL; + + private DateTime dateAdded; + + private DateTime dateAvailable; + + private DateTime dateAvailableEnd; + + private DateTime dateI9Expiration; + + private DateTime dateLastComment; + + private DateTime dateLastModified; + + private DateTime dateNextCall; + + private DateTime dateOfBirth; + + private BigDecimal dayRate; + + private BigDecimal dayRateLow; + + @JsonIgnore + private String degreeList; + + @JsonIgnore + private String description; + + @JsonIgnore + private String desiredLocations; + + @JsonIgnore + @Size(max = 1) + private String disability; + + @JsonIgnore + private String educationDegree; + + private OneToMany educations; + + @JsonIgnore + @Email + @Size(max = 100) + private String email; + + @JsonIgnore + @Email + @Size(max = 100) + private String email2; + + @JsonIgnore + @Email + @Size(max = 100) + private String email3; + + @JsonIgnore + @Size(max = 30) + private String employeeType; + + @JsonIgnore + @Size(max = 200) + private String employmentPreference; + + @JsonIgnore + @Size(max = 50) + private String ethnicity; + + private Integer experience; + + @JsonIgnore + @Size(max = 50) + private String externalID; + + @JsonIgnore + @Size(max = 20) + private String fax; + + @JsonIgnore + @Size(max = 20) + private String fax2; + + @JsonIgnore + @Size(max = 20) + private String fax3; + + private BigDecimal federalAddtionalWitholdingsAmount; + + private Integer federalExemptions; + + @JsonIgnore + private String federalFilingStatus; + + private OneToMany fileAttachments; + + @JsonIgnore + @Size(max = 50) + private String firstName; + + @JsonIgnore + @Size(max = 6) + private String gender; + + private BigDecimal hourlyRate; + + private BigDecimal hourlyRateLow; + + private OneToMany interviews; + + private Integer i9OnFile; + + private Boolean isDayLightSavings; + + private Boolean isDeleted; + + private Boolean isEditable; + + private Boolean isLockedOut; + + private Boolean isAnonymized; + + @JsonIgnore + @Size(max = 50) + private String lastName; + + private Person linkedPerson; + + private OneToMany leads; + + private BigDecimal localAddtionalWitholdingsAmount; + + private Integer localExemptions; + + @JsonIgnore + private String localFilingStatus; + + @JsonIgnore + private String localTaxCode; + + private Boolean massMailOptOut; + + @JsonIgnore + @Size(max = 50) + private String middleName; + + private Object migrateGUID; + + @JsonIgnore + @Size(max = 20) + private String mobile; + + @JsonIgnore + private String name; + + @JsonIgnore + @Size(max = 5) + private String namePrefix; + + @JsonIgnore + @Size(max = 5) + private String nameSuffix; + + @JsonIgnore + private String nickName; + + private OneToMany notes; + + private Integer numCategories; + + private Integer numOwners; + + @JsonIgnore + @Size(max = 50) + private String occupation; + + private CorporateUser owner; + + @JsonIgnore + @Size(max = 20) + private String pager; + + @JsonIgnore + private String paperWorkOnFile; + + @JsonIgnore + private String password; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + @Size(max = 20) + private String phone2; + + @JsonIgnore + @Size(max = 20) + private String phone3; + + private OneToMany placements; + + @JsonIgnore + @Size(max = 15) + private String preferredContact; + + private OneToMany primarySkills; + + @JsonIgnore + private String recentClientList; + + @JsonIgnore + @Size(max = 50) + private String referredBy; + + private Person referredByPerson; + + private OneToMany references; + + private BigDecimal salary; + + private BigDecimal salaryLow; + + private Address secondaryAddress; + + private OneToMany secondaryOwners; + + private OneToMany secondarySkills; + + private OneToMany sendouts; + + @JsonIgnore + private String skillSet; + + private Boolean smsOptIn; + + @JsonIgnore + private String source; + + private OneToMany specialties; + + @JsonIgnore + @Size(max = 18) + private String ssn; + + private BigDecimal stateAddtionalWitholdingsAmount; + + private Integer stateExemptions; + + @JsonIgnore + private String stateFilingStatus; + + @JsonIgnore + @Size(max = 100) + private String status; + + private OneToMany submissions; + + private OneToMany tasks; + + @JsonIgnore + @Size(max = 18) + private String taxID; + + @JsonIgnore + private String taxState; + + private OneToMany tearsheets; + + private Integer timeZoneOffsetEST; + + private Integer travelLimit; + + @JsonIgnore + @Size(max = 100) + private String type; + + @JsonIgnore + private String username; + + @JsonIgnore + @Size(max = 1) + private String veteran; + + private OneToMany webResponses; + + private Boolean willRelocate; + + private Boolean workAuthorized; + + private OneToMany workHistories; + + @JsonIgnore + @Size(max = 20) + private String workPhone; + + @JsonIgnore + private String customEncryptedText1; + + @JsonIgnore + private String customEncryptedText2; + + @JsonIgnore + private String customEncryptedText3; + + @JsonIgnore + private String customEncryptedText4; + + @JsonIgnore + private String customEncryptedText5; + + @JsonIgnore + private String customEncryptedText6; + + @JsonIgnore + private String customEncryptedText7; + + @JsonIgnore + private String customEncryptedText8; + + @JsonIgnore + private String customEncryptedText9; + + @JsonIgnore + private String customEncryptedText10; + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + public Candidate() { + super(); + } + + public Candidate(Integer id) { + super(); + this.id = id; + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public Candidate instantiateForInsert() { + Candidate entity = new Candidate(); + entity.setCategory(new Category(512973)); + entity.setComments("New lead candidate"); + entity.setEmployeeType("W2"); + entity.setIsDeleted(Boolean.FALSE); + entity.setIsEditable(Boolean.TRUE); + entity.setPreferredContact("Email"); + entity.setStatus("New Lead"); + entity.setOwner(new CorporateUser(1)); + entity.setName(""); + entity.setFirstName(""); + entity.setLastName(""); + entity.setUsername(new DateTime().toString()); + entity.setPassword("secret"); + return entity; + } + + public static void setRequiredFieldsForInsert(Candidate candidate) { + if (candidate.getCategory() == null) { + candidate.setCategory(new Category(512973)); + } + if (candidate.getComments() == null) { + candidate.setComments("New lead candidate"); + } + if (candidate.getEmployeeType() == null) { + candidate.setEmployeeType("W2"); + } + if (candidate.getIsDeleted() == null) { + candidate.setIsDeleted(Boolean.FALSE); + } + if (candidate.getIsEditable() == null) { + candidate.setIsEditable(Boolean.FALSE); + } + if (candidate.getPreferredContact() == null) { + candidate.setPreferredContact("Email"); + } + if (candidate.getStatus() == null) { + candidate.setStatus("New Lead"); + } + if (candidate.getOwner() == null) { + candidate.setOwner(new CorporateUser(1)); + } + if (candidate.getUsername() == null) { + candidate.setUsername(new DateTime().toString()); + } + if (candidate.getPassword() == null) { + candidate.setPassword("secret"); + } + + if (candidate.getName() == null) { + if (candidate.getFirstName() != null && candidate.getLastName() != null) { + candidate.setName(candidate.getFirstName() + " " + candidate.getLastName()); + } else { + candidate.setName(""); + } + } + + } + + @JsonIgnore + public BigDecimal getLuceneScore() { + return luceneScore; + } + + @JsonProperty("_score") + public void setLuceneScore(BigDecimal luceneScore) { + this.luceneScore = luceneScore; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonIgnore + public OneToMany getBusinessSectors() { + return businessSectors; + } + + @JsonProperty("businessSectors") + public void setBusinessSectors(OneToMany businessSectors) { + this.businessSectors = businessSectors; + } + + @JsonProperty("canEnterTime") + public Boolean getCanEnterTime() { + return canEnterTime; + } + + @JsonProperty("canEnterTime") + public void setCanEnterTime(Boolean canEnterTime) { + this.canEnterTime = canEnterTime; + } + + @JsonIgnore + public OneToMany getCategories() { + return categories; + } + + @JsonProperty("categories") + public void setCategories(OneToMany categories) { + this.categories = categories; + } + + @JsonProperty("category") + public Category getCategory() { + return category; + } + + @JsonProperty("category") + public void setCategory(Category category) { + this.category = category; + } + + @JsonIgnore + public OneToMany getCertificationList() { + return certificationList; + } + + @ReadOnly + @JsonProperty("certificationList") + public void setCertificationList(OneToMany certificationList) { + this.certificationList = certificationList; + } + + @JsonProperty("certifications") + public String getCertifications() { + return certifications; + } + + @JsonIgnore + public void setCertifications(String certifications) { + this.certifications = certifications; + } + + @JsonProperty("clientCorporationBlackList") + public OneToMany getClientCorporationBlackList() { + return clientCorporationBlackList; + } + + @ReadOnly + @JsonProperty("clientCorporationBlackList") + public void setClientCorporationBlackList(OneToMany clientCorporationBlackList) { + this.clientCorporationBlackList = clientCorporationBlackList; + } + + @JsonProperty("clientCorporationWhiteList") + public OneToMany getClientCorporationWhiteList() { + return clientCorporationWhiteList; + } + + @ReadOnly + @JsonProperty("clientCorporationWhiteList") + public void setClientCorporationWhiteList(OneToMany clientCorporationWhiteList) { + this.clientCorporationWhiteList = clientCorporationWhiteList; + } + + @JsonProperty("comments") + public String getComments() { + return comments; + } + + @JsonIgnore + public void setComments(String comments) { + this.comments = comments; + } + + @JsonProperty("companyName") + public String getCompanyName() { + return companyName; + } + + @JsonIgnore + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + @JsonProperty("companyURL") + public String getCompanyURL() { + return companyURL; + } + + @JsonIgnore + public void setCompanyURL(String companyURL) { + this.companyURL = companyURL; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateAvailable") + public DateTime getDateAvailable() { + return dateAvailable; + } + + @JsonProperty("dateAvailable") + public void setDateAvailable(DateTime dateAvailable) { + this.dateAvailable = dateAvailable; + } + + @JsonProperty("dateAvailableEnd") + public DateTime getDateAvailableEnd() { + return dateAvailableEnd; + } + + @JsonProperty("dateAvailableEnd") + public void setDateAvailableEnd(DateTime dateAvailableEnd) { + this.dateAvailableEnd = dateAvailableEnd; + } + + @JsonProperty("dateI9Expiration") + public DateTime getDateI9Expiration() { + return dateI9Expiration; + } + + @JsonProperty("dateI9Expiration") + public void setDateI9Expiration(DateTime dateI9Expiration) { + this.dateI9Expiration = dateI9Expiration; + } + + @JsonProperty("dateLastComment") + public DateTime getDateLastComment() { + return dateLastComment; + } + + @ReadOnly + @JsonProperty("dateLastComment") + public void setDateLastComment(DateTime dateLastComment) { + this.dateLastComment = dateLastComment; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + + @JsonProperty("dateNextCall") + public DateTime getDateNextCall() { + return dateNextCall; + } + + @JsonProperty("dateNextCall") + public void setDateNextCall(DateTime dateNextCall) { + this.dateNextCall = dateNextCall; + } + + @JsonProperty("dateOfBirth") + public DateTime getDateOfBirth() { + return dateOfBirth; + } + + @JsonProperty("dateOfBirth") + public void setDateOfBirth(DateTime dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } + + @JsonProperty("dayRate") + public BigDecimal getDayRate() { + return dayRate; + } + + @JsonProperty("dayRate") + public void setDayRate(BigDecimal dayRate) { + this.dayRate = dayRate; + } + + @JsonProperty("dayRateLow") + public BigDecimal getDayRateLow() { + return dayRateLow; + } + + @JsonProperty("dayRateLow") + public void setDayRateLow(BigDecimal dayRateLow) { + this.dayRateLow = dayRateLow; + } + + @JsonProperty("degreeList") + public String getDegreeList() { + return degreeList; + } + + @JsonIgnore + public void setDegreeList(String degreeList) { + this.degreeList = degreeList; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonIgnore + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("desiredLocations") + public String getDesiredLocations() { + return desiredLocations; + } + + @JsonIgnore + public void setDesiredLocations(String desiredLocations) { + this.desiredLocations = desiredLocations; + } + + @JsonProperty("disability") + public String getDisability() { + return disability; + } + + @JsonIgnore + public void setDisability(String disability) { + this.disability = disability; + } + + @JsonProperty("educationDegree") + public String getEducationDegree() { + return educationDegree; + } + + @JsonIgnore + public void setEducationDegree(String educationDegree) { + this.educationDegree = educationDegree; + } + + @JsonProperty("educations") + public OneToMany getEducations() { + return educations; + } + + @ReadOnly + @JsonProperty("educations") + public void setEducations(OneToMany educations) { + this.educations = educations; + } + + @JsonProperty("email") + public String getEmail() { + return email; + } + + @JsonIgnore + public void setEmail(String email) { + this.email = email; + } + + @JsonProperty("email2") + public String getEmail2() { + return email2; + } + + @JsonIgnore + public void setEmail2(String email2) { + this.email2 = email2; + } + + @JsonProperty("email3") + public String getEmail3() { + return email3; + } + + @JsonIgnore + public void setEmail3(String email3) { + this.email3 = email3; + } + + @JsonProperty("employeeType") + public String getEmployeeType() { + return employeeType; + } + + @JsonIgnore + public void setEmployeeType(String employeeType) { + this.employeeType = employeeType; + } + + @JsonProperty("employmentPreference") + public String getEmploymentPreference() { + return employmentPreference; + } + + @JsonIgnore + public void setEmploymentPreference(String employmentPreference) { + this.employmentPreference = employmentPreference; + } + + @JsonProperty("ethnicity") + public String getEthnicity() { + return ethnicity; + } + + @JsonIgnore + public void setEthnicity(String ethnicity) { + this.ethnicity = ethnicity; + } + + @JsonProperty("experience") + public Integer getExperience() { + return experience; + } + + @JsonProperty("experience") + public void setExperience(Integer experience) { + this.experience = experience; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonIgnore + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("fax2") + public String getFax2() { + return fax2; + } + + @JsonIgnore + public void setFax2(String fax2) { + this.fax2 = fax2; + } + + @JsonProperty("fax3") + public String getFax3() { + return fax3; + } + + @JsonIgnore + public void setFax3(String fax3) { + this.fax3 = fax3; + } + + @JsonProperty("federalAddtionalWitholdingsAmount") + public BigDecimal getFederalAddtionalWitholdingsAmount() { + return federalAddtionalWitholdingsAmount; + } + + @JsonProperty("federalAddtionalWitholdingsAmount") + public void setFederalAddtionalWitholdingsAmount(BigDecimal federalAddtionalWitholdingsAmount) { + this.federalAddtionalWitholdingsAmount = federalAddtionalWitholdingsAmount; + } + + @JsonProperty("federalExemptions") + public Integer getFederalExemptions() { + return federalExemptions; + } + + @JsonProperty("federalExemptions") + public void setFederalExemptions(Integer federalExemptions) { + this.federalExemptions = federalExemptions; + } + + @JsonProperty("federalFilingStatus") + public String getFederalFilingStatus() { + return federalFilingStatus; + } + + @JsonIgnore + public void setFederalFilingStatus(String federalFilingStatus) { + this.federalFilingStatus = federalFilingStatus; + } + + @JsonProperty("fileAttachments") + public OneToMany getFileAttachments() { + return fileAttachments; + } + + @ReadOnly + @JsonProperty("fileAttachments") + public void setFileAttachments(OneToMany fileAttachments) { + this.fileAttachments = fileAttachments; + } + + @JsonProperty("firstName") + public String getFirstName() { + return firstName; + } + + @JsonIgnore + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + @JsonProperty("gender") + public String getGender() { + return gender; + } + + @JsonIgnore + public void setGender(String gender) { + this.gender = gender; + } + + @JsonProperty("hourlyRate") + public BigDecimal getHourlyRate() { + return hourlyRate; + } + + @JsonProperty("hourlyRate") + public void setHourlyRate(BigDecimal hourlyRate) { + this.hourlyRate = hourlyRate; + } + + @JsonProperty("hourlyRateLow") + public BigDecimal getHourlyRateLow() { + return hourlyRateLow; + } + + @JsonProperty("hourlyRateLow") + public void setHourlyRateLow(BigDecimal hourlyRateLow) { + this.hourlyRateLow = hourlyRateLow; + } + + @JsonProperty("interviews") + public OneToMany getInterviews() { + return interviews; + } + + @ReadOnly + @JsonProperty("interviews") + public void setInterviews(OneToMany interviews) { + this.interviews = interviews; + } + + @JsonProperty("i9OnFile") + public Integer getI9OnFile() { + return i9OnFile; + } + + @JsonProperty("i9OnFile") + public void setI9OnFile(Integer i9OnFile) { + this.i9OnFile = i9OnFile; + } + + @JsonProperty("isDayLightSavings") + public Boolean getIsDayLightSavings() { + return isDayLightSavings; + } + + @JsonProperty("isDayLightSavings") + public void setIsDayLightSavings(Boolean isDayLightSavings) { + this.isDayLightSavings = isDayLightSavings; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isEditable") + public Boolean getIsEditable() { + return isEditable; + } + + @JsonProperty("isEditable") + public void setIsEditable(Boolean isEditable) { + this.isEditable = isEditable; + } + + @JsonProperty("isLockedOut") + public Boolean getIsLockedOut() { + return isLockedOut; + } + + @JsonProperty("isLockedOut") + public void setIsLockedOut(Boolean isLockedOut) { + this.isLockedOut = isLockedOut; + } + + @JsonProperty("isAnonymized") + public Boolean getIsAnonymized() { + return isAnonymized; + } + + @JsonProperty("isAnonymized") + public void setIsAnonymized(Boolean isAnonymized) { + this.isAnonymized = isAnonymized; + } + + @JsonProperty("lastName") + public String getLastName() { + return lastName; + } + + @JsonIgnore + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @JsonProperty("linkedPerson") + public Person getLinkedPerson() { + return linkedPerson; + } + + @JsonProperty("linkedPerson") + public void setLinkedPerson(Person linkedPerson) { + this.linkedPerson = linkedPerson; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("localAddtionalWitholdingsAmount") + public BigDecimal getLocalAddtionalWitholdingsAmount() { + return localAddtionalWitholdingsAmount; + } + + @JsonProperty("localAddtionalWitholdingsAmount") + public void setLocalAddtionalWitholdingsAmount(BigDecimal localAddtionalWitholdingsAmount) { + this.localAddtionalWitholdingsAmount = localAddtionalWitholdingsAmount; + } + + @JsonProperty("localExemptions") + public Integer getLocalExemptions() { + return localExemptions; + } + + @JsonProperty("localExemptions") + public void setLocalExemptions(Integer localExemptions) { + this.localExemptions = localExemptions; + } + + @JsonProperty("localFilingStatus") + public String getLocalFilingStatus() { + return localFilingStatus; + } + + @JsonIgnore + public void setLocalFilingStatus(String localFilingStatus) { + this.localFilingStatus = localFilingStatus; + } + + @JsonProperty("localTaxCode") + public String getLocalTaxCode() { + return localTaxCode; + } + + @JsonIgnore + public void setLocalTaxCode(String localTaxCode) { + this.localTaxCode = localTaxCode; + } + + @JsonProperty("massMailOptOut") + public Boolean getMassMailOptOut() { + return massMailOptOut; + } + + @JsonProperty("massMailOptOut") + public void setMassMailOptOut(Boolean massMailOptOut) { + this.massMailOptOut = massMailOptOut; + } + + @JsonProperty("middleName") + public String getMiddleName() { + return middleName; + } + + @JsonIgnore + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonProperty("migrateGUID") + public void setMigrateGUID(Object migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("mobile") + public String getMobile() { + return mobile; + } + + @JsonIgnore + public void setMobile(String mobile) { + this.mobile = mobile; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namePrefix") + public String getNamePrefix() { + return namePrefix; + } + + @JsonIgnore + public void setNamePrefix(String namePrefix) { + this.namePrefix = namePrefix; + } + + @JsonProperty("nameSuffix") + public String getNameSuffix() { + return nameSuffix; + } + + @JsonIgnore + public void setNameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + } + + @JsonProperty("nickName") + public String getNickName() { + return nickName; + } + + @JsonIgnore + public void setNickName(String nickName) { + this.nickName = nickName; + } + + @JsonProperty("notes") + public OneToMany getNotes() { + return notes; + } + + @ReadOnly + @JsonProperty("notes") + public void setNotes(OneToMany notes) { + this.notes = notes; + } + + @JsonProperty("numCategories") + public Integer getNumCategories() { + return numCategories; + } + + @JsonProperty("numCategories") + public void setNumCategories(Integer numCategories) { + this.numCategories = numCategories; + } + + @JsonProperty("numOwners") + public Integer getNumOwners() { + return numOwners; + } + + @JsonProperty("numOwners") + public void setNumOwners(Integer numOwners) { + this.numOwners = numOwners; + } + + @JsonProperty("occupation") + public String getOccupation() { + return occupation; + } + + @JsonIgnore + public void setOccupation(String occupation) { + this.occupation = occupation; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("pager") + public String getPager() { + return pager; + } + + @JsonIgnore + public void setPager(String pager) { + this.pager = pager; + } + + @JsonProperty("paperWorkOnFile") + public String getPaperWorkOnFile() { + return paperWorkOnFile; + } + + @JsonIgnore + public void setPaperWorkOnFile(String paperWorkOnFile) { + this.paperWorkOnFile = paperWorkOnFile; + } + + @JsonProperty("password") + public String getPassword() { + return password; + } + + @JsonProperty("password") + public void setPassword(String password) { + this.password = password; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("phone2") + public String getPhone2() { + return phone2; + } + + @JsonIgnore + public void setPhone2(String phone2) { + this.phone2 = phone2; + } + + @JsonProperty("phone3") + public String getPhone3() { + return phone3; + } + + @JsonIgnore + public void setPhone3(String phone3) { + this.phone3 = phone3; + } + + @JsonProperty("placements") + public OneToMany getPlacements() { + return placements; + } + + @ReadOnly + @JsonProperty("placements") + public void setPlacements(OneToMany placements) { + this.placements = placements; + } + + @JsonProperty("preferredContact") + public String getPreferredContact() { + return preferredContact; + } + + @JsonIgnore + public void setPreferredContact(String preferredContact) { + this.preferredContact = preferredContact; + } + + @JsonIgnore + public OneToMany getPrimarySkills() { + return primarySkills; + } + + @JsonProperty("primarySkills") + public void setPrimarySkills(OneToMany primarySkills) { + this.primarySkills = primarySkills; + } + + @JsonProperty("recentClientList") + public String getRecentClientList() { + return recentClientList; + } + + @JsonIgnore + public void setRecentClientList(String recentClientList) { + this.recentClientList = recentClientList; + } + + @JsonProperty("referredBy") + public String getReferredBy() { + return referredBy; + } + + @JsonIgnore + public void setReferredBy(String referredBy) { + this.referredBy = referredBy; + } + + @JsonProperty("referredByPerson") + public Person getReferredByPerson() { + return referredByPerson; + } + + @JsonProperty("referredByPerson") + public void setReferredByPerson(Person referredByPerson) { + this.referredByPerson = referredByPerson; + } + + @JsonProperty("references") + public OneToMany getReferences() { + return references; + } + + @ReadOnly + @JsonProperty("references") + public void setReferences(OneToMany references) { + this.references = references; + } + + @JsonProperty("salary") + public BigDecimal getSalary() { + return salary; + } + + @JsonProperty("salary") + public void setSalary(BigDecimal salary) { + this.salary = salary; + } + + @JsonProperty("salaryLow") + public BigDecimal getSalaryLow() { + return salaryLow; + } + + @JsonProperty("salaryLow") + public void setSalaryLow(BigDecimal salaryLow) { + this.salaryLow = salaryLow; + } + + @JsonProperty("secondaryAddress") + public Address getSecondaryAddress() { + return secondaryAddress; + } + + @JsonProperty("secondaryAddress") + public void setSecondaryAddress(Address secondaryAddress) { + this.secondaryAddress = secondaryAddress; + } + + @JsonIgnore + public OneToMany getSecondaryOwners() { + return secondaryOwners; + } + + @JsonProperty("secondaryOwners") + public void setSecondaryOwners(OneToMany secondaryOwners) { + this.secondaryOwners = secondaryOwners; + } + + @JsonIgnore + public OneToMany getSecondarySkills() { + return secondarySkills; + } + + @JsonProperty("secondarySkills") + public void setSecondarySkills(OneToMany secondarySkills) { + this.secondarySkills = secondarySkills; + } + + @JsonProperty("sendouts") + public OneToMany getSendouts() { + return sendouts; + } + + @ReadOnly + @JsonProperty("sendouts") + public void setSendouts(OneToMany sendouts) { + this.sendouts = sendouts; + } + + @JsonProperty("skillSet") + public String getSkillSet() { + return skillSet; + } + + @JsonIgnore + public void setSkillSet(String skillSet) { + this.skillSet = skillSet; + } + + @JsonProperty("smsOptIn") + public Boolean getSmsOptIn() { + return smsOptIn; + } + + @JsonProperty("smsOptIn") + public void setSmsOptIn(Boolean smsOptIn) { + this.smsOptIn = smsOptIn; + } + + @JsonProperty("source") + public String getSource() { + return source; + } + + @JsonIgnore + public void setSource(String source) { + this.source = source; + } + + @JsonIgnore + public OneToMany getSpecialties() { + return specialties; + } + + @JsonProperty("specialties") + public void setSpecialties(OneToMany specialties) { + this.specialties = specialties; + } + + @JsonProperty("ssn") + public String getSsn() { + return ssn; + } + + @JsonProperty("ssn") + public void setSsn(String ssn) { + this.ssn = ssn; + } + + @JsonProperty("stateAddtionalWitholdingsAmount") + public BigDecimal getStateAddtionalWitholdingsAmount() { + return stateAddtionalWitholdingsAmount; + } + + @JsonProperty("stateAddtionalWitholdingsAmount") + public void setStateAddtionalWitholdingsAmount(BigDecimal stateAddtionalWitholdingsAmount) { + this.stateAddtionalWitholdingsAmount = stateAddtionalWitholdingsAmount; + } + + @JsonProperty("stateExemptions") + public Integer getStateExemptions() { + return stateExemptions; + } + + @JsonProperty("stateExemptions") + public void setStateExemptions(Integer stateExemptions) { + this.stateExemptions = stateExemptions; + } + + @JsonProperty("stateFilingStatus") + public String getStateFilingStatus() { + return stateFilingStatus; + } + + @JsonIgnore + public void setStateFilingStatus(String stateFilingStatus) { + this.stateFilingStatus = stateFilingStatus; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("submissions") + public OneToMany getSubmissions() { + return submissions; + } + + @ReadOnly + @JsonProperty("submissions") + public void setSubmissions(OneToMany submissions) { + this.submissions = submissions; + } + + @JsonProperty("tasks") + public OneToMany getTasks() { + return tasks; + } + + @ReadOnly + @JsonProperty("tasks") + public void setTasks(OneToMany tasks) { + this.tasks = tasks; + } + + @JsonProperty("taxID") + public String getTaxID() { + return taxID; + } + + @JsonIgnore + public void setTaxID(String taxID) { + this.taxID = taxID; + } + + @JsonProperty("taxState") + public String getTaxState() { + return taxState; + } + + @JsonIgnore + public void setTaxState(String taxState) { + this.taxState = taxState; + } + + @JsonProperty("tearsheets") + public OneToMany getTearsheets() { + return tearsheets; + } + + @JsonProperty("tearsheets") + public void setTearsheets(OneToMany tearsheets) { + this.tearsheets = tearsheets; + } + + @JsonProperty("timeZoneOffsetEST") + public Integer getTimeZoneOffsetEST() { + return timeZoneOffsetEST; + } + + @JsonProperty("timeZoneOffsetEST") + public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { + this.timeZoneOffsetEST = timeZoneOffsetEST; + } + + @JsonProperty("travelLimit") + public Integer getTravelLimit() { + return travelLimit; + } + + @JsonProperty("travelLimit") + public void setTravelLimit(Integer travelLimit) { + this.travelLimit = travelLimit; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("username") + public String getUsername() { + return username; + } + + @JsonIgnore + public void setUsername(String username) { + this.username = username; + } + + @JsonProperty("veteran") + public String getVeteran() { + return veteran; + } + + @JsonIgnore + public void setVeteran(String veteran) { + this.veteran = veteran; + } + + @JsonProperty("webResponses") + public OneToMany getWebResponses() { + return webResponses; + } + + @ReadOnly + @JsonProperty("webResponses") + public void setWebResponses(OneToMany webResponses) { + this.webResponses = webResponses; + } + + @JsonProperty("willRelocate") + public Boolean getWillRelocate() { + return willRelocate; + } + + @JsonProperty("willRelocate") + public void setWillRelocate(Boolean willRelocate) { + this.willRelocate = willRelocate; + } + + @JsonProperty("workAuthorized") + public Boolean getWorkAuthorized() { + return workAuthorized; + } + + @JsonProperty("workAuthorized") + public void setWorkAuthorized(Boolean workAuthorized) { + this.workAuthorized = workAuthorized; + } + + @JsonProperty("workHistories") + public OneToMany getWorkHistories() { + return workHistories; + } + + @ReadOnly + @JsonProperty("workHistories") + public void setWorkHistories(OneToMany workHistories) { + this.workHistories = workHistories; + } + + @JsonProperty("workPhone") + public String getWorkPhone() { + return workPhone; + } + + @JsonIgnore + public void setWorkPhone(String workPhone) { + this.workPhone = workPhone; + } + + @JsonProperty("customEncryptedText1") + public String getCustomEncryptedText1() { + return customEncryptedText1; + } + + @JsonProperty("customEncryptedText1") + @JsonIgnore + public void setCustomEncryptedText1(String customEncryptedText1) { + this.customEncryptedText1 = customEncryptedText1; + } + + @JsonProperty("customEncryptedText2") + public String getCustomEncryptedText2() { + return customEncryptedText2; + } + + @JsonProperty("customEncryptedText2") + @JsonIgnore + public void setCustomEncryptedText2(String customEncryptedText2) { + this.customEncryptedText2 = customEncryptedText2; + } + + @JsonProperty("customEncryptedText3") + public String getCustomEncryptedText3() { + return customEncryptedText3; + } + + @JsonProperty("customEncryptedText3") + @JsonIgnore + public void setCustomEncryptedText3(String customEncryptedText3) { + this.customEncryptedText3 = customEncryptedText3; + } + + @JsonProperty("customEncryptedText4") + public String getCustomEncryptedText4() { + return customEncryptedText4; + } + + @JsonProperty("customEncryptedText4") + @JsonIgnore + public void setCustomEncryptedText4(String customEncryptedText4) { + this.customEncryptedText4 = customEncryptedText4; + } + + @JsonProperty("customEncryptedText5") + public String getCustomEncryptedText5() { + return customEncryptedText5; + } + + @JsonProperty("customEncryptedText5") + @JsonIgnore + public void setCustomEncryptedText5(String customEncryptedText5) { + this.customEncryptedText5 = customEncryptedText5; + } + + @JsonProperty("customEncryptedText6") + public String getCustomEncryptedText6() { + return customEncryptedText6; + } + + @JsonProperty("customEncryptedText6") + @JsonIgnore + public void setCustomEncryptedText6(String customEncryptedText6) { + this.customEncryptedText6 = customEncryptedText6; + } + + @JsonProperty("customEncryptedText7") + public String getCustomEncryptedText7() { + return customEncryptedText7; + } + + @JsonProperty("customEncryptedText7") + @JsonIgnore + public void setCustomEncryptedText7(String customEncryptedText7) { + this.customEncryptedText7 = customEncryptedText7; + } + + @JsonProperty("customEncryptedText8") + public String getCustomEncryptedText8() { + return customEncryptedText8; + } + + @JsonProperty("customEncryptedText8") + @JsonIgnore + public void setCustomEncryptedText8(String customEncryptedText8) { + this.customEncryptedText8 = customEncryptedText8; + } + + @JsonProperty("customEncryptedText9") + public String getCustomEncryptedText9() { + return customEncryptedText9; + } + + @JsonProperty("customEncryptedText9") + @JsonIgnore + public void setCustomEncryptedText9(String customEncryptedText9) { + this.customEncryptedText9 = customEncryptedText9; + } + + @JsonProperty("customEncryptedText10") + public String getCustomEncryptedText10() { + return customEncryptedText10; + } + + @JsonProperty("customEncryptedText10") + @JsonIgnore + public void setCustomEncryptedText10(String customEncryptedText10) { + this.customEncryptedText10 = customEncryptedText10; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + Candidate candidate = (Candidate) o; + + if (luceneScore != null ? !luceneScore.equals(candidate.luceneScore) : candidate.luceneScore != null) + return false; + if (id != null ? !id.equals(candidate.id) : candidate.id != null) return false; + if (address != null ? !address.equals(candidate.address) : candidate.address != null) return false; + if (branch != null ? !branch.equals(candidate.branch) : candidate.branch != null) return false; + if (businessSectors != null ? !businessSectors.equals(candidate.businessSectors) : candidate.businessSectors != null) + return false; + if (canEnterTime != null ? !canEnterTime.equals(candidate.canEnterTime) : candidate.canEnterTime != null) return false; + if (categories != null ? !categories.equals(candidate.categories) : candidate.categories != null) return false; + if (category != null ? !category.equals(candidate.category) : candidate.category != null) return false; + if (certificationList != null ? !certificationList.equals(candidate.certificationList) : candidate.certificationList != null) + return false; + if (certifications != null ? !certifications.equals(candidate.certifications) : candidate.certifications != null) + return false; + if (clientCorporationBlackList != null ? !clientCorporationBlackList.equals(candidate.clientCorporationBlackList) : candidate.clientCorporationBlackList != null) + return false; + if (clientCorporationWhiteList != null ? !clientCorporationWhiteList.equals(candidate.clientCorporationWhiteList) : candidate.clientCorporationWhiteList != null) + return false; + if (comments != null ? !comments.equals(candidate.comments) : candidate.comments != null) return false; + if (companyName != null ? !companyName.equals(candidate.companyName) : candidate.companyName != null) + return false; + if (companyURL != null ? !companyURL.equals(candidate.companyURL) : candidate.companyURL != null) return false; + if (dateAdded != null ? !dateAdded.equals(candidate.dateAdded) : candidate.dateAdded != null) return false; + if (dateAvailable != null ? !dateAvailable.equals(candidate.dateAvailable) : candidate.dateAvailable != null) + return false; + if (dateAvailableEnd != null ? !dateAvailableEnd.equals(candidate.dateAvailableEnd) : candidate.dateAvailableEnd != null) + return false; + if (dateI9Expiration != null ? !dateI9Expiration.equals(candidate.dateI9Expiration) : candidate.dateI9Expiration != null) + return false; + if (dateLastComment != null ? !dateLastComment.equals(candidate.dateLastComment) : candidate.dateLastComment != null) + return false; + if (dateLastModified != null ? !dateLastModified.equals(candidate.dateLastModified) : candidate.dateLastModified != null) + return false; + if (dateNextCall != null ? !dateNextCall.equals(candidate.dateNextCall) : candidate.dateNextCall != null) + return false; + if (dateOfBirth != null ? !dateOfBirth.equals(candidate.dateOfBirth) : candidate.dateOfBirth != null) + return false; + if (dayRate != null ? !dayRate.equals(candidate.dayRate) : candidate.dayRate != null) return false; + if (dayRateLow != null ? !dayRateLow.equals(candidate.dayRateLow) : candidate.dayRateLow != null) return false; + if (degreeList != null ? !degreeList.equals(candidate.degreeList) : candidate.degreeList != null) return false; + if (description != null ? !description.equals(candidate.description) : candidate.description != null) + return false; + if (desiredLocations != null ? !desiredLocations.equals(candidate.desiredLocations) : candidate.desiredLocations != null) + return false; + if (disability != null ? !disability.equals(candidate.disability) : candidate.disability != null) return false; + if (educationDegree != null ? !educationDegree.equals(candidate.educationDegree) : candidate.educationDegree != null) + return false; + if (educations != null ? !educations.equals(candidate.educations) : candidate.educations != null) return false; + if (email != null ? !email.equals(candidate.email) : candidate.email != null) return false; + if (email2 != null ? !email2.equals(candidate.email2) : candidate.email2 != null) return false; + if (email3 != null ? !email3.equals(candidate.email3) : candidate.email3 != null) return false; + if (employeeType != null ? !employeeType.equals(candidate.employeeType) : candidate.employeeType != null) + return false; + if (employmentPreference != null ? !employmentPreference.equals(candidate.employmentPreference) : candidate.employmentPreference != null) + return false; + if (ethnicity != null ? !ethnicity.equals(candidate.ethnicity) : candidate.ethnicity != null) return false; + if (experience != null ? !experience.equals(candidate.experience) : candidate.experience != null) return false; + if (externalID != null ? !externalID.equals(candidate.externalID) : candidate.externalID != null) return false; + if (fax != null ? !fax.equals(candidate.fax) : candidate.fax != null) return false; + if (fax2 != null ? !fax2.equals(candidate.fax2) : candidate.fax2 != null) return false; + if (fax3 != null ? !fax3.equals(candidate.fax3) : candidate.fax3 != null) return false; + if (federalAddtionalWitholdingsAmount != null ? !federalAddtionalWitholdingsAmount.equals(candidate.federalAddtionalWitholdingsAmount) : candidate.federalAddtionalWitholdingsAmount != null) + return false; + if (federalExemptions != null ? !federalExemptions.equals(candidate.federalExemptions) : candidate.federalExemptions != null) + return false; + if (federalFilingStatus != null ? !federalFilingStatus.equals(candidate.federalFilingStatus) : candidate.federalFilingStatus != null) + return false; + if (fileAttachments != null ? !fileAttachments.equals(candidate.fileAttachments) : candidate.fileAttachments != null) + return false; + if (firstName != null ? !firstName.equals(candidate.firstName) : candidate.firstName != null) return false; + if (gender != null ? !gender.equals(candidate.gender) : candidate.gender != null) return false; + if (hourlyRate != null ? !hourlyRate.equals(candidate.hourlyRate) : candidate.hourlyRate != null) return false; + if (hourlyRateLow != null ? !hourlyRateLow.equals(candidate.hourlyRateLow) : candidate.hourlyRateLow != null) + return false; + if (interviews != null ? !interviews.equals(candidate.interviews) : candidate.interviews != null) return false; + if (i9OnFile != null ? !i9OnFile.equals(candidate.i9OnFile) : candidate.i9OnFile != null) return false; + if (isDayLightSavings != null ? !isDayLightSavings.equals(candidate.isDayLightSavings) : candidate.isDayLightSavings != null) + return false; + if (isDeleted != null ? !isDeleted.equals(candidate.isDeleted) : candidate.isDeleted != null) return false; + if (isEditable != null ? !isEditable.equals(candidate.isEditable) : candidate.isEditable != null) return false; + if (isLockedOut != null ? !isLockedOut.equals(candidate.isLockedOut) : candidate.isLockedOut != null) + return false; + if (isAnonymized != null ? !isAnonymized.equals(candidate.isAnonymized) : candidate.isAnonymized != null) + return false; + if (lastName != null ? !lastName.equals(candidate.lastName) : candidate.lastName != null) return false; + if (linkedPerson != null ? !linkedPerson.equals(candidate.linkedPerson) : candidate.linkedPerson != null) + return false; + if (leads != null ? !leads.equals(candidate.leads) : candidate.leads != null) return false; + if (localAddtionalWitholdingsAmount != null ? !localAddtionalWitholdingsAmount.equals(candidate.localAddtionalWitholdingsAmount) : candidate.localAddtionalWitholdingsAmount != null) + return false; + if (localExemptions != null ? !localExemptions.equals(candidate.localExemptions) : candidate.localExemptions != null) + return false; + if (localFilingStatus != null ? !localFilingStatus.equals(candidate.localFilingStatus) : candidate.localFilingStatus != null) + return false; + if (localTaxCode != null ? !localTaxCode.equals(candidate.localTaxCode) : candidate.localTaxCode != null) + return false; + if (massMailOptOut != null ? !massMailOptOut.equals(candidate.massMailOptOut) : candidate.massMailOptOut != null) + return false; + if (middleName != null ? !middleName.equals(candidate.middleName) : candidate.middleName != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(candidate.migrateGUID) : candidate.migrateGUID != null) + return false; + if (mobile != null ? !mobile.equals(candidate.mobile) : candidate.mobile != null) return false; + if (name != null ? !name.equals(candidate.name) : candidate.name != null) return false; + if (namePrefix != null ? !namePrefix.equals(candidate.namePrefix) : candidate.namePrefix != null) return false; + if (nameSuffix != null ? !nameSuffix.equals(candidate.nameSuffix) : candidate.nameSuffix != null) return false; + if (nickName != null ? !nickName.equals(candidate.nickName) : candidate.nickName != null) return false; + if (notes != null ? !notes.equals(candidate.notes) : candidate.notes != null) return false; + if (numCategories != null ? !numCategories.equals(candidate.numCategories) : candidate.numCategories != null) + return false; + if (numOwners != null ? !numOwners.equals(candidate.numOwners) : candidate.numOwners != null) return false; + if (occupation != null ? !occupation.equals(candidate.occupation) : candidate.occupation != null) return false; + if (owner != null ? !owner.equals(candidate.owner) : candidate.owner != null) return false; + if (pager != null ? !pager.equals(candidate.pager) : candidate.pager != null) return false; + if (paperWorkOnFile != null ? !paperWorkOnFile.equals(candidate.paperWorkOnFile) : candidate.paperWorkOnFile != null) + return false; + if (password != null ? !password.equals(candidate.password) : candidate.password != null) return false; + if (phone != null ? !phone.equals(candidate.phone) : candidate.phone != null) return false; + if (phone2 != null ? !phone2.equals(candidate.phone2) : candidate.phone2 != null) return false; + if (phone3 != null ? !phone3.equals(candidate.phone3) : candidate.phone3 != null) return false; + if (placements != null ? !placements.equals(candidate.placements) : candidate.placements != null) return false; + if (preferredContact != null ? !preferredContact.equals(candidate.preferredContact) : candidate.preferredContact != null) + return false; + if (primarySkills != null ? !primarySkills.equals(candidate.primarySkills) : candidate.primarySkills != null) + return false; + if (recentClientList != null ? !recentClientList.equals(candidate.recentClientList) : candidate.recentClientList != null) + return false; + if (referredBy != null ? !referredBy.equals(candidate.referredBy) : candidate.referredBy != null) return false; + if (referredByPerson != null ? !referredByPerson.equals(candidate.referredByPerson) : candidate.referredByPerson != null) + return false; + if (references != null ? !references.equals(candidate.references) : candidate.references != null) return false; + if (salary != null ? !salary.equals(candidate.salary) : candidate.salary != null) return false; + if (salaryLow != null ? !salaryLow.equals(candidate.salaryLow) : candidate.salaryLow != null) return false; + if (secondaryAddress != null ? !secondaryAddress.equals(candidate.secondaryAddress) : candidate.secondaryAddress != null) + return false; + if (secondaryOwners != null ? !secondaryOwners.equals(candidate.secondaryOwners) : candidate.secondaryOwners != null) + return false; + if (secondarySkills != null ? !secondarySkills.equals(candidate.secondarySkills) : candidate.secondarySkills != null) + return false; + if (sendouts != null ? !sendouts.equals(candidate.sendouts) : candidate.sendouts != null) return false; + if (skillSet != null ? !skillSet.equals(candidate.skillSet) : candidate.skillSet != null) return false; + if (smsOptIn != null ? !smsOptIn.equals(candidate.smsOptIn) : candidate.smsOptIn != null) return false; + if (source != null ? !source.equals(candidate.source) : candidate.source != null) return false; + if (specialties != null ? !specialties.equals(candidate.specialties) : candidate.specialties != null) + return false; + if (ssn != null ? !ssn.equals(candidate.ssn) : candidate.ssn != null) return false; + if (stateAddtionalWitholdingsAmount != null ? !stateAddtionalWitholdingsAmount.equals(candidate.stateAddtionalWitholdingsAmount) : candidate.stateAddtionalWitholdingsAmount != null) + return false; + if (stateExemptions != null ? !stateExemptions.equals(candidate.stateExemptions) : candidate.stateExemptions != null) + return false; + if (stateFilingStatus != null ? !stateFilingStatus.equals(candidate.stateFilingStatus) : candidate.stateFilingStatus != null) + return false; + if (status != null ? !status.equals(candidate.status) : candidate.status != null) return false; + if (submissions != null ? !submissions.equals(candidate.submissions) : candidate.submissions != null) + return false; + if (tasks != null ? !tasks.equals(candidate.tasks) : candidate.tasks != null) return false; + if (taxID != null ? !taxID.equals(candidate.taxID) : candidate.taxID != null) return false; + if (taxState != null ? !taxState.equals(candidate.taxState) : candidate.taxState != null) return false; + if (tearsheets != null ? !tearsheets.equals(candidate.tearsheets) : candidate.tearsheets != null) return false; + if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(candidate.timeZoneOffsetEST) : candidate.timeZoneOffsetEST != null) + return false; + if (travelLimit != null ? !travelLimit.equals(candidate.travelLimit) : candidate.travelLimit != null) + return false; + if (type != null ? !type.equals(candidate.type) : candidate.type != null) return false; + if (username != null ? !username.equals(candidate.username) : candidate.username != null) return false; + if (veteran != null ? !veteran.equals(candidate.veteran) : candidate.veteran != null) return false; + if (webResponses != null ? !webResponses.equals(candidate.webResponses) : candidate.webResponses != null) + return false; + if (willRelocate != null ? !willRelocate.equals(candidate.willRelocate) : candidate.willRelocate != null) + return false; + if (workAuthorized != null ? !workAuthorized.equals(candidate.workAuthorized) : candidate.workAuthorized != null) + return false; + if (workHistories != null ? !workHistories.equals(candidate.workHistories) : candidate.workHistories != null) + return false; + if (customObject1s != null ? !customObject1s.equals(candidate.customObject1s) : candidate.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(candidate.customObject2s) : candidate.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(candidate.customObject3s) : candidate.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(candidate.customObject4s) : candidate.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(candidate.customObject5s) : candidate.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(candidate.customObject6s) : candidate.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(candidate.customObject7s) : candidate.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(candidate.customObject8s) : candidate.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(candidate.customObject9s) : candidate.customObject9s != null) + return false; + if (customObject10s != null ? !customObject10s.equals(candidate.customObject10s) : candidate.customObject10s != null) + return false; + if (customEncryptedText1 != null ? !customEncryptedText1.equals(candidate.customEncryptedText1) : candidate.customEncryptedText1 != null) + return false; + if (customEncryptedText2 != null ? !customEncryptedText2.equals(candidate.customEncryptedText2) : candidate.customEncryptedText2 != null) + return false; + if (customEncryptedText3 != null ? !customEncryptedText3.equals(candidate.customEncryptedText3) : candidate.customEncryptedText3 != null) + return false; + if (customEncryptedText4 != null ? !customEncryptedText4.equals(candidate.customEncryptedText4) : candidate.customEncryptedText4 != null) + return false; + if (customEncryptedText5 != null ? !customEncryptedText5.equals(candidate.customEncryptedText5) : candidate.customEncryptedText5 != null) + return false; + if (customEncryptedText6 != null ? !customEncryptedText6.equals(candidate.customEncryptedText6) : candidate.customEncryptedText6 != null) + return false; + if (customEncryptedText7 != null ? !customEncryptedText7.equals(candidate.customEncryptedText7) : candidate.customEncryptedText7 != null) + return false; + if (customEncryptedText8 != null ? !customEncryptedText8.equals(candidate.customEncryptedText8) : candidate.customEncryptedText8 != null) + return false; + if (customEncryptedText9 != null ? !customEncryptedText9.equals(candidate.customEncryptedText9) : candidate.customEncryptedText9 != null) + return false; + if (customEncryptedText10 != null ? !customEncryptedText10.equals(candidate.customEncryptedText10) : candidate.customEncryptedText10 != null) + return false; + return workPhone != null ? workPhone.equals(candidate.workPhone) : candidate.workPhone == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (luceneScore != null ? luceneScore.hashCode() : 0); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (canEnterTime != null ? canEnterTime.hashCode() : 0); + result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); + result = 31 * result + (categories != null ? categories.hashCode() : 0); + result = 31 * result + (category != null ? category.hashCode() : 0); + result = 31 * result + (certificationList != null ? certificationList.hashCode() : 0); + result = 31 * result + (certifications != null ? certifications.hashCode() : 0); + result = 31 * result + (clientCorporationBlackList != null ? clientCorporationBlackList.hashCode() : 0); + result = 31 * result + (clientCorporationWhiteList != null ? clientCorporationWhiteList.hashCode() : 0); + result = 31 * result + (comments != null ? comments.hashCode() : 0); + result = 31 * result + (companyName != null ? companyName.hashCode() : 0); + result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateAvailable != null ? dateAvailable.hashCode() : 0); + result = 31 * result + (dateAvailableEnd != null ? dateAvailableEnd.hashCode() : 0); + result = 31 * result + (dateI9Expiration != null ? dateI9Expiration.hashCode() : 0); + result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (dateNextCall != null ? dateNextCall.hashCode() : 0); + result = 31 * result + (dateOfBirth != null ? dateOfBirth.hashCode() : 0); + result = 31 * result + (dayRate != null ? dayRate.hashCode() : 0); + result = 31 * result + (dayRateLow != null ? dayRateLow.hashCode() : 0); + result = 31 * result + (degreeList != null ? degreeList.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (desiredLocations != null ? desiredLocations.hashCode() : 0); + result = 31 * result + (disability != null ? disability.hashCode() : 0); + result = 31 * result + (educationDegree != null ? educationDegree.hashCode() : 0); + result = 31 * result + (educations != null ? educations.hashCode() : 0); + result = 31 * result + (email != null ? email.hashCode() : 0); + result = 31 * result + (email2 != null ? email2.hashCode() : 0); + result = 31 * result + (email3 != null ? email3.hashCode() : 0); + result = 31 * result + (employeeType != null ? employeeType.hashCode() : 0); + result = 31 * result + (employmentPreference != null ? employmentPreference.hashCode() : 0); + result = 31 * result + (ethnicity != null ? ethnicity.hashCode() : 0); + result = 31 * result + (experience != null ? experience.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); + result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); + result = 31 * result + (federalAddtionalWitholdingsAmount != null ? federalAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (federalExemptions != null ? federalExemptions.hashCode() : 0); + result = 31 * result + (federalFilingStatus != null ? federalFilingStatus.hashCode() : 0); + result = 31 * result + (fileAttachments != null ? fileAttachments.hashCode() : 0); + result = 31 * result + (firstName != null ? firstName.hashCode() : 0); + result = 31 * result + (gender != null ? gender.hashCode() : 0); + result = 31 * result + (hourlyRate != null ? hourlyRate.hashCode() : 0); + result = 31 * result + (hourlyRateLow != null ? hourlyRateLow.hashCode() : 0); + result = 31 * result + (interviews != null ? interviews.hashCode() : 0); + result = 31 * result + (i9OnFile != null ? i9OnFile.hashCode() : 0); + result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isEditable != null ? isEditable.hashCode() : 0); + result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); + result = 31 * result + (isAnonymized != null ? isAnonymized.hashCode() : 0); + result = 31 * result + (lastName != null ? lastName.hashCode() : 0); + result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (localAddtionalWitholdingsAmount != null ? localAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (localExemptions != null ? localExemptions.hashCode() : 0); + result = 31 * result + (localFilingStatus != null ? localFilingStatus.hashCode() : 0); + result = 31 * result + (localTaxCode != null ? localTaxCode.hashCode() : 0); + result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); + result = 31 * result + (middleName != null ? middleName.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (mobile != null ? mobile.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); + result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); + result = 31 * result + (nickName != null ? nickName.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numCategories != null ? numCategories.hashCode() : 0); + result = 31 * result + (numOwners != null ? numOwners.hashCode() : 0); + result = 31 * result + (occupation != null ? occupation.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (pager != null ? pager.hashCode() : 0); + result = 31 * result + (paperWorkOnFile != null ? paperWorkOnFile.hashCode() : 0); + result = 31 * result + (password != null ? password.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); + result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); + result = 31 * result + (placements != null ? placements.hashCode() : 0); + result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); + result = 31 * result + (primarySkills != null ? primarySkills.hashCode() : 0); + result = 31 * result + (recentClientList != null ? recentClientList.hashCode() : 0); + result = 31 * result + (referredBy != null ? referredBy.hashCode() : 0); + result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); + result = 31 * result + (references != null ? references.hashCode() : 0); + result = 31 * result + (salary != null ? salary.hashCode() : 0); + result = 31 * result + (salaryLow != null ? salaryLow.hashCode() : 0); + result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); + result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); + result = 31 * result + (secondarySkills != null ? secondarySkills.hashCode() : 0); + result = 31 * result + (sendouts != null ? sendouts.hashCode() : 0); + result = 31 * result + (skillSet != null ? skillSet.hashCode() : 0); + result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); + result = 31 * result + (source != null ? source.hashCode() : 0); + result = 31 * result + (specialties != null ? specialties.hashCode() : 0); + result = 31 * result + (ssn != null ? ssn.hashCode() : 0); + result = 31 * result + (stateAddtionalWitholdingsAmount != null ? stateAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (stateExemptions != null ? stateExemptions.hashCode() : 0); + result = 31 * result + (stateFilingStatus != null ? stateFilingStatus.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (submissions != null ? submissions.hashCode() : 0); + result = 31 * result + (tasks != null ? tasks.hashCode() : 0); + result = 31 * result + (taxID != null ? taxID.hashCode() : 0); + result = 31 * result + (taxState != null ? taxState.hashCode() : 0); + result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); + result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); + result = 31 * result + (travelLimit != null ? travelLimit.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + result = 31 * result + (username != null ? username.hashCode() : 0); + result = 31 * result + (veteran != null ? veteran.hashCode() : 0); + result = 31 * result + (webResponses != null ? webResponses.hashCode() : 0); + result = 31 * result + (willRelocate != null ? willRelocate.hashCode() : 0); + result = 31 * result + (workAuthorized != null ? workAuthorized.hashCode() : 0); + result = 31 * result + (workHistories != null ? workHistories.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + result = 31 * result + (workPhone != null ? workPhone.hashCode() : 0); + result = 31 * result + ((customEncryptedText1 == null) ? 0 : customEncryptedText1.hashCode()); + result = 31 * result + ((customEncryptedText2 == null) ? 0 : customEncryptedText2.hashCode()); + result = 31 * result + ((customEncryptedText3 == null) ? 0 : customEncryptedText3.hashCode()); + result = 31 * result + ((customEncryptedText4 == null) ? 0 : customEncryptedText4.hashCode()); + result = 31 * result + ((customEncryptedText5 == null) ? 0 : customEncryptedText5.hashCode()); + result = 31 * result + ((customEncryptedText6 == null) ? 0 : customEncryptedText6.hashCode()); + result = 31 * result + ((customEncryptedText7 == null) ? 0 : customEncryptedText7.hashCode()); + result = 31 * result + ((customEncryptedText8 == null) ? 0 : customEncryptedText8.hashCode()); + result = 31 * result + ((customEncryptedText9 == null) ? 0 : customEncryptedText9.hashCode()); + result = 31 * result + ((customEncryptedText10 == null) ? 0 : customEncryptedText10.hashCode()); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull()); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull()); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull()); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull()); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull()); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull()); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull()); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull(includeLineBreaks)); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull(includeLineBreaks)); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull(includeLineBreaks)); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull(includeLineBreaks)); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull(includeLineBreaks)); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", branch=").append(branch); + sb.append(", businessSectors=").append(businessSectors); + sb.append(", canEnterTime=").append(canEnterTime); + sb.append(", categories=").append(categories); + sb.append(", category=").append(category); + sb.append(", certificationList=").append(certificationList); + sb.append(", certifications=").append(certifications); + sb.append(", clientCorporationBlackList=").append(clientCorporationBlackList); + sb.append(", clientCorporationWhiteList=").append(clientCorporationWhiteList); + sb.append(", comments=").append(comments); + sb.append(", companyName=").append(companyName); + sb.append(", companyURL=").append(companyURL); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateAvailable=").append(dateAvailable); + sb.append(", dateAvailableEnd=").append(dateAvailableEnd); + sb.append(", dateI9Expiration=").append(dateI9Expiration); + sb.append(", dateLastComment=").append(dateLastComment); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", dateNextCall=").append(dateNextCall); + sb.append(", dateOfBirth=").append(dateOfBirth); + sb.append(", dayRate=").append(dayRate); + sb.append(", dayRateLow=").append(dayRateLow); + sb.append(", degreeList=").append(degreeList); + sb.append(", description=").append(description); + sb.append(", desiredLocations=").append(desiredLocations); + sb.append(", disability=").append(disability); + sb.append(", educationDegree=").append(educationDegree); + sb.append(", educations=").append(educations); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", employeeType=").append(employeeType); + sb.append(", employmentPreference=").append(employmentPreference); + sb.append(", ethnicity=").append(ethnicity); + sb.append(", experience=").append(experience); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + sb.append(", federalExemptions=").append(federalExemptions); + sb.append(", federalFilingStatus=").append(federalFilingStatus); + sb.append(", fileAttachments=").append(fileAttachments); + sb.append(", firstName=").append(firstName); + sb.append(", gender=").append(gender); + sb.append(", hourlyRate=").append(hourlyRate); + sb.append(", hourlyRateLow=").append(hourlyRateLow); + sb.append(", interviews=").append(interviews); + sb.append(", i9OnFile=").append(i9OnFile); + sb.append(", isDayLightSavings=").append(isDayLightSavings); + sb.append(", isDeleted=").append(isDeleted); + sb.append(", isEditable=").append(isEditable); + sb.append(", isLockedOut=").append(isLockedOut); + sb.append(", isAnonymized=").append(isAnonymized); + sb.append(", lastName=").append(lastName); + sb.append(", linkedPerson=").append(linkedPerson); + sb.append(", leads=").append(leads); + sb.append(", localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + sb.append(", localExemptions=").append(localExemptions); + sb.append(", localFilingStatus=").append(localFilingStatus); + sb.append(", localTaxCode=").append(localTaxCode); + sb.append(", luceneScore=").append(luceneScore); + sb.append(", massMailOptOut=").append(massMailOptOut); + sb.append(", middleName=").append(middleName); + sb.append(", migrateGUID=").append(migrateGUID); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); + sb.append(", notes=").append(notes); + sb.append(", numCategories=").append(numCategories); + sb.append(", numOwners=").append(numOwners); + sb.append(", occupation=").append(occupation); + sb.append(", owner=").append(owner); + sb.append(", pager=").append(pager); + sb.append(", paperWorkOnFile=").append(paperWorkOnFile); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", placements=").append(placements); + sb.append(", preferredContact=").append(preferredContact); + sb.append(", primarySkills=").append(primarySkills); + sb.append(", recentClientList=").append(recentClientList); + sb.append(", referredBy=").append(referredBy); + sb.append(", referredByPerson=").append(referredByPerson); + sb.append(", references=").append(references); + sb.append(", salary=").append(salary); + sb.append(", salaryLow=").append(salaryLow); + sb.append(", secondaryAddress=").append(secondaryAddress); + sb.append(", secondaryOwners=").append(secondaryOwners); + sb.append(", secondarySkills=").append(secondarySkills); + sb.append(", sendouts=").append(sendouts); + sb.append(", skillSet=").append(skillSet); + sb.append(", smsOptIn=").append(smsOptIn); + sb.append(", source=").append(source); + sb.append(", specialties=").append(specialties); + sb.append(", ssn=").append(ssn); + sb.append(", stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + sb.append(", stateExemptions=").append(stateExemptions); + sb.append(", stateFilingStatus=").append(stateFilingStatus); + sb.append(", status=").append(status); + sb.append(", submissions=").append(submissions); + sb.append(", tasks=").append(tasks); + sb.append(", taxID=").append(taxID); + sb.append(", taxState=").append(taxState); + sb.append(", tearsheets=").append(tearsheets); + sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); + sb.append(", travelLimit=").append(travelLimit); + sb.append(", type=").append(type); + sb.append(", username=").append(username); + sb.append(", veteran=").append(veteran); + sb.append(", webResponses=").append(webResponses); + sb.append(", willRelocate=").append(willRelocate); + sb.append(", workAuthorized=").append(workAuthorized); + sb.append(", workHistories=").append(workHistories); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append(", customEncryptedText1=").append(customEncryptedText1); + sb.append(", customEncryptedText2=").append(customEncryptedText2); + sb.append(", customEncryptedText3=").append(customEncryptedText3); + sb.append(", customEncryptedText4=").append(customEncryptedText4); + sb.append(", customEncryptedText5=").append(customEncryptedText5); + sb.append(", customEncryptedText6=").append(customEncryptedText6); + sb.append(", customEncryptedText7=").append(customEncryptedText7); + sb.append(", customEncryptedText8=").append(customEncryptedText8); + sb.append(", customEncryptedText9=").append(customEncryptedText9); + sb.append(", customEncryptedText10=").append(customEncryptedText10); + sb.append(", workPhone=").append(workPhone); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java index c2ce24b5..6f92dd40 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java @@ -1,1877 +1,1877 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import org.hibernate.validator.constraints.Email; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "categories", - "category", "certifications", "clientContactID", "clientCorporation", - "comments", "customDate1", "customDate2", "customDate3", - "customFloat1", "customFloat2", "customFloat3", "customInt1", - "customInt2", "customInt3", "customText1", "customText10", - "customText11", "customText12", "customText13", "customText14", - "customText15", "customText16", "customText17", "customText18", - "customText19", "customText2", "customText20", "customText3", - "customText4", "customText5", "customText6", "customText7", - "customText8", "customText9", "customTextBlock1", "customTextBlock2", - "customTextBlock3", "customTextBlock4", "customTextBlock5", - "dateAdded", "dateLastComment", "dateLastModified", "dateLastVisit", "deleteMe", - "description", "desiredCategories", "desiredSkills", - "desiredSpecialties", "division", "email", "email2", "email3", - "externalID", "fax", "fax2", "fax3", "firstName", "isDayLightSavings", - "isDeleted", "isLockedOut", "lastName", "linkedPerson", "leads", - "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", - "namePrefix", "nameSuffix", "nickName", "notes", "numEmployees", "occupation", - "office", "owner", "pager", "password", "phone", "phone2", "phone3", - "preferredContact", "referredByPerson", "reportToPerson", - "secondaryAddress", "secondaryOwners", "skills", "smsOptIn", "source", - "specialties", "status", "tearsheets", "timeZoneOffsetEST", "trackTitle", "type", - "username", "customObject1s", "customObject2s", "customObject3s", - "customObject4s", "customObject5s", "customObject6s", "customObject7s", - "customObject8s", "customObject9s", "customObject10s" }) -public class ClientContact extends CustomFieldsB implements QueryEntity, - UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, - AssociationEntity, SearchEntity, DateLastModifiedEntity, EditHistoryEntity { - - private Integer id; - - private Address address; - - private Branch branch; - - private OneToMany businessSectors; - - private OneToMany categories; - - private Category category; - - @JsonIgnore - private String certifications; - - private Integer clientContactID; - - private ClientCorporation clientCorporation; - - @JsonIgnore - private String comments; - - private DateTime dateAdded; - - private DateTime dateLastComment; - - private DateTime dateLastModified; - - private DateTime dateLastVisit; - - private Boolean deleteMe; - - @JsonIgnore - private String description; - - @JsonIgnore - private String desiredCategories; - - @JsonIgnore - private String desiredSkills; - - @JsonIgnore - private String desiredSpecialties; - - @JsonIgnore - @Size(max = 40) - private String division; - - @JsonIgnore - @Email - @Size(max = 60) - private String email; - - @JsonIgnore - @Email - @Size(max = 100) - private String email2; - - @JsonIgnore - @Email - @Size(max = 100) - private String email3; - - @JsonIgnore - @Size(max = 30) - private String externalID; - - @JsonIgnore - @Size(max = 20) - private String fax; - - @JsonIgnore - @Size(max = 20) - private String fax2; - - @JsonIgnore - @Size(max = 20) - private String fax3; - - @JsonIgnore - @Size(max = 50) - private String firstName; - - private Boolean isDayLightSavings; - - private Boolean isDeleted; - - private Boolean isLockedOut; - - @JsonIgnore - @Size(max = 50) - private String lastName; - - private Person linkedPerson; - - private OneToMany leads; - - private Boolean massMailOptOut; - - @JsonIgnore - @Size(max = 50) - private String middleName; - - private Object migrateGUID; - - @JsonIgnore - @Size(max = 20) - private String mobile; - - @JsonIgnore - private String name; - - @JsonIgnore - @Size(max = 5) - private String namePrefix; - - @JsonIgnore - @Size(max = 5) - private String nameSuffix; - - @JsonIgnore - private String nickName; - - private OneToMany notes; - - private Integer numEmployees; - - @JsonIgnore - @Size(max = 50) - private String occupation; - - @JsonIgnore - @Size(max = 40) - private String office; - - private CorporateUser owner; - - @JsonIgnore - @Size(max = 20) - private String pager; - - @JsonIgnore - private String password; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - @Size(max = 20) - private String phone2; - - @JsonIgnore - @Size(max = 20) - private String phone3; - - @JsonIgnore - @Size(max = 15) - private String preferredContact; - - private Person referredByPerson; - - private Person reportToPerson; - - private Address secondaryAddress; - - private OneToMany secondaryOwners; - - private OneToMany skills; - - private Boolean smsOptIn; - - @JsonIgnore - @Size(max = 200) - private String source; - - private OneToMany specialties; - - @JsonIgnore - @Size(max = 30) - private String status; - - private OneToManyLinkedId tearsheets; - - private Integer timeZoneOffsetEST; - - @JsonIgnore - @Size(max = 200) - private String trackTitle; - - @JsonIgnore - @Size(max = 30) - private String type; - - @JsonIgnore - private String username; - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - public ClientContact() { - super(); - } - - public ClientContact(Integer id) { - super(); - this.id = id; - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public ClientContact instantiateForInsert() { - ClientContact entity = new ClientContact(); - entity.setCategory(new Category(512973)); - entity.setClientCorporation(new ClientCorporation(1)); - entity.setEmail("unknown"); - entity.setNumEmployees(1); - entity.setIsDeleted(Boolean.FALSE); - entity.setPreferredContact("Email"); - entity.setStatus("Client"); - entity.setUsername(new DateTime().toString()); - entity.setPassword("secret"); - entity.setType("Unknown"); - return entity; - } - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonProperty("businessSectors") - public OneToMany getBusinessSectors() { - return businessSectors; - } - - @JsonProperty("businessSectors") - public void setBusinessSectors(OneToMany businessSectors) { - this.businessSectors = businessSectors; - } - - @JsonProperty("categories") - public OneToMany getCategories() { - return categories; - } - - @JsonProperty("categories") - public void setCategories(OneToMany categories) { - this.categories = categories; - } - - @JsonProperty("category") - public Category getCategory() { - return category; - } - - @JsonProperty("category") - public void setCategory(Category category) { - this.category = category; - } - - @JsonProperty("certifications") - public String getCertifications() { - return certifications; - } - - @JsonIgnore - public void setCertifications(String certifications) { - this.certifications = certifications; - } - - @JsonProperty("clientContactID") - public Integer getClientContactID() { - return clientContactID; - } - - @ReadOnly - @JsonProperty("clientContactID") - public void setClientContactID(Integer clientContactID) { - this.clientContactID = clientContactID; - } - - @JsonProperty("clientCorporation") - public ClientCorporation getClientCorporation() { - return clientCorporation; - } - - @JsonProperty("clientCorporation") - public void setClientCorporation(ClientCorporation clientCorporation) { - this.clientCorporation = clientCorporation; - } - - @JsonProperty("comments") - public String getComments() { - return comments; - } - - @JsonIgnore - public void setComments(String comments) { - this.comments = comments; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateLastComment") - public DateTime getDateLastComment() { - return dateLastComment; - } - - @ReadOnly - @JsonProperty("dateLastComment") - public void setDateLastComment(DateTime dateLastComment) { - this.dateLastComment = dateLastComment; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("dateLastVisit") - public DateTime getDateLastVisit() { - return dateLastVisit; - } - - @JsonProperty("dateLastVisit") - public void setDateLastVisit(DateTime dateLastVisit) { - this.dateLastVisit = dateLastVisit; - } - - @JsonProperty("deleteMe") - public Boolean getDeleteMe() { - return deleteMe; - } - - @JsonProperty("deleteMe") - public void setDeleteMe(Boolean deleteMe) { - this.deleteMe = deleteMe; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonIgnore - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("desiredCategories") - public String getDesiredCategories() { - return desiredCategories; - } - - @JsonIgnore - public void setDesiredCategories(String desiredCategories) { - this.desiredCategories = desiredCategories; - } - - @JsonProperty("desiredSkills") - public String getDesiredSkills() { - return desiredSkills; - } - - @JsonIgnore - public void setDesiredSkills(String desiredSkills) { - this.desiredSkills = desiredSkills; - } - - @JsonProperty("desiredSpecialties") - public String getDesiredSpecialties() { - return desiredSpecialties; - } - - @JsonIgnore - public void setDesiredSpecialties(String desiredSpecialties) { - this.desiredSpecialties = desiredSpecialties; - } - - @JsonProperty("division") - public String getDivision() { - return division; - } - - @JsonIgnore - public void setDivision(String division) { - this.division = division; - } - - @JsonProperty("email") - public String getEmail() { - return email; - } - - @JsonIgnore - public void setEmail(String email) { - this.email = email; - } - - @JsonProperty("email2") - public String getEmail2() { - return email2; - } - - @JsonIgnore - public void setEmail2(String email2) { - this.email2 = email2; - } - - @JsonProperty("email3") - public String getEmail3() { - return email3; - } - - @JsonIgnore - public void setEmail3(String email3) { - this.email3 = email3; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonIgnore - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("fax2") - public String getFax2() { - return fax2; - } - - @JsonIgnore - public void setFax2(String fax2) { - this.fax2 = fax2; - } - - @JsonProperty("fax3") - public String getFax3() { - return fax3; - } - - @JsonIgnore - public void setFax3(String fax3) { - this.fax3 = fax3; - } - - @JsonProperty("firstName") - public String getFirstName() { - return firstName; - } - - @JsonIgnore - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - @JsonProperty("isDayLightSavings") - public Boolean getIsDayLightSavings() { - return isDayLightSavings; - } - - @JsonProperty("isDayLightSavings") - public void setIsDayLightSavings(Boolean isDayLightSavings) { - this.isDayLightSavings = isDayLightSavings; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isLockedOut") - public Boolean getIsLockedOut() { - return isLockedOut; - } - - @JsonProperty("isLockedOut") - public void setIsLockedOut(Boolean isLockedOut) { - this.isLockedOut = isLockedOut; - } - - @JsonProperty("lastName") - public String getLastName() { - return lastName; - } - - @JsonIgnore - public void setLastName(String lastName) { - this.lastName = lastName; - } - - @JsonProperty("linkedPerson") - public Person getLinkedPerson() { - return linkedPerson; - } - - @JsonProperty("linkedPerson") - public void setLinkedPerson(Person linkedPerson) { - this.linkedPerson = linkedPerson; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("massMailOptOut") - public Boolean getMassMailOptOut() { - return massMailOptOut; - } - - @JsonProperty("massMailOptOut") - public void setMassMailOptOut(Boolean massMailOptOut) { - this.massMailOptOut = massMailOptOut; - } - - @JsonProperty("middleName") - public String getMiddleName() { - return middleName; - } - - @JsonIgnore - public void setMiddleName(String middleName) { - this.middleName = middleName; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonIgnore - public void setMigrateGUID(String migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("mobile") - public String getMobile() { - return mobile; - } - - @JsonIgnore - public void setMobile(String mobile) { - this.mobile = mobile; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("namePrefix") - public String getNamePrefix() { - return namePrefix; - } - - @JsonIgnore - public void setNamePrefix(String namePrefix) { - this.namePrefix = namePrefix; - } - - @JsonProperty("nameSuffix") - public String getNameSuffix() { - return nameSuffix; - } - - @JsonIgnore - public void setNameSuffix(String nameSuffix) { - this.nameSuffix = nameSuffix; - } - - @JsonProperty("nickName") - public String getNickName() { - return nickName; - } - - @JsonIgnore - public void setNickName(String nickName) { - this.nickName = nickName; - } - - @JsonProperty("notes") - public OneToMany getNotes() { - return notes; - } - - @ReadOnly - @JsonProperty("notes") - public void setNotes(OneToMany notes) { - this.notes = notes; - } - - @JsonProperty("numEmployees") - public Integer getNumEmployees() { - return numEmployees; - } - - @JsonProperty("numEmployees") - public void setNumEmployees(Integer numEmployees) { - this.numEmployees = numEmployees; - } - - @JsonProperty("occupation") - public String getOccupation() { - return occupation; - } - - @JsonIgnore - public void setOccupation(String occupation) { - this.occupation = occupation; - } - - @JsonProperty("office") - public String getOffice() { - return office; - } - - @JsonIgnore - public void setOffice(String office) { - this.office = office; - } - - @JsonProperty("owner") - public CorporateUser getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(CorporateUser owner) { - this.owner = owner; - } - - @JsonProperty("pager") - public String getPager() { - return pager; - } - - @JsonIgnore - public void setPager(String pager) { - this.pager = pager; - } - - @JsonProperty("password") - public String getPassword() { - return password; - } - - @JsonIgnore - public void setPassword(String password) { - this.password = password; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("phone2") - public String getPhone2() { - return phone2; - } - - @JsonIgnore - public void setPhone2(String phone2) { - this.phone2 = phone2; - } - - @JsonProperty("phone3") - public String getPhone3() { - return phone3; - } - - @JsonIgnore - public void setPhone3(String phone3) { - this.phone3 = phone3; - } - - @JsonProperty("preferredContact") - public String getPreferredContact() { - return preferredContact; - } - - @JsonIgnore - public void setPreferredContact(String preferredContact) { - this.preferredContact = preferredContact; - } - - @JsonProperty("referredByPerson") - public Person getReferredByPerson() { - return referredByPerson; - } - - @JsonProperty("referredByPerson") - public void setReferredByPerson(Person referredByPerson) { - this.referredByPerson = referredByPerson; - } - - @JsonProperty("reportToPerson") - public Person getReportToPerson() { - return reportToPerson; - } - - @JsonProperty("reportToPerson") - public void setReportToPerson(Person reportToPerson) { - this.reportToPerson = reportToPerson; - } - - @JsonProperty("secondaryAddress") - public Address getSecondaryAddress() { - return secondaryAddress; - } - - @JsonProperty("secondaryAddress") - public void setSecondaryAddress(Address secondaryAddress) { - this.secondaryAddress = secondaryAddress; - } - - @JsonProperty("secondaryOwners") - public OneToMany getSecondaryOwners() { - return secondaryOwners; - } - - @JsonProperty("secondaryOwners") - public void setSecondaryOwners(OneToMany secondaryOwners) { - this.secondaryOwners = secondaryOwners; - } - - @JsonProperty("skills") - public OneToMany getSkills() { - return skills; - } - - @JsonProperty("skills") - public void setSkills(OneToMany skills) { - this.skills = skills; - } - - @JsonProperty("smsOptIn") - public Boolean getSmsOptIn() { - return smsOptIn; - } - - @JsonProperty("smsOptIn") - public void setSmsOptIn(Boolean smsOptIn) { - this.smsOptIn = smsOptIn; - } - - @JsonProperty("source") - public String getSource() { - return source; - } - - @JsonIgnore - public void setSource(String source) { - this.source = source; - } - - @JsonProperty("specialties") - public OneToMany getSpecialties() { - return specialties; - } - - @JsonProperty("specialties") - public void setSpecialties(OneToMany specialties) { - this.specialties = specialties; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("tearsheets") - public OneToManyLinkedId getTearsheets() { - return tearsheets; - } - - @ReadOnly - @JsonProperty("tearsheets") - public void setTearsheets(OneToManyLinkedId tearsheets) { - this.tearsheets = tearsheets; - } - - @JsonProperty("timeZoneOffsetEST") - public Integer getTimeZoneOffsetEST() { - return timeZoneOffsetEST; - } - - @JsonProperty("timeZoneOffsetEST") - public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { - this.timeZoneOffsetEST = timeZoneOffsetEST; - } - - @JsonProperty("trackTitle") - public String getTrackTitle() { - return trackTitle; - } - - @JsonIgnore - public void setTrackTitle(String trackTitle) { - this.trackTitle = trackTitle; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("username") - public String getUsername() { - return username; - } - - @JsonIgnore - public void setUsername(String username) { - this.username = username; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - ClientContact that = (ClientContact) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (address != null ? !address.equals(that.address) : that.address != null) return false; - if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; - if (businessSectors != null ? !businessSectors.equals(that.businessSectors) : that.businessSectors != null) - return false; - if (categories != null ? !categories.equals(that.categories) : that.categories != null) return false; - if (category != null ? !category.equals(that.category) : that.category != null) return false; - if (certifications != null ? !certifications.equals(that.certifications) : that.certifications != null) - return false; - if (clientContactID != null ? !clientContactID.equals(that.clientContactID) : that.clientContactID != null) - return false; - if (clientCorporation != null ? !clientCorporation.equals(that.clientCorporation) : that.clientCorporation != null) - return false; - if (comments != null ? !comments.equals(that.comments) : that.comments != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateLastComment != null ? !dateLastComment.equals(that.dateLastComment) : that.dateLastComment != null) - return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (dateLastVisit != null ? !dateLastVisit.equals(that.dateLastVisit) : that.dateLastVisit != null) - return false; - if (deleteMe != null ? !deleteMe.equals(that.deleteMe) : that.deleteMe != null) return false; - if (description != null ? !description.equals(that.description) : that.description != null) return false; - if (desiredCategories != null ? !desiredCategories.equals(that.desiredCategories) : that.desiredCategories != null) - return false; - if (desiredSkills != null ? !desiredSkills.equals(that.desiredSkills) : that.desiredSkills != null) - return false; - if (desiredSpecialties != null ? !desiredSpecialties.equals(that.desiredSpecialties) : that.desiredSpecialties != null) - return false; - if (division != null ? !division.equals(that.division) : that.division != null) return false; - if (email != null ? !email.equals(that.email) : that.email != null) return false; - if (email2 != null ? !email2.equals(that.email2) : that.email2 != null) return false; - if (email3 != null ? !email3.equals(that.email3) : that.email3 != null) return false; - if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; - if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; - if (fax2 != null ? !fax2.equals(that.fax2) : that.fax2 != null) return false; - if (fax3 != null ? !fax3.equals(that.fax3) : that.fax3 != null) return false; - if (firstName != null ? !firstName.equals(that.firstName) : that.firstName != null) return false; - if (isDayLightSavings != null ? !isDayLightSavings.equals(that.isDayLightSavings) : that.isDayLightSavings != null) - return false; - if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; - if (isLockedOut != null ? !isLockedOut.equals(that.isLockedOut) : that.isLockedOut != null) return false; - if (lastName != null ? !lastName.equals(that.lastName) : that.lastName != null) return false; - if (linkedPerson != null ? !linkedPerson.equals(that.linkedPerson) : that.linkedPerson != null) return false; - if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; - if (massMailOptOut != null ? !massMailOptOut.equals(that.massMailOptOut) : that.massMailOptOut != null) - return false; - if (middleName != null ? !middleName.equals(that.middleName) : that.middleName != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; - if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namePrefix != null ? !namePrefix.equals(that.namePrefix) : that.namePrefix != null) return false; - if (nameSuffix != null ? !nameSuffix.equals(that.nameSuffix) : that.nameSuffix != null) return false; - if (nickName != null ? !nickName.equals(that.nickName) : that.nickName != null) return false; - if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; - if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; - if (occupation != null ? !occupation.equals(that.occupation) : that.occupation != null) return false; - if (office != null ? !office.equals(that.office) : that.office != null) return false; - if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; - if (pager != null ? !pager.equals(that.pager) : that.pager != null) return false; - if (password != null ? !password.equals(that.password) : that.password != null) return false; - if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; - if (phone2 != null ? !phone2.equals(that.phone2) : that.phone2 != null) return false; - if (phone3 != null ? !phone3.equals(that.phone3) : that.phone3 != null) return false; - if (preferredContact != null ? !preferredContact.equals(that.preferredContact) : that.preferredContact != null) - return false; - if (referredByPerson != null ? !referredByPerson.equals(that.referredByPerson) : that.referredByPerson != null) - return false; - if (reportToPerson != null ? !reportToPerson.equals(that.reportToPerson) : that.reportToPerson != null) - return false; - if (secondaryAddress != null ? !secondaryAddress.equals(that.secondaryAddress) : that.secondaryAddress != null) - return false; - if (secondaryOwners != null ? !secondaryOwners.equals(that.secondaryOwners) : that.secondaryOwners != null) - return false; - if (skills != null ? !skills.equals(that.skills) : that.skills != null) return false; - if (smsOptIn != null ? !smsOptIn.equals(that.smsOptIn) : that.smsOptIn != null) return false; - if (source != null ? !source.equals(that.source) : that.source != null) return false; - if (specialties != null ? !specialties.equals(that.specialties) : that.specialties != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (tearsheets != null ? !tearsheets.equals(that.tearsheets) : that.tearsheets != null) return false; - if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(that.timeZoneOffsetEST) : that.timeZoneOffsetEST != null) - return false; - if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (username != null ? !username.equals(that.username) : that.username != null) return false; - if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) - return false; - return customObject10s != null ? customObject10s.equals(that.customObject10s) : that.customObject10s == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); - result = 31 * result + (categories != null ? categories.hashCode() : 0); - result = 31 * result + (category != null ? category.hashCode() : 0); - result = 31 * result + (certifications != null ? certifications.hashCode() : 0); - result = 31 * result + (clientContactID != null ? clientContactID.hashCode() : 0); - result = 31 * result + (clientCorporation != null ? clientCorporation.hashCode() : 0); - result = 31 * result + (comments != null ? comments.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (dateLastVisit != null ? dateLastVisit.hashCode() : 0); - result = 31 * result + (deleteMe != null ? deleteMe.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (desiredCategories != null ? desiredCategories.hashCode() : 0); - result = 31 * result + (desiredSkills != null ? desiredSkills.hashCode() : 0); - result = 31 * result + (desiredSpecialties != null ? desiredSpecialties.hashCode() : 0); - result = 31 * result + (division != null ? division.hashCode() : 0); - result = 31 * result + (email != null ? email.hashCode() : 0); - result = 31 * result + (email2 != null ? email2.hashCode() : 0); - result = 31 * result + (email3 != null ? email3.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); - result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); - result = 31 * result + (firstName != null ? firstName.hashCode() : 0); - result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); - result = 31 * result + (lastName != null ? lastName.hashCode() : 0); - result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); - result = 31 * result + (middleName != null ? middleName.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (mobile != null ? mobile.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); - result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); - result = 31 * result + (nickName != null ? nickName.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); - result = 31 * result + (occupation != null ? occupation.hashCode() : 0); - result = 31 * result + (office != null ? office.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (pager != null ? pager.hashCode() : 0); - result = 31 * result + (password != null ? password.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); - result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); - result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); - result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); - result = 31 * result + (reportToPerson != null ? reportToPerson.hashCode() : 0); - result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); - result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); - result = 31 * result + (skills != null ? skills.hashCode() : 0); - result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); - result = 31 * result + (source != null ? source.hashCode() : 0); - result = 31 * result + (specialties != null ? specialties.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); - result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); - result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - result = 31 * result + (username != null ? username.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - return result; - } - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientContactID != null){ - sb.append(lbc + "clientContactID=").append(clientContactID); - } - if(clientCorporation != null){ - sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateLastVisit != null){ - sb.append(lbc + "dateLastVisit=").append(dateLastVisit); - } - if(deleteMe != null){ - sb.append(lbc + "deleteMe=").append(deleteMe); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredCategories != null){ - sb.append(lbc + "desiredCategories=").append(desiredCategories); - } - if(desiredSkills != null){ - sb.append(lbc + "desiredSkills=").append(desiredSkills); - } - if(desiredSpecialties != null){ - sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); - } - if(division != null){ - sb.append(lbc + "division=").append(division); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(office != null){ - sb.append(lbc + "office=").append(office); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); - } - if(reportToPerson != null){ - sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); - } - if(skills != null){ - sb.append(lbc + "skills=").append(skills); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull()); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull()); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientContactID != null){ - sb.append(lbc + "clientContactID=").append(clientContactID); - } - if(clientCorporation != null){ - sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateLastVisit != null){ - sb.append(lbc + "dateLastVisit=").append(dateLastVisit); - } - if(deleteMe != null){ - sb.append(lbc + "deleteMe=").append(deleteMe); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredCategories != null){ - sb.append(lbc + "desiredCategories=").append(desiredCategories); - } - if(desiredSkills != null){ - sb.append(lbc + "desiredSkills=").append(desiredSkills); - } - if(desiredSpecialties != null){ - sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); - } - if(division != null){ - sb.append(lbc + "division=").append(division); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull()); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(office != null){ - sb.append(lbc + "office=").append(office); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull()); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); - } - if(reportToPerson != null){ - sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull()); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); - } - if(skills != null){ - sb.append(lbc + "skills=").append(skills.toStringNonNull()); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", branch=").append(branch); - sb.append(", businessSectors=").append(businessSectors); - sb.append(", categories=").append(categories); - sb.append(", category=").append(category); - sb.append(", certifications=").append(certifications); - sb.append(", clientContactID=").append(clientContactID); - sb.append(", clientCorporation=").append(clientCorporation); - sb.append(", comments=").append(comments); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateLastComment=").append(dateLastComment); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", dateLastVisit=").append(dateLastVisit); - sb.append(", deleteMe=").append(deleteMe); - sb.append(", description=").append(description); - sb.append(", desiredCategories=").append(desiredCategories); - sb.append(", desiredSkills=").append(desiredSkills); - sb.append(", desiredSpecialties=").append(desiredSpecialties); - sb.append(", division=").append(division); - sb.append(", email=").append(email); - sb.append(", email2=").append(email2); - sb.append(", email3=").append(email3); - sb.append(", externalID=").append(externalID); - sb.append(", fax=").append(fax); - sb.append(", fax2=").append(fax2); - sb.append(", fax3=").append(fax3); - sb.append(", firstName=").append(firstName); - sb.append(", isDayLightSavings=").append(isDayLightSavings); - sb.append(", isDeleted=").append(isDeleted); - sb.append(", isLockedOut=").append(isLockedOut); - sb.append(", lastName=").append(lastName); - sb.append(", linkedPerson=").append(linkedPerson); - sb.append(", leads=").append(leads); - sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName=").append(middleName); - sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile=").append(mobile); - sb.append(", name=").append(name); - sb.append(", namePrefix=").append(namePrefix); - sb.append(", nameSuffix=").append(nameSuffix); - sb.append(", nickName=").append(nickName); - sb.append(", notes=").append(notes); - sb.append(", numEmployees=").append(numEmployees); - sb.append(", occupation=").append(occupation); - sb.append(", office=").append(office); - sb.append(", owner=").append(owner); - sb.append(", pager=").append(pager); - sb.append(", password=").append(password); - sb.append(", phone=").append(phone); - sb.append(", phone2=").append(phone2); - sb.append(", phone3=").append(phone3); - sb.append(", preferredContact=").append(preferredContact); - sb.append(", referredByPerson=").append(referredByPerson); - sb.append(", reportToPerson=").append(reportToPerson); - sb.append(", secondaryAddress=").append(secondaryAddress); - sb.append(", secondaryOwners=").append(secondaryOwners); - sb.append(", skills=").append(skills); - sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source=").append(source); - sb.append(", specialties=").append(specialties); - sb.append(", status=").append(status); - sb.append(", tearsheets=").append(tearsheets); - sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", trackTitle=").append(trackTitle); - sb.append(", type=").append(type); - sb.append(", username=").append(username); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import org.hibernate.validator.constraints.Email; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "categories", + "category", "certifications", "clientContactID", "clientCorporation", + "comments", "customDate1", "customDate2", "customDate3", + "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", + "customText11", "customText12", "customText13", "customText14", + "customText15", "customText16", "customText17", "customText18", + "customText19", "customText2", "customText20", "customText3", + "customText4", "customText5", "customText6", "customText7", + "customText8", "customText9", "customTextBlock1", "customTextBlock2", + "customTextBlock3", "customTextBlock4", "customTextBlock5", + "dateAdded", "dateLastComment", "dateLastModified", "dateLastVisit", "deleteMe", + "description", "desiredCategories", "desiredSkills", + "desiredSpecialties", "division", "email", "email2", "email3", + "externalID", "fax", "fax2", "fax3", "firstName", "isDayLightSavings", + "isDeleted", "isLockedOut", "lastName", "linkedPerson", "leads", + "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", + "namePrefix", "nameSuffix", "nickName", "notes", "numEmployees", "occupation", + "office", "owner", "pager", "password", "phone", "phone2", "phone3", + "preferredContact", "referredByPerson", "reportToPerson", + "secondaryAddress", "secondaryOwners", "skills", "smsOptIn", "source", + "specialties", "status", "tearsheets", "timeZoneOffsetEST", "trackTitle", "type", + "username", "customObject1s", "customObject2s", "customObject3s", + "customObject4s", "customObject5s", "customObject6s", "customObject7s", + "customObject8s", "customObject9s", "customObject10s" }) +public class ClientContact extends CustomFieldsB implements QueryEntity, + UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, + AssociationEntity, SearchEntity, DateLastModifiedEntity, EditHistoryEntity { + + private Integer id; + + private Address address; + + private Branch branch; + + private OneToMany businessSectors; + + private OneToMany categories; + + private Category category; + + @JsonIgnore + private String certifications; + + private Integer clientContactID; + + private ClientCorporation clientCorporation; + + @JsonIgnore + private String comments; + + private DateTime dateAdded; + + private DateTime dateLastComment; + + private DateTime dateLastModified; + + private DateTime dateLastVisit; + + private Boolean deleteMe; + + @JsonIgnore + private String description; + + @JsonIgnore + private String desiredCategories; + + @JsonIgnore + private String desiredSkills; + + @JsonIgnore + private String desiredSpecialties; + + @JsonIgnore + @Size(max = 40) + private String division; + + @JsonIgnore + @Email + @Size(max = 60) + private String email; + + @JsonIgnore + @Email + @Size(max = 100) + private String email2; + + @JsonIgnore + @Email + @Size(max = 100) + private String email3; + + @JsonIgnore + @Size(max = 30) + private String externalID; + + @JsonIgnore + @Size(max = 20) + private String fax; + + @JsonIgnore + @Size(max = 20) + private String fax2; + + @JsonIgnore + @Size(max = 20) + private String fax3; + + @JsonIgnore + @Size(max = 50) + private String firstName; + + private Boolean isDayLightSavings; + + private Boolean isDeleted; + + private Boolean isLockedOut; + + @JsonIgnore + @Size(max = 50) + private String lastName; + + private Person linkedPerson; + + private OneToMany leads; + + private Boolean massMailOptOut; + + @JsonIgnore + @Size(max = 50) + private String middleName; + + private Object migrateGUID; + + @JsonIgnore + @Size(max = 20) + private String mobile; + + @JsonIgnore + private String name; + + @JsonIgnore + @Size(max = 5) + private String namePrefix; + + @JsonIgnore + @Size(max = 5) + private String nameSuffix; + + @JsonIgnore + private String nickName; + + private OneToMany notes; + + private Integer numEmployees; + + @JsonIgnore + @Size(max = 50) + private String occupation; + + @JsonIgnore + @Size(max = 40) + private String office; + + private CorporateUser owner; + + @JsonIgnore + @Size(max = 20) + private String pager; + + @JsonIgnore + private String password; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + @Size(max = 20) + private String phone2; + + @JsonIgnore + @Size(max = 20) + private String phone3; + + @JsonIgnore + @Size(max = 15) + private String preferredContact; + + private Person referredByPerson; + + private Person reportToPerson; + + private Address secondaryAddress; + + private OneToMany secondaryOwners; + + private OneToMany skills; + + private Boolean smsOptIn; + + @JsonIgnore + @Size(max = 200) + private String source; + + private OneToMany specialties; + + @JsonIgnore + @Size(max = 30) + private String status; + + private OneToManyLinkedId tearsheets; + + private Integer timeZoneOffsetEST; + + @JsonIgnore + @Size(max = 200) + private String trackTitle; + + @JsonIgnore + @Size(max = 30) + private String type; + + @JsonIgnore + private String username; + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + public ClientContact() { + super(); + } + + public ClientContact(Integer id) { + super(); + this.id = id; + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public ClientContact instantiateForInsert() { + ClientContact entity = new ClientContact(); + entity.setCategory(new Category(512973)); + entity.setClientCorporation(new ClientCorporation(1)); + entity.setEmail("unknown"); + entity.setNumEmployees(1); + entity.setIsDeleted(Boolean.FALSE); + entity.setPreferredContact("Email"); + entity.setStatus("Client"); + entity.setUsername(new DateTime().toString()); + entity.setPassword("secret"); + entity.setType("Unknown"); + return entity; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonProperty("businessSectors") + public OneToMany getBusinessSectors() { + return businessSectors; + } + + @JsonProperty("businessSectors") + public void setBusinessSectors(OneToMany businessSectors) { + this.businessSectors = businessSectors; + } + + @JsonProperty("categories") + public OneToMany getCategories() { + return categories; + } + + @JsonProperty("categories") + public void setCategories(OneToMany categories) { + this.categories = categories; + } + + @JsonProperty("category") + public Category getCategory() { + return category; + } + + @JsonProperty("category") + public void setCategory(Category category) { + this.category = category; + } + + @JsonProperty("certifications") + public String getCertifications() { + return certifications; + } + + @JsonIgnore + public void setCertifications(String certifications) { + this.certifications = certifications; + } + + @JsonProperty("clientContactID") + public Integer getClientContactID() { + return clientContactID; + } + + @ReadOnly + @JsonProperty("clientContactID") + public void setClientContactID(Integer clientContactID) { + this.clientContactID = clientContactID; + } + + @JsonProperty("clientCorporation") + public ClientCorporation getClientCorporation() { + return clientCorporation; + } + + @JsonProperty("clientCorporation") + public void setClientCorporation(ClientCorporation clientCorporation) { + this.clientCorporation = clientCorporation; + } + + @JsonProperty("comments") + public String getComments() { + return comments; + } + + @JsonIgnore + public void setComments(String comments) { + this.comments = comments; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastComment") + public DateTime getDateLastComment() { + return dateLastComment; + } + + @ReadOnly + @JsonProperty("dateLastComment") + public void setDateLastComment(DateTime dateLastComment) { + this.dateLastComment = dateLastComment; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("dateLastVisit") + public DateTime getDateLastVisit() { + return dateLastVisit; + } + + @JsonProperty("dateLastVisit") + public void setDateLastVisit(DateTime dateLastVisit) { + this.dateLastVisit = dateLastVisit; + } + + @JsonProperty("deleteMe") + public Boolean getDeleteMe() { + return deleteMe; + } + + @JsonProperty("deleteMe") + public void setDeleteMe(Boolean deleteMe) { + this.deleteMe = deleteMe; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonIgnore + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("desiredCategories") + public String getDesiredCategories() { + return desiredCategories; + } + + @JsonIgnore + public void setDesiredCategories(String desiredCategories) { + this.desiredCategories = desiredCategories; + } + + @JsonProperty("desiredSkills") + public String getDesiredSkills() { + return desiredSkills; + } + + @JsonIgnore + public void setDesiredSkills(String desiredSkills) { + this.desiredSkills = desiredSkills; + } + + @JsonProperty("desiredSpecialties") + public String getDesiredSpecialties() { + return desiredSpecialties; + } + + @JsonIgnore + public void setDesiredSpecialties(String desiredSpecialties) { + this.desiredSpecialties = desiredSpecialties; + } + + @JsonProperty("division") + public String getDivision() { + return division; + } + + @JsonIgnore + public void setDivision(String division) { + this.division = division; + } + + @JsonProperty("email") + public String getEmail() { + return email; + } + + @JsonIgnore + public void setEmail(String email) { + this.email = email; + } + + @JsonProperty("email2") + public String getEmail2() { + return email2; + } + + @JsonIgnore + public void setEmail2(String email2) { + this.email2 = email2; + } + + @JsonProperty("email3") + public String getEmail3() { + return email3; + } + + @JsonIgnore + public void setEmail3(String email3) { + this.email3 = email3; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonIgnore + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("fax2") + public String getFax2() { + return fax2; + } + + @JsonIgnore + public void setFax2(String fax2) { + this.fax2 = fax2; + } + + @JsonProperty("fax3") + public String getFax3() { + return fax3; + } + + @JsonIgnore + public void setFax3(String fax3) { + this.fax3 = fax3; + } + + @JsonProperty("firstName") + public String getFirstName() { + return firstName; + } + + @JsonIgnore + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + @JsonProperty("isDayLightSavings") + public Boolean getIsDayLightSavings() { + return isDayLightSavings; + } + + @JsonProperty("isDayLightSavings") + public void setIsDayLightSavings(Boolean isDayLightSavings) { + this.isDayLightSavings = isDayLightSavings; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isLockedOut") + public Boolean getIsLockedOut() { + return isLockedOut; + } + + @JsonProperty("isLockedOut") + public void setIsLockedOut(Boolean isLockedOut) { + this.isLockedOut = isLockedOut; + } + + @JsonProperty("lastName") + public String getLastName() { + return lastName; + } + + @JsonIgnore + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @JsonProperty("linkedPerson") + public Person getLinkedPerson() { + return linkedPerson; + } + + @JsonProperty("linkedPerson") + public void setLinkedPerson(Person linkedPerson) { + this.linkedPerson = linkedPerson; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("massMailOptOut") + public Boolean getMassMailOptOut() { + return massMailOptOut; + } + + @JsonProperty("massMailOptOut") + public void setMassMailOptOut(Boolean massMailOptOut) { + this.massMailOptOut = massMailOptOut; + } + + @JsonProperty("middleName") + public String getMiddleName() { + return middleName; + } + + @JsonIgnore + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonIgnore + public void setMigrateGUID(String migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("mobile") + public String getMobile() { + return mobile; + } + + @JsonIgnore + public void setMobile(String mobile) { + this.mobile = mobile; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namePrefix") + public String getNamePrefix() { + return namePrefix; + } + + @JsonIgnore + public void setNamePrefix(String namePrefix) { + this.namePrefix = namePrefix; + } + + @JsonProperty("nameSuffix") + public String getNameSuffix() { + return nameSuffix; + } + + @JsonIgnore + public void setNameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + } + + @JsonProperty("nickName") + public String getNickName() { + return nickName; + } + + @JsonIgnore + public void setNickName(String nickName) { + this.nickName = nickName; + } + + @JsonProperty("notes") + public OneToMany getNotes() { + return notes; + } + + @ReadOnly + @JsonProperty("notes") + public void setNotes(OneToMany notes) { + this.notes = notes; + } + + @JsonProperty("numEmployees") + public Integer getNumEmployees() { + return numEmployees; + } + + @JsonProperty("numEmployees") + public void setNumEmployees(Integer numEmployees) { + this.numEmployees = numEmployees; + } + + @JsonProperty("occupation") + public String getOccupation() { + return occupation; + } + + @JsonIgnore + public void setOccupation(String occupation) { + this.occupation = occupation; + } + + @JsonProperty("office") + public String getOffice() { + return office; + } + + @JsonIgnore + public void setOffice(String office) { + this.office = office; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("pager") + public String getPager() { + return pager; + } + + @JsonIgnore + public void setPager(String pager) { + this.pager = pager; + } + + @JsonProperty("password") + public String getPassword() { + return password; + } + + @JsonIgnore + public void setPassword(String password) { + this.password = password; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("phone2") + public String getPhone2() { + return phone2; + } + + @JsonIgnore + public void setPhone2(String phone2) { + this.phone2 = phone2; + } + + @JsonProperty("phone3") + public String getPhone3() { + return phone3; + } + + @JsonIgnore + public void setPhone3(String phone3) { + this.phone3 = phone3; + } + + @JsonProperty("preferredContact") + public String getPreferredContact() { + return preferredContact; + } + + @JsonIgnore + public void setPreferredContact(String preferredContact) { + this.preferredContact = preferredContact; + } + + @JsonProperty("referredByPerson") + public Person getReferredByPerson() { + return referredByPerson; + } + + @JsonProperty("referredByPerson") + public void setReferredByPerson(Person referredByPerson) { + this.referredByPerson = referredByPerson; + } + + @JsonProperty("reportToPerson") + public Person getReportToPerson() { + return reportToPerson; + } + + @JsonProperty("reportToPerson") + public void setReportToPerson(Person reportToPerson) { + this.reportToPerson = reportToPerson; + } + + @JsonProperty("secondaryAddress") + public Address getSecondaryAddress() { + return secondaryAddress; + } + + @JsonProperty("secondaryAddress") + public void setSecondaryAddress(Address secondaryAddress) { + this.secondaryAddress = secondaryAddress; + } + + @JsonProperty("secondaryOwners") + public OneToMany getSecondaryOwners() { + return secondaryOwners; + } + + @JsonProperty("secondaryOwners") + public void setSecondaryOwners(OneToMany secondaryOwners) { + this.secondaryOwners = secondaryOwners; + } + + @JsonProperty("skills") + public OneToMany getSkills() { + return skills; + } + + @JsonProperty("skills") + public void setSkills(OneToMany skills) { + this.skills = skills; + } + + @JsonProperty("smsOptIn") + public Boolean getSmsOptIn() { + return smsOptIn; + } + + @JsonProperty("smsOptIn") + public void setSmsOptIn(Boolean smsOptIn) { + this.smsOptIn = smsOptIn; + } + + @JsonProperty("source") + public String getSource() { + return source; + } + + @JsonIgnore + public void setSource(String source) { + this.source = source; + } + + @JsonProperty("specialties") + public OneToMany getSpecialties() { + return specialties; + } + + @JsonProperty("specialties") + public void setSpecialties(OneToMany specialties) { + this.specialties = specialties; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("tearsheets") + public OneToManyLinkedId getTearsheets() { + return tearsheets; + } + + @ReadOnly + @JsonProperty("tearsheets") + public void setTearsheets(OneToManyLinkedId tearsheets) { + this.tearsheets = tearsheets; + } + + @JsonProperty("timeZoneOffsetEST") + public Integer getTimeZoneOffsetEST() { + return timeZoneOffsetEST; + } + + @JsonProperty("timeZoneOffsetEST") + public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { + this.timeZoneOffsetEST = timeZoneOffsetEST; + } + + @JsonProperty("trackTitle") + public String getTrackTitle() { + return trackTitle; + } + + @JsonIgnore + public void setTrackTitle(String trackTitle) { + this.trackTitle = trackTitle; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("username") + public String getUsername() { + return username; + } + + @JsonIgnore + public void setUsername(String username) { + this.username = username; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + ClientContact that = (ClientContact) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (address != null ? !address.equals(that.address) : that.address != null) return false; + if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; + if (businessSectors != null ? !businessSectors.equals(that.businessSectors) : that.businessSectors != null) + return false; + if (categories != null ? !categories.equals(that.categories) : that.categories != null) return false; + if (category != null ? !category.equals(that.category) : that.category != null) return false; + if (certifications != null ? !certifications.equals(that.certifications) : that.certifications != null) + return false; + if (clientContactID != null ? !clientContactID.equals(that.clientContactID) : that.clientContactID != null) + return false; + if (clientCorporation != null ? !clientCorporation.equals(that.clientCorporation) : that.clientCorporation != null) + return false; + if (comments != null ? !comments.equals(that.comments) : that.comments != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateLastComment != null ? !dateLastComment.equals(that.dateLastComment) : that.dateLastComment != null) + return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (dateLastVisit != null ? !dateLastVisit.equals(that.dateLastVisit) : that.dateLastVisit != null) + return false; + if (deleteMe != null ? !deleteMe.equals(that.deleteMe) : that.deleteMe != null) return false; + if (description != null ? !description.equals(that.description) : that.description != null) return false; + if (desiredCategories != null ? !desiredCategories.equals(that.desiredCategories) : that.desiredCategories != null) + return false; + if (desiredSkills != null ? !desiredSkills.equals(that.desiredSkills) : that.desiredSkills != null) + return false; + if (desiredSpecialties != null ? !desiredSpecialties.equals(that.desiredSpecialties) : that.desiredSpecialties != null) + return false; + if (division != null ? !division.equals(that.division) : that.division != null) return false; + if (email != null ? !email.equals(that.email) : that.email != null) return false; + if (email2 != null ? !email2.equals(that.email2) : that.email2 != null) return false; + if (email3 != null ? !email3.equals(that.email3) : that.email3 != null) return false; + if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; + if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; + if (fax2 != null ? !fax2.equals(that.fax2) : that.fax2 != null) return false; + if (fax3 != null ? !fax3.equals(that.fax3) : that.fax3 != null) return false; + if (firstName != null ? !firstName.equals(that.firstName) : that.firstName != null) return false; + if (isDayLightSavings != null ? !isDayLightSavings.equals(that.isDayLightSavings) : that.isDayLightSavings != null) + return false; + if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; + if (isLockedOut != null ? !isLockedOut.equals(that.isLockedOut) : that.isLockedOut != null) return false; + if (lastName != null ? !lastName.equals(that.lastName) : that.lastName != null) return false; + if (linkedPerson != null ? !linkedPerson.equals(that.linkedPerson) : that.linkedPerson != null) return false; + if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; + if (massMailOptOut != null ? !massMailOptOut.equals(that.massMailOptOut) : that.massMailOptOut != null) + return false; + if (middleName != null ? !middleName.equals(that.middleName) : that.middleName != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; + if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false; + if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (namePrefix != null ? !namePrefix.equals(that.namePrefix) : that.namePrefix != null) return false; + if (nameSuffix != null ? !nameSuffix.equals(that.nameSuffix) : that.nameSuffix != null) return false; + if (nickName != null ? !nickName.equals(that.nickName) : that.nickName != null) return false; + if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; + if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; + if (occupation != null ? !occupation.equals(that.occupation) : that.occupation != null) return false; + if (office != null ? !office.equals(that.office) : that.office != null) return false; + if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; + if (pager != null ? !pager.equals(that.pager) : that.pager != null) return false; + if (password != null ? !password.equals(that.password) : that.password != null) return false; + if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; + if (phone2 != null ? !phone2.equals(that.phone2) : that.phone2 != null) return false; + if (phone3 != null ? !phone3.equals(that.phone3) : that.phone3 != null) return false; + if (preferredContact != null ? !preferredContact.equals(that.preferredContact) : that.preferredContact != null) + return false; + if (referredByPerson != null ? !referredByPerson.equals(that.referredByPerson) : that.referredByPerson != null) + return false; + if (reportToPerson != null ? !reportToPerson.equals(that.reportToPerson) : that.reportToPerson != null) + return false; + if (secondaryAddress != null ? !secondaryAddress.equals(that.secondaryAddress) : that.secondaryAddress != null) + return false; + if (secondaryOwners != null ? !secondaryOwners.equals(that.secondaryOwners) : that.secondaryOwners != null) + return false; + if (skills != null ? !skills.equals(that.skills) : that.skills != null) return false; + if (smsOptIn != null ? !smsOptIn.equals(that.smsOptIn) : that.smsOptIn != null) return false; + if (source != null ? !source.equals(that.source) : that.source != null) return false; + if (specialties != null ? !specialties.equals(that.specialties) : that.specialties != null) return false; + if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (tearsheets != null ? !tearsheets.equals(that.tearsheets) : that.tearsheets != null) return false; + if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(that.timeZoneOffsetEST) : that.timeZoneOffsetEST != null) + return false; + if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; + if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (username != null ? !username.equals(that.username) : that.username != null) return false; + if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) + return false; + return customObject10s != null ? customObject10s.equals(that.customObject10s) : that.customObject10s == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); + result = 31 * result + (categories != null ? categories.hashCode() : 0); + result = 31 * result + (category != null ? category.hashCode() : 0); + result = 31 * result + (certifications != null ? certifications.hashCode() : 0); + result = 31 * result + (clientContactID != null ? clientContactID.hashCode() : 0); + result = 31 * result + (clientCorporation != null ? clientCorporation.hashCode() : 0); + result = 31 * result + (comments != null ? comments.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (dateLastVisit != null ? dateLastVisit.hashCode() : 0); + result = 31 * result + (deleteMe != null ? deleteMe.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (desiredCategories != null ? desiredCategories.hashCode() : 0); + result = 31 * result + (desiredSkills != null ? desiredSkills.hashCode() : 0); + result = 31 * result + (desiredSpecialties != null ? desiredSpecialties.hashCode() : 0); + result = 31 * result + (division != null ? division.hashCode() : 0); + result = 31 * result + (email != null ? email.hashCode() : 0); + result = 31 * result + (email2 != null ? email2.hashCode() : 0); + result = 31 * result + (email3 != null ? email3.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); + result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); + result = 31 * result + (firstName != null ? firstName.hashCode() : 0); + result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); + result = 31 * result + (lastName != null ? lastName.hashCode() : 0); + result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); + result = 31 * result + (middleName != null ? middleName.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (mobile != null ? mobile.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); + result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); + result = 31 * result + (nickName != null ? nickName.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); + result = 31 * result + (occupation != null ? occupation.hashCode() : 0); + result = 31 * result + (office != null ? office.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (pager != null ? pager.hashCode() : 0); + result = 31 * result + (password != null ? password.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); + result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); + result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); + result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); + result = 31 * result + (reportToPerson != null ? reportToPerson.hashCode() : 0); + result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); + result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); + result = 31 * result + (skills != null ? skills.hashCode() : 0); + result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); + result = 31 * result + (source != null ? source.hashCode() : 0); + result = 31 * result + (specialties != null ? specialties.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); + result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); + result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + result = 31 * result + (username != null ? username.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + return result; + } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull()); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull()); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", branch=").append(branch); + sb.append(", businessSectors=").append(businessSectors); + sb.append(", categories=").append(categories); + sb.append(", category=").append(category); + sb.append(", certifications=").append(certifications); + sb.append(", clientContactID=").append(clientContactID); + sb.append(", clientCorporation=").append(clientCorporation); + sb.append(", comments=").append(comments); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateLastComment=").append(dateLastComment); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", dateLastVisit=").append(dateLastVisit); + sb.append(", deleteMe=").append(deleteMe); + sb.append(", description=").append(description); + sb.append(", desiredCategories=").append(desiredCategories); + sb.append(", desiredSkills=").append(desiredSkills); + sb.append(", desiredSpecialties=").append(desiredSpecialties); + sb.append(", division=").append(division); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", firstName=").append(firstName); + sb.append(", isDayLightSavings=").append(isDayLightSavings); + sb.append(", isDeleted=").append(isDeleted); + sb.append(", isLockedOut=").append(isLockedOut); + sb.append(", lastName=").append(lastName); + sb.append(", linkedPerson=").append(linkedPerson); + sb.append(", leads=").append(leads); + sb.append(", massMailOptOut=").append(massMailOptOut); + sb.append(", middleName=").append(middleName); + sb.append(", migrateGUID=").append(migrateGUID); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); + sb.append(", notes=").append(notes); + sb.append(", numEmployees=").append(numEmployees); + sb.append(", occupation=").append(occupation); + sb.append(", office=").append(office); + sb.append(", owner=").append(owner); + sb.append(", pager=").append(pager); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", preferredContact=").append(preferredContact); + sb.append(", referredByPerson=").append(referredByPerson); + sb.append(", reportToPerson=").append(reportToPerson); + sb.append(", secondaryAddress=").append(secondaryAddress); + sb.append(", secondaryOwners=").append(secondaryOwners); + sb.append(", skills=").append(skills); + sb.append(", smsOptIn=").append(smsOptIn); + sb.append(", source=").append(source); + sb.append(", specialties=").append(specialties); + sb.append(", status=").append(status); + sb.append(", tearsheets=").append(tearsheets); + sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); + sb.append(", trackTitle=").append(trackTitle); + sb.append(", type=").append(type); + sb.append(", username=").append(username); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java index 651fb492..7477b89b 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java @@ -1,1802 +1,1802 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; -import java.math.BigDecimal; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "annualRevenue", "billingAddress", "billingContact", "billingFrequency", "billingPhone", - "branch", "businessSectorList", "certifications", "requirements", "certificationGroups", "childClientCorporations", "clientContacts", - "companyDescription", "companyURL", "competitors", "culture", "customDate1", "customDate2", "customDate3", "customFloat1", "customFloat2", - "customFloat3", "customInt1", "customInt2", "customInt3", "customText1", "customText10", "customText11", "customText12", "customText13", - "customText14", "customText15", "customText16", "customText17", "customText18", "customText19", "customText2", "customText20", - "customText3", "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", - "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "dateAdded", "dateFounded", "dateLastModified", "department", - "externalID", "fax", "feeArrangement", "funding", "industryList", "invoiceFormat", "leads", "linkedinProfileName", "name", "notes", "numEmployees", "numOffices", - "ownership", "parentClientCorporation", "phone", "revenue", "status", "taxRate", "tickerSymbol", "trackTitle", "workWeekStart", - "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", "customObject7s", - "customObject8s", "customObject9s", "customObject10s" }) -public class ClientCorporation extends CustomFieldsB implements QueryEntity, UpdateEntity, CreateEntity, FileEntity, AssociationEntity, - SearchEntity, DateLastModifiedEntity, EditHistoryEntity { - - private Integer id; - - private Address address; - - private BigDecimal annualRevenue; - - private Address billingAddress; - - @JsonIgnore - @Size(max = 100) - private String billingContact; - - @JsonIgnore - @Size(max = 20) - private String billingFrequency; - - @JsonIgnore - @Size(max = 20) - private String billingPhone; - - private Branch branch; - - @JsonIgnore - private String businessSectorList; - - private OneToMany childClientCorporations; - - private OneToMany clientContacts; - - - @JsonIgnore - private String companyDescription; - - @JsonIgnore - @Size(max = 100) - private String companyURL; - - @JsonIgnore - private String competitors; - - @JsonIgnore - private String culture; - - private DateTime dateAdded; - - private DateTime dateFounded; - - private DateTime dateLastModified; - - private CorporationDepartment department; - - @JsonIgnore - private String externalID; - - @JsonIgnore - private String fax; - - private BigDecimal feeArrangement; - - @JsonIgnore - private String funding; - - @JsonIgnore - private String industryList; - - @JsonIgnore - private String invoiceFormat; - - private OneToMany leads; - - @JsonIgnore - @Size(max = 200) - private String linkedinProfileName; - - @JsonIgnore - @Size(max = 100) - private String name; - - @JsonIgnore - private String notes; - - private Integer numEmployees; - - private Integer numOffices; - - @JsonIgnore - @Size(max = 30) - private String ownership; - - private OneToManyLinkedId owners; - - private ClientCorporation parentClientCorporation; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - private String revenue; - - @JsonIgnore - @Size(max = 30) - private String status; - - private BigDecimal taxRate; - - @JsonIgnore - @Size(max = 20) - private String tickerSymbol; - - @JsonIgnore - @Size(max = 200) - private String trackTitle; - - private Integer workWeekStart; - - private OneToMany requirements; - - private OneToMany certificationGroups; - - private OneToMany certifications; // legacy certifications - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - private OneToMany customObject11s; - - private OneToMany customObject12s; - - private OneToMany customObject13s; - - private OneToMany customObject14s; - - private OneToMany customObject15s; - - private OneToMany customObject16s; - - private OneToMany customObject17s; - - private OneToMany customObject18s; - - private OneToMany customObject19s; - - private OneToMany customObject20s; - - private OneToMany customObject21s; - - private OneToMany customObject22s; - - private OneToMany customObject23s; - - private OneToMany customObject24s; - - private OneToMany customObject25s; - - private OneToMany customObject26s; - - private OneToMany customObject27s; - - private OneToMany customObject28s; - - private OneToMany customObject29s; - - private OneToMany customObject30s; - - private OneToMany customObject31s; - - private OneToMany customObject32s; - - private OneToMany customObject33s; - - private OneToMany customObject34s; - - private OneToMany customObject35s; - - public ClientCorporation() { - super(); - } - - public ClientCorporation(Integer id) { - super(); - this.id = id; - } - - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("annualRevenue") - public BigDecimal getAnnualRevenue() { - return annualRevenue; - } - - @JsonProperty("annualRevenue") - public void setAnnualRevenue(BigDecimal annualRevenue) { - this.annualRevenue = annualRevenue; - } - - @JsonProperty("billingAddress") - public Address getBillingAddress() { - return billingAddress; - } - - @JsonProperty("billingAddress") - public void setBillingAddress(Address billingAddress) { - this.billingAddress = billingAddress; - } - - @JsonProperty("billingContact") - public String getBillingContact() { - return billingContact; - } - - @JsonIgnore - public void setBillingContact(String billingContact) { - this.billingContact = billingContact; - } - - @JsonProperty("billingFrequency") - public String getBillingFrequency() { - return billingFrequency; - } - - @JsonIgnore - public void setBillingFrequency(String billingFrequency) { - this.billingFrequency = billingFrequency; - } - - @JsonProperty("billingPhone") - public String getBillingPhone() { - return billingPhone; - } - - @JsonIgnore - public void setBillingPhone(String billingPhone) { - this.billingPhone = billingPhone; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonProperty("businessSectorList") - public String getBusinessSectorList() { - return businessSectorList; - } - - @JsonIgnore - public void setBusinessSectorList(String businessSectorList) { - this.businessSectorList = businessSectorList; - } - - @JsonProperty("childClientCorporations") - public OneToMany getChildClientCorporations() { - return childClientCorporations; - } - - @ReadOnly - @JsonProperty("childClientCorporations") - public void setChildClientCorporations(OneToMany childClientCorporations) { - this.childClientCorporations = childClientCorporations; - } - - @JsonProperty("clientContacts") - public OneToMany getClientContacts() { - return clientContacts; - } - - @ReadOnly - @JsonProperty("clientContacts") - public void setClientContacts(OneToMany clientContacts) { - this.clientContacts = clientContacts; - } - - @JsonProperty("companyDescription") - public String getCompanyDescription() { - return companyDescription; - } - - @JsonIgnore - public void setCompanyDescription(String companyDescription) { - this.companyDescription = companyDescription; - } - - @JsonProperty("companyURL") - public String getCompanyURL() { - return companyURL; - } - - @JsonIgnore - public void setCompanyURL(String companyURL) { - this.companyURL = companyURL; - } - - @JsonProperty("competitors") - public String getCompetitors() { - return competitors; - } - - @JsonIgnore - public void setCompetitors(String competitors) { - this.competitors = competitors; - } - - @JsonProperty("culture") - public String getCulture() { - return culture; - } - - @JsonIgnore - public void setCulture(String culture) { - this.culture = culture; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateFounded") - public DateTime getDateFounded() { - return dateFounded; - } - - @JsonProperty("dateFounded") - public void setDateFounded(DateTime dateFounded) { - this.dateFounded = dateFounded; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("department") - public CorporationDepartment getDepartment() { - return department; - } - - @JsonProperty("department") - public void setDepartment(CorporationDepartment department) { - this.department = department; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonProperty("fax") - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("feeArrangement") - public BigDecimal getFeeArrangement() { - return feeArrangement; - } - - @JsonProperty("feeArrangement") - public void setFeeArrangement(BigDecimal feeArrangement) { - this.feeArrangement = feeArrangement; - } - - @JsonProperty("funding") - public String getFunding() { - return funding; - } - - @JsonIgnore - public void setFunding(String funding) { - this.funding = funding; - } - - @JsonProperty("industryList") - public String getIndustryList() { - return industryList; - } - - @JsonIgnore - public void setIndustryList(String industryList) { - this.industryList = industryList; - } - - @JsonProperty("invoiceFormat") - public String getInvoiceFormat() { - return invoiceFormat; - } - - @JsonProperty("invoiceFormat") - public void setInvoiceFormat(String invoiceFormat) { - this.invoiceFormat = invoiceFormat; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("linkedinProfileName") - public String getLinkedinProfileName() { - return linkedinProfileName; - } - - @JsonIgnore - public void setLinkedinProfileName(String linkedinProfileName) { - this.linkedinProfileName = linkedinProfileName; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("notes") - public String getNotes() { - return notes; - } - - @JsonIgnore - public void setNotes(String notes) { - this.notes = notes; - } - - @JsonProperty("numEmployees") - public Integer getNumEmployees() { - return numEmployees; - } - - @JsonProperty("numEmployees") - public void setNumEmployees(Integer numEmployees) { - this.numEmployees = numEmployees; - } - - @JsonProperty("numOffices") - public Integer getNumOffices() { - return numOffices; - } - - @JsonProperty("numOffices") - public void setNumOffices(Integer numOffices) { - this.numOffices = numOffices; - } - - @JsonProperty("ownership") - public String getOwnership() { - return ownership; - } - - @JsonIgnore - public void setOwnership(String ownership) { - this.ownership = ownership; - } - - @JsonIgnore - public OneToManyLinkedId getOwners() { - return owners; - } - - @ReadOnly - @JsonProperty("owners") - public void setOwners(OneToManyLinkedId owners) { - this.owners = owners; - } - - @JsonProperty("parentClientCorporation") - public ClientCorporation getParentClientCorporation() { - return parentClientCorporation; - } - - @JsonProperty("parentClientCorporation") - public void setParentClientCorporation(ClientCorporation parentClientCorporation) { - this.parentClientCorporation = parentClientCorporation; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("revenue") - public String getRevenue() { - return revenue; - } - - @JsonIgnore - public void setRevenue(String revenue) { - this.revenue = revenue; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("taxRate") - public BigDecimal getTaxRate() { - return taxRate; - } - - @JsonProperty("taxRate") - public void setTaxRate(BigDecimal taxRate) { - this.taxRate = taxRate; - } - - @JsonProperty("tickerSymbol") - public String getTickerSymbol() { - return tickerSymbol; - } - - @JsonIgnore - public void setTickerSymbol(String tickerSymbol) { - this.tickerSymbol = tickerSymbol; - } - - @JsonProperty("trackTitle") - public String getTrackTitle() { - return trackTitle; - } - - @JsonIgnore - public void setTrackTitle(String trackTitle) { - this.trackTitle = trackTitle; - } - - @JsonProperty("workWeekStart") - public Integer getWorkWeekStart() { - return workWeekStart; - } - - @JsonProperty("workWeekStart") - public void setWorkWeekStart(Integer workWeekStart) { - this.workWeekStart = workWeekStart; - } - - - - @JsonProperty("requirements") - public OneToMany getRequirements() { - return requirements; - } - - @ReadOnly - @JsonProperty("requirements") - public void setRequirements(OneToMany requirements) { - this.requirements = requirements; - } - - @JsonProperty("certificationGroups") - public OneToMany getCertificationGroups() { - return certificationGroups; - } - - @ReadOnly - @JsonProperty("certificationGroups") - public void setCertificationGroups(OneToMany certificationGroups) { - this.certificationGroups = certificationGroups; - } - - @JsonProperty("certifications") - public OneToMany getCertifications() { - return certifications; - } - - @ReadOnly - @JsonProperty("certifications") - public void setCertifications(OneToMany certifications) { - this.certifications = certifications; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @JsonProperty("customObject11s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject11s() { - return customObject11s; - } - - @JsonProperty("customObject11s") - public void setCustomObject11s(OneToMany customObject11s) { - this.customObject11s = customObject11s; - } - - @JsonProperty("customObject12s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject12s() { - return customObject12s; - } - - @JsonProperty("customObject12s") - public void setCustomObject12s(OneToMany customObject12s) { - this.customObject12s = customObject12s; - } - - @JsonProperty("customObject13s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject13s() { - return customObject13s; - } - - @JsonProperty("customObject13s") - public void setCustomObject13s(OneToMany customObject13s) { - this.customObject13s = customObject13s; - } - - @JsonProperty("customObject14s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject14s() { - return customObject14s; - } - - @JsonProperty("customObject14s") - public void setCustomObject14s(OneToMany customObject14s) { - this.customObject14s = customObject14s; - } - - @JsonProperty("customObject15s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject15s() { - return customObject15s; - } - - @JsonProperty("customObject15s") - public void setCustomObject15s(OneToMany customObject15s) { - this.customObject15s = customObject15s; - } - - @JsonProperty("customObject16s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject16s() { - return customObject16s; - } - - @JsonProperty("customObject16s") - public void setCustomObject16s(OneToMany customObject16s) { - this.customObject16s = customObject16s; - } - - @JsonProperty("customObject17s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject17s() { - return customObject17s; - } - - @JsonProperty("customObject17s") - public void setCustomObject17s(OneToMany customObject17s) { - this.customObject17s = customObject17s; - } - - @JsonProperty("customObject18s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject18s() { - return customObject18s; - } - - @JsonProperty("customObject18s") - public void setCustomObject18s(OneToMany customObject18s) { - this.customObject18s = customObject18s; - } - - @JsonProperty("customObject19s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject19s() { return customObject19s; } - - @JsonProperty("customObject19s") - public void setCustomObject19s(OneToMany customObject19s) { this.customObject19s = customObject19s; } - - @JsonProperty("customObject20s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject20s() { - return customObject20s; - } - - @JsonProperty("customObject20s") - public void setCustomObject20s(OneToMany customObject20s) { - this.customObject20s = customObject20s; - } - - @JsonProperty("customObject21s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject21s() { - return customObject21s; - } - - @JsonProperty("customObject21s") - public void setCustomObject21s(OneToMany customObject21s) { - this.customObject21s = customObject21s; - } - - @JsonProperty("customObject22s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject22s() { - return customObject22s; - } - - @JsonProperty("customObject22s") - public void setCustomObject22s(OneToMany customObject22s) { - this.customObject22s = customObject22s; - } - - @JsonProperty("customObject23s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject23s() { - return customObject23s; - } - - @JsonProperty("customObject23s") - public void setCustomObject23s(OneToMany customObject23s) { - this.customObject23s = customObject23s; - } - - @JsonProperty("customObject24s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject24s() { - return customObject24s; - } - - @JsonProperty("customObject24s") - public void setCustomObject24s(OneToMany customObject24s) { - this.customObject24s = customObject24s; - } - - @JsonProperty("customObject25s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject25s() { - return customObject25s; - } - - @JsonProperty("customObject25s") - public void setCustomObject25s(OneToMany customObject25s) { - this.customObject25s = customObject25s; - } - - @JsonProperty("customObject26s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject26s() { - return customObject26s; - } - - @JsonProperty("customObject26s") - public void setCustomObject26s(OneToMany customObject26s) { - this.customObject26s = customObject26s; - } - - @JsonProperty("customObject27s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject27s() { - return customObject27s; - } - - @JsonProperty("customObject27s") - public void setCustomObject27s(OneToMany customObject27s) { - this.customObject27s = customObject27s; - } - - @JsonProperty("customObject28s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject28s() { - return customObject28s; - } - - @JsonProperty("customObject28s") - public void setCustomObject28s(OneToMany customObject28s) { - this.customObject28s = customObject28s; - } - - @JsonProperty("customObject29s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject29s() { - return customObject29s; - } - - @JsonProperty("customObject29s") - public void setCustomObject29s(OneToMany customObject29s) { - this.customObject29s = customObject29s; - } - - @JsonProperty("customObject30s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject30s() { - return customObject30s; - } - - @JsonProperty("customObject30s") - public void setCustomObject30s(OneToMany customObject30s) { - this.customObject30s = customObject30s; - } - - @JsonProperty("customObject31s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject31s() { - return customObject31s; - } - - @JsonProperty("customObject31s") - public void setCustomObject31s(OneToMany customObject31s) { - this.customObject31s = customObject31s; - } - - @JsonProperty("customObject32s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject32s() { - return customObject32s; - } - - @JsonProperty("customObject32s") - public void setCustomObject32s(OneToMany customObject32s) { - this.customObject32s = customObject32s; - } - - @JsonProperty("customObject33s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject33s() { - return customObject33s; - } - - @JsonProperty("customObject33s") - public void setCustomObject33s(OneToMany customObject33s) { - this.customObject33s = customObject33s; - } - - @JsonProperty("customObject34s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject34s() { - return customObject34s; - } - - @JsonProperty("customObject34s") - public void setCustomObject34s(OneToMany customObject34s) { - this.customObject34s = customObject34s; - } - - @JsonProperty("customObject35s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject35s() { - return customObject35s; - } - - @JsonProperty("customObject35s") - public void setCustomObject35s(OneToMany customObject35s) { - this.customObject35s = customObject35s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - ClientCorporation that = (ClientCorporation) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (address != null ? !address.equals(that.address) : that.address != null) return false; - if (annualRevenue != null ? !annualRevenue.equals(that.annualRevenue) : that.annualRevenue != null) - return false; - if (billingAddress != null ? !billingAddress.equals(that.billingAddress) : that.billingAddress != null) - return false; - if (billingContact != null ? !billingContact.equals(that.billingContact) : that.billingContact != null) - return false; - if (billingFrequency != null ? !billingFrequency.equals(that.billingFrequency) : that.billingFrequency != null) - return false; - if (billingPhone != null ? !billingPhone.equals(that.billingPhone) : that.billingPhone != null) return false; - if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; - if (businessSectorList != null ? !businessSectorList.equals(that.businessSectorList) : that.businessSectorList != null) - return false; - if (childClientCorporations != null ? !childClientCorporations.equals(that.childClientCorporations) : that.childClientCorporations != null) - return false; - if (clientContacts != null ? !clientContacts.equals(that.clientContacts) : that.clientContacts != null) - return false; - if (companyDescription != null ? !companyDescription.equals(that.companyDescription) : that.companyDescription != null) - return false; - if (companyURL != null ? !companyURL.equals(that.companyURL) : that.companyURL != null) return false; - if (competitors != null ? !competitors.equals(that.competitors) : that.competitors != null) return false; - if (culture != null ? !culture.equals(that.culture) : that.culture != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateFounded != null ? !dateFounded.equals(that.dateFounded) : that.dateFounded != null) return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (department != null ? !department.equals(that.department) : that.department != null) return false; - if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; - if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; - if (feeArrangement != null ? !feeArrangement.equals(that.feeArrangement) : that.feeArrangement != null) - return false; - if (funding != null ? !funding.equals(that.funding) : that.funding != null) return false; - if (industryList != null ? !industryList.equals(that.industryList) : that.industryList != null) return false; - if (invoiceFormat != null ? !invoiceFormat.equals(that.invoiceFormat) : that.invoiceFormat != null) - return false; - if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; - if (linkedinProfileName != null ? !linkedinProfileName.equals(that.linkedinProfileName) : that.linkedinProfileName != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; - if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; - if (numOffices != null ? !numOffices.equals(that.numOffices) : that.numOffices != null) return false; - if (ownership != null ? !ownership.equals(that.ownership) : that.ownership != null) return false; - if (owners != null ? !owners.equals(that.owners) : that.owners != null) return false; - if (parentClientCorporation != null ? !parentClientCorporation.equals(that.parentClientCorporation) : that.parentClientCorporation != null) - return false; - if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; - if (revenue != null ? !revenue.equals(that.revenue) : that.revenue != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (taxRate != null ? !taxRate.equals(that.taxRate) : that.taxRate != null) return false; - if (tickerSymbol != null ? !tickerSymbol.equals(that.tickerSymbol) : that.tickerSymbol != null) return false; - if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; - if (workWeekStart != null ? !workWeekStart.equals(that.workWeekStart) : that.workWeekStart != null) - return false; - if (requirements != null ? !requirements.equals(that.requirements) : that.requirements != null) - return false; - if (certificationGroups != null ? !certificationGroups.equals(that.certificationGroups) : that.certificationGroups != null) - return false; - if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) - return false; - if (customObject10s != null ? !customObject10s.equals(that.customObject10s) : that.customObject10s != null) - return false; - if (customObject11s != null ? !customObject11s.equals(that.customObject11s) : that.customObject11s != null) - return false; - if (customObject12s != null ? !customObject12s.equals(that.customObject12s) : that.customObject12s != null) - return false; - if (customObject13s != null ? !customObject13s.equals(that.customObject13s) : that.customObject13s != null) - return false; - if (customObject14s != null ? !customObject14s.equals(that.customObject14s) : that.customObject14s != null) - return false; - if (customObject15s != null ? !customObject15s.equals(that.customObject15s) : that.customObject15s != null) - return false; - if (customObject16s != null ? !customObject16s.equals(that.customObject16s) : that.customObject16s != null) - return false; - if (customObject17s != null ? !customObject17s.equals(that.customObject17s) : that.customObject17s != null) - return false; - if (customObject18s != null ? !customObject18s.equals(that.customObject18s) : that.customObject18s != null) - return false; - if (customObject19s != null ? !customObject19s.equals(that.customObject19s) : that.customObject19s != null) - return false; - return customObject20s != null ? customObject20s.equals(that.customObject20s) : that.customObject20s == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (annualRevenue != null ? annualRevenue.hashCode() : 0); - result = 31 * result + (billingAddress != null ? billingAddress.hashCode() : 0); - result = 31 * result + (billingContact != null ? billingContact.hashCode() : 0); - result = 31 * result + (billingFrequency != null ? billingFrequency.hashCode() : 0); - result = 31 * result + (billingPhone != null ? billingPhone.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (businessSectorList != null ? businessSectorList.hashCode() : 0); - result = 31 * result + (childClientCorporations != null ? childClientCorporations.hashCode() : 0); - result = 31 * result + (clientContacts != null ? clientContacts.hashCode() : 0); - result = 31 * result + (companyDescription != null ? companyDescription.hashCode() : 0); - result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); - result = 31 * result + (competitors != null ? competitors.hashCode() : 0); - result = 31 * result + (culture != null ? culture.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateFounded != null ? dateFounded.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (department != null ? department.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (feeArrangement != null ? feeArrangement.hashCode() : 0); - result = 31 * result + (funding != null ? funding.hashCode() : 0); - result = 31 * result + (industryList != null ? industryList.hashCode() : 0); - result = 31 * result + (invoiceFormat != null ? invoiceFormat.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (linkedinProfileName != null ? linkedinProfileName.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); - result = 31 * result + (numOffices != null ? numOffices.hashCode() : 0); - result = 31 * result + (ownership != null ? ownership.hashCode() : 0); - result = 31 * result + (owners != null ? owners.hashCode() : 0); - result = 31 * result + (parentClientCorporation != null ? parentClientCorporation.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (revenue != null ? revenue.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (taxRate != null ? taxRate.hashCode() : 0); - result = 31 * result + (tickerSymbol != null ? tickerSymbol.hashCode() : 0); - result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); - result = 31 * result + (workWeekStart != null ? workWeekStart.hashCode() : 0); - result = 31 * result + (requirements != null ? requirements.hashCode() : 0); - result = 31 * result + (certificationGroups != null ? certificationGroups.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - result = 31 * result + (customObject11s != null ? customObject11s.hashCode() : 0); - result = 31 * result + (customObject12s != null ? customObject12s.hashCode() : 0); - result = 31 * result + (customObject13s != null ? customObject13s.hashCode() : 0); - result = 31 * result + (customObject14s != null ? customObject14s.hashCode() : 0); - result = 31 * result + (customObject15s != null ? customObject15s.hashCode() : 0); - result = 31 * result + (customObject16s != null ? customObject16s.hashCode() : 0); - result = 31 * result + (customObject17s != null ? customObject17s.hashCode() : 0); - result = 31 * result + (customObject18s != null ? customObject18s.hashCode() : 0); - result = 31 * result + (customObject19s != null ? customObject19s.hashCode() : 0); - result = 31 * result + (customObject20s != null ? customObject20s.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull()); - } - if(annualRevenue != null){ - sb.append(lbc + "annualRevenue=").append(annualRevenue); - } - if(billingAddress != null){ - sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull()); - } - if(billingContact != null){ - sb.append(lbc + "billingContact=").append(billingContact); - } - if(billingFrequency != null){ - sb.append(lbc + "billingFrequency=").append(billingFrequency); - } - if(billingPhone != null){ - sb.append(lbc + "billingPhone=").append(billingPhone); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectorList != null){ - sb.append(lbc + "businessSectorList=").append(businessSectorList); - } - if(childClientCorporations != null){ - sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull()); - } - if(clientContacts != null){ - sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull()); - } - if(companyDescription != null){ - sb.append(lbc + "companyDescription=").append(companyDescription); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(competitors != null){ - sb.append(lbc + "competitors=").append(competitors); - } - if(culture != null){ - sb.append(lbc + "culture=").append(culture); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateFounded != null){ - sb.append(lbc + "dateFounded=").append(dateFounded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(department != null){ - sb.append(lbc + "department=").append(department.toStringNonNull()); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(feeArrangement != null){ - sb.append(lbc + "feeArrangement=").append(feeArrangement); - } - if(funding != null){ - sb.append(lbc + "funding=").append(funding); - } - if(industryList != null){ - sb.append(lbc + "industryList=").append(industryList); - } - if(invoiceFormat != null){ - sb.append(lbc + "invoiceFormat=").append(invoiceFormat); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(linkedinProfileName != null){ - sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(numOffices != null){ - sb.append(lbc + "numOffices=").append(numOffices); - } - if(ownership != null){ - sb.append(lbc + "ownership=").append(ownership); - } - if(owners != null){ - sb.append(lbc + "owners=").append(owners.toStringNonNull()); - } - if(parentClientCorporation != null){ - sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull()); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(revenue != null){ - sb.append(lbc + "revenue=").append(revenue); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(taxRate != null){ - sb.append(lbc + "taxRate=").append(taxRate); - } - if(tickerSymbol != null){ - sb.append(lbc + "tickerSymbol=").append(tickerSymbol); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(workWeekStart != null){ - sb.append(lbc + "workWeekStart=").append(workWeekStart); - } - if(requirements != null){ - sb.append(lbc + "requirements=").append(requirements); - } - if(certificationGroups != null){ - sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - if(customObject11s != null){ - sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull()); - } - if(customObject12s != null){ - sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull()); - } - if(customObject13s != null){ - sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull()); - } - if(customObject14s != null){ - sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull()); - } - if(customObject15s != null){ - sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull()); - } - if(customObject16s != null){ - sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull()); - } - if(customObject17s != null){ - sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull()); - } - if(customObject18s != null){ - sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull()); - } - if(customObject19s != null){ - sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull()); - } - if(customObject20s != null){ - sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(includeLineBreaks) - sb.append("\n"); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); - } - if(annualRevenue != null){ - sb.append(lbc + "annualRevenue=").append(annualRevenue); - } - if(billingAddress != null){ - sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull(includeLineBreaks)); - } - if(billingContact != null){ - sb.append(lbc + "billingContact=").append(billingContact); - } - if(billingFrequency != null){ - sb.append(lbc + "billingFrequency=").append(billingFrequency); - } - if(billingPhone != null){ - sb.append(lbc + "billingPhone=").append(billingPhone); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectorList != null){ - sb.append(lbc + "businessSectorList=").append(businessSectorList); - } - if(childClientCorporations != null){ - sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull(includeLineBreaks)); - } - if(clientContacts != null){ - sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); - } - if(companyDescription != null){ - sb.append(lbc + "companyDescription=").append(companyDescription); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(competitors != null){ - sb.append(lbc + "competitors=").append(competitors); - } - if(culture != null){ - sb.append(lbc + "culture=").append(culture); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateFounded != null){ - sb.append(lbc + "dateFounded=").append(dateFounded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(department != null){ - sb.append(lbc + "department=").append(department.toStringNonNull(includeLineBreaks)); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(feeArrangement != null){ - sb.append(lbc + "feeArrangement=").append(feeArrangement); - } - if(funding != null){ - sb.append(lbc + "funding=").append(funding); - } - if(industryList != null){ - sb.append(lbc + "industryList=").append(industryList); - } - if(invoiceFormat != null){ - sb.append(lbc + "invoiceFormat=").append(invoiceFormat); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads); - } - if(linkedinProfileName != null){ - sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(numOffices != null){ - sb.append(lbc + "numOffices=").append(numOffices); - } - if(ownership != null){ - sb.append(lbc + "ownership=").append(ownership); - } - if(owners != null){ - sb.append(lbc + "owners=").append(owners.toStringNonNull(includeLineBreaks)); - } - if(parentClientCorporation != null){ - sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull(includeLineBreaks)); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(revenue != null){ - sb.append(lbc + "revenue=").append(revenue); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(taxRate != null){ - sb.append(lbc + "taxRate=").append(taxRate); - } - if(tickerSymbol != null){ - sb.append(lbc + "tickerSymbol=").append(tickerSymbol); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(workWeekStart != null){ - sb.append(lbc + "workWeekStart=").append(workWeekStart); - } - if(requirements != null){ - sb.append(lbc + "requirements=").append(requirements); - } - if(certificationGroups != null){ - sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(customObject11s != null){ - sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull(includeLineBreaks)); - } - if(customObject12s != null){ - sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull(includeLineBreaks)); - } - if(customObject13s != null){ - sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull(includeLineBreaks)); - } - if(customObject14s != null){ - sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull(includeLineBreaks)); - } - if(customObject15s != null){ - sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull(includeLineBreaks)); - } - if(customObject16s != null){ - sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull(includeLineBreaks)); - } - if(customObject17s != null){ - sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull(includeLineBreaks)); - } - if(customObject18s != null){ - sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull(includeLineBreaks)); - } - if(customObject19s != null){ - sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull(includeLineBreaks)); - } - if(customObject20s != null){ - sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder("ClientCorporation{"); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", annualRevenue=").append(annualRevenue); - sb.append(", billingAddress=").append(billingAddress); - sb.append(", billingContact='").append(billingContact).append('\''); - sb.append(", billingFrequency='").append(billingFrequency).append('\''); - sb.append(", billingPhone='").append(billingPhone).append('\''); - sb.append(", branch=").append(branch); - sb.append(", businessSectorList='").append(businessSectorList).append('\''); - sb.append(", childClientCorporations=").append(childClientCorporations); - sb.append(", clientContacts=").append(clientContacts); - sb.append(", companyDescription='").append(companyDescription).append('\''); - sb.append(", companyURL='").append(companyURL).append('\''); - sb.append(", competitors='").append(competitors).append('\''); - sb.append(", culture='").append(culture).append('\''); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateFounded=").append(dateFounded); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", department=").append(department); - sb.append(", externalID='").append(externalID).append('\''); - sb.append(", fax='").append(fax).append('\''); - sb.append(", feeArrangement=").append(feeArrangement); - sb.append(", funding='").append(funding).append('\''); - sb.append(", industryList='").append(industryList).append('\''); - sb.append(", invoiceFormat='").append(invoiceFormat).append('\''); - sb.append(", leads=").append(leads); - sb.append(", linkedinProfileName='").append(linkedinProfileName).append('\''); - sb.append(", name='").append(name).append('\''); - sb.append(", notes='").append(notes).append('\''); - sb.append(", numEmployees=").append(numEmployees); - sb.append(", numOffices=").append(numOffices); - sb.append(", ownership='").append(ownership).append('\''); - sb.append(", owners=").append(owners); - sb.append(", parentClientCorporation=").append(parentClientCorporation); - sb.append(", phone='").append(phone).append('\''); - sb.append(", revenue='").append(revenue).append('\''); - sb.append(", status='").append(status).append('\''); - sb.append(", taxRate=").append(taxRate); - sb.append(", tickerSymbol='").append(tickerSymbol).append('\''); - sb.append(", trackTitle='").append(trackTitle).append('\''); - sb.append(", workWeekStart=").append(workWeekStart); - sb.append(", requirements=").append(requirements); - sb.append(", certificationGroups=").append(certificationGroups); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append(", customObject11s=").append(customObject11s); - sb.append(", customObject12s=").append(customObject12s); - sb.append(", customObject13s=").append(customObject13s); - sb.append(", customObject14s=").append(customObject14s); - sb.append(", customObject15s=").append(customObject15s); - sb.append(", customObject16s=").append(customObject16s); - sb.append(", customObject17s=").append(customObject17s); - sb.append(", customObject18s=").append(customObject18s); - sb.append(", customObject19s=").append(customObject19s); - sb.append(", customObject20s=").append(customObject20s); - sb.append('}'); - return sb.toString(); - } - - public ClientCorporation instantiateForInsert() { - ClientCorporation entity = new ClientCorporation(); - entity.setAddress(new Address().instantiateForInsert()); - entity.setAnnualRevenue(new BigDecimal(10000.00)); - entity.setFeeArrangement(new BigDecimal(100.00)); - entity.setName("Test Corp"); - entity.setNumEmployees(500); - entity.setNumOffices(1); - entity.setStatus("Active"); - return entity; - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.math.BigDecimal; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "annualRevenue", "billingAddress", "billingContact", "billingFrequency", "billingPhone", + "branch", "businessSectorList", "certifications", "requirements", "certificationGroups", "childClientCorporations", "clientContacts", + "companyDescription", "companyURL", "competitors", "culture", "customDate1", "customDate2", "customDate3", "customFloat1", "customFloat2", + "customFloat3", "customInt1", "customInt2", "customInt3", "customText1", "customText10", "customText11", "customText12", "customText13", + "customText14", "customText15", "customText16", "customText17", "customText18", "customText19", "customText2", "customText20", + "customText3", "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "dateAdded", "dateFounded", "dateLastModified", "department", + "externalID", "fax", "feeArrangement", "funding", "industryList", "invoiceFormat", "leads", "linkedinProfileName", "name", "notes", "numEmployees", "numOffices", + "ownership", "parentClientCorporation", "phone", "revenue", "status", "taxRate", "tickerSymbol", "trackTitle", "workWeekStart", + "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", "customObject7s", + "customObject8s", "customObject9s", "customObject10s" }) +public class ClientCorporation extends CustomFieldsB implements QueryEntity, UpdateEntity, CreateEntity, FileEntity, AssociationEntity, + SearchEntity, DateLastModifiedEntity, EditHistoryEntity { + + private Integer id; + + private Address address; + + private BigDecimal annualRevenue; + + private Address billingAddress; + + @JsonIgnore + @Size(max = 100) + private String billingContact; + + @JsonIgnore + @Size(max = 20) + private String billingFrequency; + + @JsonIgnore + @Size(max = 20) + private String billingPhone; + + private Branch branch; + + @JsonIgnore + private String businessSectorList; + + private OneToMany childClientCorporations; + + private OneToMany clientContacts; + + + @JsonIgnore + private String companyDescription; + + @JsonIgnore + @Size(max = 100) + private String companyURL; + + @JsonIgnore + private String competitors; + + @JsonIgnore + private String culture; + + private DateTime dateAdded; + + private DateTime dateFounded; + + private DateTime dateLastModified; + + private CorporationDepartment department; + + @JsonIgnore + private String externalID; + + @JsonIgnore + private String fax; + + private BigDecimal feeArrangement; + + @JsonIgnore + private String funding; + + @JsonIgnore + private String industryList; + + @JsonIgnore + private String invoiceFormat; + + private OneToMany leads; + + @JsonIgnore + @Size(max = 200) + private String linkedinProfileName; + + @JsonIgnore + @Size(max = 100) + private String name; + + @JsonIgnore + private String notes; + + private Integer numEmployees; + + private Integer numOffices; + + @JsonIgnore + @Size(max = 30) + private String ownership; + + private OneToManyLinkedId owners; + + private ClientCorporation parentClientCorporation; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + private String revenue; + + @JsonIgnore + @Size(max = 30) + private String status; + + private BigDecimal taxRate; + + @JsonIgnore + @Size(max = 20) + private String tickerSymbol; + + @JsonIgnore + @Size(max = 200) + private String trackTitle; + + private Integer workWeekStart; + + private OneToMany requirements; + + private OneToMany certificationGroups; + + private OneToMany certifications; // legacy certifications + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + private OneToMany customObject11s; + + private OneToMany customObject12s; + + private OneToMany customObject13s; + + private OneToMany customObject14s; + + private OneToMany customObject15s; + + private OneToMany customObject16s; + + private OneToMany customObject17s; + + private OneToMany customObject18s; + + private OneToMany customObject19s; + + private OneToMany customObject20s; + + private OneToMany customObject21s; + + private OneToMany customObject22s; + + private OneToMany customObject23s; + + private OneToMany customObject24s; + + private OneToMany customObject25s; + + private OneToMany customObject26s; + + private OneToMany customObject27s; + + private OneToMany customObject28s; + + private OneToMany customObject29s; + + private OneToMany customObject30s; + + private OneToMany customObject31s; + + private OneToMany customObject32s; + + private OneToMany customObject33s; + + private OneToMany customObject34s; + + private OneToMany customObject35s; + + public ClientCorporation() { + super(); + } + + public ClientCorporation(Integer id) { + super(); + this.id = id; + } + + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("annualRevenue") + public BigDecimal getAnnualRevenue() { + return annualRevenue; + } + + @JsonProperty("annualRevenue") + public void setAnnualRevenue(BigDecimal annualRevenue) { + this.annualRevenue = annualRevenue; + } + + @JsonProperty("billingAddress") + public Address getBillingAddress() { + return billingAddress; + } + + @JsonProperty("billingAddress") + public void setBillingAddress(Address billingAddress) { + this.billingAddress = billingAddress; + } + + @JsonProperty("billingContact") + public String getBillingContact() { + return billingContact; + } + + @JsonIgnore + public void setBillingContact(String billingContact) { + this.billingContact = billingContact; + } + + @JsonProperty("billingFrequency") + public String getBillingFrequency() { + return billingFrequency; + } + + @JsonIgnore + public void setBillingFrequency(String billingFrequency) { + this.billingFrequency = billingFrequency; + } + + @JsonProperty("billingPhone") + public String getBillingPhone() { + return billingPhone; + } + + @JsonIgnore + public void setBillingPhone(String billingPhone) { + this.billingPhone = billingPhone; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonProperty("businessSectorList") + public String getBusinessSectorList() { + return businessSectorList; + } + + @JsonIgnore + public void setBusinessSectorList(String businessSectorList) { + this.businessSectorList = businessSectorList; + } + + @JsonProperty("childClientCorporations") + public OneToMany getChildClientCorporations() { + return childClientCorporations; + } + + @ReadOnly + @JsonProperty("childClientCorporations") + public void setChildClientCorporations(OneToMany childClientCorporations) { + this.childClientCorporations = childClientCorporations; + } + + @JsonProperty("clientContacts") + public OneToMany getClientContacts() { + return clientContacts; + } + + @ReadOnly + @JsonProperty("clientContacts") + public void setClientContacts(OneToMany clientContacts) { + this.clientContacts = clientContacts; + } + + @JsonProperty("companyDescription") + public String getCompanyDescription() { + return companyDescription; + } + + @JsonIgnore + public void setCompanyDescription(String companyDescription) { + this.companyDescription = companyDescription; + } + + @JsonProperty("companyURL") + public String getCompanyURL() { + return companyURL; + } + + @JsonIgnore + public void setCompanyURL(String companyURL) { + this.companyURL = companyURL; + } + + @JsonProperty("competitors") + public String getCompetitors() { + return competitors; + } + + @JsonIgnore + public void setCompetitors(String competitors) { + this.competitors = competitors; + } + + @JsonProperty("culture") + public String getCulture() { + return culture; + } + + @JsonIgnore + public void setCulture(String culture) { + this.culture = culture; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateFounded") + public DateTime getDateFounded() { + return dateFounded; + } + + @JsonProperty("dateFounded") + public void setDateFounded(DateTime dateFounded) { + this.dateFounded = dateFounded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("department") + public CorporationDepartment getDepartment() { + return department; + } + + @JsonProperty("department") + public void setDepartment(CorporationDepartment department) { + this.department = department; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonProperty("fax") + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("feeArrangement") + public BigDecimal getFeeArrangement() { + return feeArrangement; + } + + @JsonProperty("feeArrangement") + public void setFeeArrangement(BigDecimal feeArrangement) { + this.feeArrangement = feeArrangement; + } + + @JsonProperty("funding") + public String getFunding() { + return funding; + } + + @JsonIgnore + public void setFunding(String funding) { + this.funding = funding; + } + + @JsonProperty("industryList") + public String getIndustryList() { + return industryList; + } + + @JsonIgnore + public void setIndustryList(String industryList) { + this.industryList = industryList; + } + + @JsonProperty("invoiceFormat") + public String getInvoiceFormat() { + return invoiceFormat; + } + + @JsonProperty("invoiceFormat") + public void setInvoiceFormat(String invoiceFormat) { + this.invoiceFormat = invoiceFormat; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("linkedinProfileName") + public String getLinkedinProfileName() { + return linkedinProfileName; + } + + @JsonIgnore + public void setLinkedinProfileName(String linkedinProfileName) { + this.linkedinProfileName = linkedinProfileName; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("notes") + public String getNotes() { + return notes; + } + + @JsonIgnore + public void setNotes(String notes) { + this.notes = notes; + } + + @JsonProperty("numEmployees") + public Integer getNumEmployees() { + return numEmployees; + } + + @JsonProperty("numEmployees") + public void setNumEmployees(Integer numEmployees) { + this.numEmployees = numEmployees; + } + + @JsonProperty("numOffices") + public Integer getNumOffices() { + return numOffices; + } + + @JsonProperty("numOffices") + public void setNumOffices(Integer numOffices) { + this.numOffices = numOffices; + } + + @JsonProperty("ownership") + public String getOwnership() { + return ownership; + } + + @JsonIgnore + public void setOwnership(String ownership) { + this.ownership = ownership; + } + + @JsonIgnore + public OneToManyLinkedId getOwners() { + return owners; + } + + @ReadOnly + @JsonProperty("owners") + public void setOwners(OneToManyLinkedId owners) { + this.owners = owners; + } + + @JsonProperty("parentClientCorporation") + public ClientCorporation getParentClientCorporation() { + return parentClientCorporation; + } + + @JsonProperty("parentClientCorporation") + public void setParentClientCorporation(ClientCorporation parentClientCorporation) { + this.parentClientCorporation = parentClientCorporation; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("revenue") + public String getRevenue() { + return revenue; + } + + @JsonIgnore + public void setRevenue(String revenue) { + this.revenue = revenue; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("taxRate") + public BigDecimal getTaxRate() { + return taxRate; + } + + @JsonProperty("taxRate") + public void setTaxRate(BigDecimal taxRate) { + this.taxRate = taxRate; + } + + @JsonProperty("tickerSymbol") + public String getTickerSymbol() { + return tickerSymbol; + } + + @JsonIgnore + public void setTickerSymbol(String tickerSymbol) { + this.tickerSymbol = tickerSymbol; + } + + @JsonProperty("trackTitle") + public String getTrackTitle() { + return trackTitle; + } + + @JsonIgnore + public void setTrackTitle(String trackTitle) { + this.trackTitle = trackTitle; + } + + @JsonProperty("workWeekStart") + public Integer getWorkWeekStart() { + return workWeekStart; + } + + @JsonProperty("workWeekStart") + public void setWorkWeekStart(Integer workWeekStart) { + this.workWeekStart = workWeekStart; + } + + + + @JsonProperty("requirements") + public OneToMany getRequirements() { + return requirements; + } + + @ReadOnly + @JsonProperty("requirements") + public void setRequirements(OneToMany requirements) { + this.requirements = requirements; + } + + @JsonProperty("certificationGroups") + public OneToMany getCertificationGroups() { + return certificationGroups; + } + + @ReadOnly + @JsonProperty("certificationGroups") + public void setCertificationGroups(OneToMany certificationGroups) { + this.certificationGroups = certificationGroups; + } + + @JsonProperty("certifications") + public OneToMany getCertifications() { + return certifications; + } + + @ReadOnly + @JsonProperty("certifications") + public void setCertifications(OneToMany certifications) { + this.certifications = certifications; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @JsonProperty("customObject11s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject11s() { + return customObject11s; + } + + @JsonProperty("customObject11s") + public void setCustomObject11s(OneToMany customObject11s) { + this.customObject11s = customObject11s; + } + + @JsonProperty("customObject12s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject12s() { + return customObject12s; + } + + @JsonProperty("customObject12s") + public void setCustomObject12s(OneToMany customObject12s) { + this.customObject12s = customObject12s; + } + + @JsonProperty("customObject13s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject13s() { + return customObject13s; + } + + @JsonProperty("customObject13s") + public void setCustomObject13s(OneToMany customObject13s) { + this.customObject13s = customObject13s; + } + + @JsonProperty("customObject14s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject14s() { + return customObject14s; + } + + @JsonProperty("customObject14s") + public void setCustomObject14s(OneToMany customObject14s) { + this.customObject14s = customObject14s; + } + + @JsonProperty("customObject15s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject15s() { + return customObject15s; + } + + @JsonProperty("customObject15s") + public void setCustomObject15s(OneToMany customObject15s) { + this.customObject15s = customObject15s; + } + + @JsonProperty("customObject16s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject16s() { + return customObject16s; + } + + @JsonProperty("customObject16s") + public void setCustomObject16s(OneToMany customObject16s) { + this.customObject16s = customObject16s; + } + + @JsonProperty("customObject17s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject17s() { + return customObject17s; + } + + @JsonProperty("customObject17s") + public void setCustomObject17s(OneToMany customObject17s) { + this.customObject17s = customObject17s; + } + + @JsonProperty("customObject18s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject18s() { + return customObject18s; + } + + @JsonProperty("customObject18s") + public void setCustomObject18s(OneToMany customObject18s) { + this.customObject18s = customObject18s; + } + + @JsonProperty("customObject19s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject19s() { return customObject19s; } + + @JsonProperty("customObject19s") + public void setCustomObject19s(OneToMany customObject19s) { this.customObject19s = customObject19s; } + + @JsonProperty("customObject20s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject20s() { + return customObject20s; + } + + @JsonProperty("customObject20s") + public void setCustomObject20s(OneToMany customObject20s) { + this.customObject20s = customObject20s; + } + + @JsonProperty("customObject21s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject21s() { + return customObject21s; + } + + @JsonProperty("customObject21s") + public void setCustomObject21s(OneToMany customObject21s) { + this.customObject21s = customObject21s; + } + + @JsonProperty("customObject22s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject22s() { + return customObject22s; + } + + @JsonProperty("customObject22s") + public void setCustomObject22s(OneToMany customObject22s) { + this.customObject22s = customObject22s; + } + + @JsonProperty("customObject23s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject23s() { + return customObject23s; + } + + @JsonProperty("customObject23s") + public void setCustomObject23s(OneToMany customObject23s) { + this.customObject23s = customObject23s; + } + + @JsonProperty("customObject24s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject24s() { + return customObject24s; + } + + @JsonProperty("customObject24s") + public void setCustomObject24s(OneToMany customObject24s) { + this.customObject24s = customObject24s; + } + + @JsonProperty("customObject25s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject25s() { + return customObject25s; + } + + @JsonProperty("customObject25s") + public void setCustomObject25s(OneToMany customObject25s) { + this.customObject25s = customObject25s; + } + + @JsonProperty("customObject26s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject26s() { + return customObject26s; + } + + @JsonProperty("customObject26s") + public void setCustomObject26s(OneToMany customObject26s) { + this.customObject26s = customObject26s; + } + + @JsonProperty("customObject27s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject27s() { + return customObject27s; + } + + @JsonProperty("customObject27s") + public void setCustomObject27s(OneToMany customObject27s) { + this.customObject27s = customObject27s; + } + + @JsonProperty("customObject28s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject28s() { + return customObject28s; + } + + @JsonProperty("customObject28s") + public void setCustomObject28s(OneToMany customObject28s) { + this.customObject28s = customObject28s; + } + + @JsonProperty("customObject29s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject29s() { + return customObject29s; + } + + @JsonProperty("customObject29s") + public void setCustomObject29s(OneToMany customObject29s) { + this.customObject29s = customObject29s; + } + + @JsonProperty("customObject30s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject30s() { + return customObject30s; + } + + @JsonProperty("customObject30s") + public void setCustomObject30s(OneToMany customObject30s) { + this.customObject30s = customObject30s; + } + + @JsonProperty("customObject31s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject31s() { + return customObject31s; + } + + @JsonProperty("customObject31s") + public void setCustomObject31s(OneToMany customObject31s) { + this.customObject31s = customObject31s; + } + + @JsonProperty("customObject32s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject32s() { + return customObject32s; + } + + @JsonProperty("customObject32s") + public void setCustomObject32s(OneToMany customObject32s) { + this.customObject32s = customObject32s; + } + + @JsonProperty("customObject33s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject33s() { + return customObject33s; + } + + @JsonProperty("customObject33s") + public void setCustomObject33s(OneToMany customObject33s) { + this.customObject33s = customObject33s; + } + + @JsonProperty("customObject34s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject34s() { + return customObject34s; + } + + @JsonProperty("customObject34s") + public void setCustomObject34s(OneToMany customObject34s) { + this.customObject34s = customObject34s; + } + + @JsonProperty("customObject35s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject35s() { + return customObject35s; + } + + @JsonProperty("customObject35s") + public void setCustomObject35s(OneToMany customObject35s) { + this.customObject35s = customObject35s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + ClientCorporation that = (ClientCorporation) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (address != null ? !address.equals(that.address) : that.address != null) return false; + if (annualRevenue != null ? !annualRevenue.equals(that.annualRevenue) : that.annualRevenue != null) + return false; + if (billingAddress != null ? !billingAddress.equals(that.billingAddress) : that.billingAddress != null) + return false; + if (billingContact != null ? !billingContact.equals(that.billingContact) : that.billingContact != null) + return false; + if (billingFrequency != null ? !billingFrequency.equals(that.billingFrequency) : that.billingFrequency != null) + return false; + if (billingPhone != null ? !billingPhone.equals(that.billingPhone) : that.billingPhone != null) return false; + if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; + if (businessSectorList != null ? !businessSectorList.equals(that.businessSectorList) : that.businessSectorList != null) + return false; + if (childClientCorporations != null ? !childClientCorporations.equals(that.childClientCorporations) : that.childClientCorporations != null) + return false; + if (clientContacts != null ? !clientContacts.equals(that.clientContacts) : that.clientContacts != null) + return false; + if (companyDescription != null ? !companyDescription.equals(that.companyDescription) : that.companyDescription != null) + return false; + if (companyURL != null ? !companyURL.equals(that.companyURL) : that.companyURL != null) return false; + if (competitors != null ? !competitors.equals(that.competitors) : that.competitors != null) return false; + if (culture != null ? !culture.equals(that.culture) : that.culture != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateFounded != null ? !dateFounded.equals(that.dateFounded) : that.dateFounded != null) return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (department != null ? !department.equals(that.department) : that.department != null) return false; + if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; + if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; + if (feeArrangement != null ? !feeArrangement.equals(that.feeArrangement) : that.feeArrangement != null) + return false; + if (funding != null ? !funding.equals(that.funding) : that.funding != null) return false; + if (industryList != null ? !industryList.equals(that.industryList) : that.industryList != null) return false; + if (invoiceFormat != null ? !invoiceFormat.equals(that.invoiceFormat) : that.invoiceFormat != null) + return false; + if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; + if (linkedinProfileName != null ? !linkedinProfileName.equals(that.linkedinProfileName) : that.linkedinProfileName != null) return false; + if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; + if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; + if (numOffices != null ? !numOffices.equals(that.numOffices) : that.numOffices != null) return false; + if (ownership != null ? !ownership.equals(that.ownership) : that.ownership != null) return false; + if (owners != null ? !owners.equals(that.owners) : that.owners != null) return false; + if (parentClientCorporation != null ? !parentClientCorporation.equals(that.parentClientCorporation) : that.parentClientCorporation != null) + return false; + if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; + if (revenue != null ? !revenue.equals(that.revenue) : that.revenue != null) return false; + if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (taxRate != null ? !taxRate.equals(that.taxRate) : that.taxRate != null) return false; + if (tickerSymbol != null ? !tickerSymbol.equals(that.tickerSymbol) : that.tickerSymbol != null) return false; + if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; + if (workWeekStart != null ? !workWeekStart.equals(that.workWeekStart) : that.workWeekStart != null) + return false; + if (requirements != null ? !requirements.equals(that.requirements) : that.requirements != null) + return false; + if (certificationGroups != null ? !certificationGroups.equals(that.certificationGroups) : that.certificationGroups != null) + return false; + if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) + return false; + if (customObject10s != null ? !customObject10s.equals(that.customObject10s) : that.customObject10s != null) + return false; + if (customObject11s != null ? !customObject11s.equals(that.customObject11s) : that.customObject11s != null) + return false; + if (customObject12s != null ? !customObject12s.equals(that.customObject12s) : that.customObject12s != null) + return false; + if (customObject13s != null ? !customObject13s.equals(that.customObject13s) : that.customObject13s != null) + return false; + if (customObject14s != null ? !customObject14s.equals(that.customObject14s) : that.customObject14s != null) + return false; + if (customObject15s != null ? !customObject15s.equals(that.customObject15s) : that.customObject15s != null) + return false; + if (customObject16s != null ? !customObject16s.equals(that.customObject16s) : that.customObject16s != null) + return false; + if (customObject17s != null ? !customObject17s.equals(that.customObject17s) : that.customObject17s != null) + return false; + if (customObject18s != null ? !customObject18s.equals(that.customObject18s) : that.customObject18s != null) + return false; + if (customObject19s != null ? !customObject19s.equals(that.customObject19s) : that.customObject19s != null) + return false; + return customObject20s != null ? customObject20s.equals(that.customObject20s) : that.customObject20s == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (annualRevenue != null ? annualRevenue.hashCode() : 0); + result = 31 * result + (billingAddress != null ? billingAddress.hashCode() : 0); + result = 31 * result + (billingContact != null ? billingContact.hashCode() : 0); + result = 31 * result + (billingFrequency != null ? billingFrequency.hashCode() : 0); + result = 31 * result + (billingPhone != null ? billingPhone.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (businessSectorList != null ? businessSectorList.hashCode() : 0); + result = 31 * result + (childClientCorporations != null ? childClientCorporations.hashCode() : 0); + result = 31 * result + (clientContacts != null ? clientContacts.hashCode() : 0); + result = 31 * result + (companyDescription != null ? companyDescription.hashCode() : 0); + result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); + result = 31 * result + (competitors != null ? competitors.hashCode() : 0); + result = 31 * result + (culture != null ? culture.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateFounded != null ? dateFounded.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (department != null ? department.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (feeArrangement != null ? feeArrangement.hashCode() : 0); + result = 31 * result + (funding != null ? funding.hashCode() : 0); + result = 31 * result + (industryList != null ? industryList.hashCode() : 0); + result = 31 * result + (invoiceFormat != null ? invoiceFormat.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (linkedinProfileName != null ? linkedinProfileName.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); + result = 31 * result + (numOffices != null ? numOffices.hashCode() : 0); + result = 31 * result + (ownership != null ? ownership.hashCode() : 0); + result = 31 * result + (owners != null ? owners.hashCode() : 0); + result = 31 * result + (parentClientCorporation != null ? parentClientCorporation.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (revenue != null ? revenue.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (taxRate != null ? taxRate.hashCode() : 0); + result = 31 * result + (tickerSymbol != null ? tickerSymbol.hashCode() : 0); + result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); + result = 31 * result + (workWeekStart != null ? workWeekStart.hashCode() : 0); + result = 31 * result + (requirements != null ? requirements.hashCode() : 0); + result = 31 * result + (certificationGroups != null ? certificationGroups.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + result = 31 * result + (customObject11s != null ? customObject11s.hashCode() : 0); + result = 31 * result + (customObject12s != null ? customObject12s.hashCode() : 0); + result = 31 * result + (customObject13s != null ? customObject13s.hashCode() : 0); + result = 31 * result + (customObject14s != null ? customObject14s.hashCode() : 0); + result = 31 * result + (customObject15s != null ? customObject15s.hashCode() : 0); + result = 31 * result + (customObject16s != null ? customObject16s.hashCode() : 0); + result = 31 * result + (customObject17s != null ? customObject17s.hashCode() : 0); + result = 31 * result + (customObject18s != null ? customObject18s.hashCode() : 0); + result = 31 * result + (customObject19s != null ? customObject19s.hashCode() : 0); + result = 31 * result + (customObject20s != null ? customObject20s.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull()); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull()); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull()); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull()); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull()); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull()); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull()); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull()); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull()); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull()); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull()); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull()); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull()); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull()); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull(includeLineBreaks)); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull(includeLineBreaks)); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull(includeLineBreaks)); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull(includeLineBreaks)); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull(includeLineBreaks)); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull(includeLineBreaks)); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull(includeLineBreaks)); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull(includeLineBreaks)); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull(includeLineBreaks)); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull(includeLineBreaks)); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull(includeLineBreaks)); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull(includeLineBreaks)); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull(includeLineBreaks)); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder("ClientCorporation{"); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", annualRevenue=").append(annualRevenue); + sb.append(", billingAddress=").append(billingAddress); + sb.append(", billingContact='").append(billingContact).append('\''); + sb.append(", billingFrequency='").append(billingFrequency).append('\''); + sb.append(", billingPhone='").append(billingPhone).append('\''); + sb.append(", branch=").append(branch); + sb.append(", businessSectorList='").append(businessSectorList).append('\''); + sb.append(", childClientCorporations=").append(childClientCorporations); + sb.append(", clientContacts=").append(clientContacts); + sb.append(", companyDescription='").append(companyDescription).append('\''); + sb.append(", companyURL='").append(companyURL).append('\''); + sb.append(", competitors='").append(competitors).append('\''); + sb.append(", culture='").append(culture).append('\''); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateFounded=").append(dateFounded); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", department=").append(department); + sb.append(", externalID='").append(externalID).append('\''); + sb.append(", fax='").append(fax).append('\''); + sb.append(", feeArrangement=").append(feeArrangement); + sb.append(", funding='").append(funding).append('\''); + sb.append(", industryList='").append(industryList).append('\''); + sb.append(", invoiceFormat='").append(invoiceFormat).append('\''); + sb.append(", leads=").append(leads); + sb.append(", linkedinProfileName='").append(linkedinProfileName).append('\''); + sb.append(", name='").append(name).append('\''); + sb.append(", notes='").append(notes).append('\''); + sb.append(", numEmployees=").append(numEmployees); + sb.append(", numOffices=").append(numOffices); + sb.append(", ownership='").append(ownership).append('\''); + sb.append(", owners=").append(owners); + sb.append(", parentClientCorporation=").append(parentClientCorporation); + sb.append(", phone='").append(phone).append('\''); + sb.append(", revenue='").append(revenue).append('\''); + sb.append(", status='").append(status).append('\''); + sb.append(", taxRate=").append(taxRate); + sb.append(", tickerSymbol='").append(tickerSymbol).append('\''); + sb.append(", trackTitle='").append(trackTitle).append('\''); + sb.append(", workWeekStart=").append(workWeekStart); + sb.append(", requirements=").append(requirements); + sb.append(", certificationGroups=").append(certificationGroups); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append(", customObject11s=").append(customObject11s); + sb.append(", customObject12s=").append(customObject12s); + sb.append(", customObject13s=").append(customObject13s); + sb.append(", customObject14s=").append(customObject14s); + sb.append(", customObject15s=").append(customObject15s); + sb.append(", customObject16s=").append(customObject16s); + sb.append(", customObject17s=").append(customObject17s); + sb.append(", customObject18s=").append(customObject18s); + sb.append(", customObject19s=").append(customObject19s); + sb.append(", customObject20s=").append(customObject20s); + sb.append('}'); + return sb.toString(); + } + + public ClientCorporation instantiateForInsert() { + ClientCorporation entity = new ClientCorporation(); + entity.setAddress(new Address().instantiateForInsert()); + entity.setAnnualRevenue(new BigDecimal(10000.00)); + entity.setFeeArrangement(new BigDecimal(100.00)); + entity.setName("Test Corp"); + entity.setNumEmployees(500); + entity.setNumOffices(1); + entity.setStatus("Active"); + return entity; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java index ba7043b6..49e0226a 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java @@ -928,7 +928,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - StringBuilder builder = new StringBuilder(getClass().getName()); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); builder.append(" { "); if(includeLineBreaks) builder.append("\n"); @@ -1121,7 +1121,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { String lbc = ", "; - StringBuilder builder = new StringBuilder(getClass().getName()); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); builder.append(" { "); if(id != null){ builder.append(lbc + "id="); @@ -1309,7 +1309,7 @@ public String toStringNonNull() { @Override public String toString() { - StringBuilder builder = new StringBuilder(getClass().getName()); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); builder.append(" {\n\tid="); builder.append(id); builder.append("\n\taddress="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java index 029ea8c8..9613b20f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/HousingComplex.java @@ -372,7 +372,7 @@ public boolean equals(Object obj) { @Override public String toString() { - final StringBuilder sb = new StringBuilder(getClass().getName()) + final StringBuilder sb = new StringBuilder(getClass().getSimpleName()) .append(" { "); sb.append("id=").append(id); sb.append(", address=").append(address); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java index 4eb7a3bd..bee0f140 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java @@ -1454,7 +1454,7 @@ public int hashCode() { @Override public String toStringNonNull() { String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } @@ -1737,7 +1737,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } @@ -2019,7 +2019,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toString() { - final StringBuilder sb = new StringBuilder("JobData{"); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); sb.append("luceneScore=").append(luceneScore); sb.append(", id=").append(id); sb.append(", address=").append(address); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java index 018d7fac..db677026 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java @@ -416,7 +416,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(includeLineBreaks) sb.append("\n"); if(id != null){ @@ -500,7 +500,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } @@ -579,7 +579,7 @@ public String toStringNonNull() { @Override public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); sb.append("id=").append(id); sb.append(", appointments=").append(appointments); sb.append(", billRate=").append(billRate); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java index 50deabb9..a355671d 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java @@ -1158,7 +1158,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(includeLineBreaks) sb.append("\n"); if(id != null){ @@ -1382,7 +1382,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } @@ -1602,7 +1602,7 @@ public String toStringNonNull() { @Override public String toString() { - final StringBuilder sb = new StringBuilder("Lead{"); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); sb.append("id=").append(id); sb.append(", address=").append(address); sb.append(", assignedTo=").append(assignedTo); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java index 5065bce0..56347b58 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Note.java @@ -392,7 +392,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(includeLineBreaks) sb.append("\n"); if(id != null){ @@ -492,7 +492,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id="); sb.append(id); @@ -587,7 +587,7 @@ public String toStringNonNull() { @Override public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { ") + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { ") .append(",\n id=") .append(id) .append(",\n action=") diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java index c05b5879..8e51a603 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java @@ -111,7 +111,7 @@ public boolean equals(Object obj) { @Override public String toStringNonNull() { String lbc = ", "; - StringBuilder builder = new StringBuilder(getClass() + " { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ builder.append(lbc + "id="); builder.append(id); @@ -137,7 +137,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - StringBuilder builder = new StringBuilder(getClass() + " { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ builder.append(lbc + "id="); builder.append(id); @@ -160,7 +160,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toString() { - StringBuilder builder = new StringBuilder(getClass() + " {"); + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " {"); builder.append("\nid="); builder.append(id); builder.append(",\n note="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java index f553ca06..01e5e28e 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java @@ -725,7 +725,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; if(includeLineBreaks) lbc = ",\n "; - StringBuilder builder = new StringBuilder(getClass()+" { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()+" { "); if(includeLineBreaks) builder.append("\n"); if(id != null){ @@ -873,7 +873,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { String lbc = ", "; - StringBuilder builder = new StringBuilder(getClass()+" { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()+" { "); if(id != null){ builder.append("id="); builder.append(id); @@ -1016,7 +1016,7 @@ public String toStringNonNull() { @Override public String toString() { - StringBuilder builder = new StringBuilder(getClass()+" { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName()+" { "); builder.append("id="); builder.append(id); builder.append(", address="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index e09469dd..30d0a75c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1542,7 +1542,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toStringNonNull() { String lbc = ", "; - final StringBuilder sb = new StringBuilder("Placement { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java index ab7fef77..e58600f6 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java @@ -1637,6 +1637,692 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\r\n "; + final StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(approvingUser != null){ + builder.append(lbc + "approvingUser="); + builder.append(approvingUser); + } + if(billingClientContact != null){ + builder.append(lbc + "billingClientContact="); + builder.append(billingClientContact); + } + if(billingFrequency != null){ + builder.append(lbc + "billingFrequency="); + builder.append(billingFrequency); + } + if(bonusPackage != null){ + builder.append(lbc + "bonusPackage="); + builder.append(bonusPackage); + } + if(clientBillRate != null){ + builder.append(lbc + "clientBillRate="); + builder.append(clientBillRate); + } + if(clientOvertimeRate != null){ + builder.append(lbc + "clientOvertimeRate="); + builder.append(clientOvertimeRate); + } + if(comments != null){ + builder.append(lbc + "comments="); + builder.append(comments); + } + if(costCenter != null){ + builder.append(lbc + "costCenter="); + builder.append(costCenter); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateApproved != null){ + builder.append(lbc + "dateApproved="); + builder.append(dateApproved); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateClientEffective != null){ + builder.append(lbc + "dateClientEffective="); + builder.append(dateClientEffective); + } + if(dateEffective != null){ + builder.append(lbc + "dateEffective="); + builder.append(dateEffective); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(daysGuaranteed != null){ + builder.append(lbc + "daysGuaranteed="); + builder.append(daysGuaranteed); + } + if(daysProRated != null){ + builder.append(lbc + "daysProRated="); + builder.append(daysProRated); + } + if(durationWeeks != null){ + builder.append(lbc + "durationWeeks="); + builder.append(durationWeeks); + } + if(employeeType != null){ + builder.append(lbc + "employeeType="); + builder.append(employeeType); + } + if(employmentType != null){ + builder.append(lbc + "employmentType="); + builder.append(employmentType); + } + if(fee != null){ + builder.append(lbc + "fee="); + builder.append(fee); + } + if(hoursOfOperation != null){ + builder.append(lbc + "hoursOfOperation="); + builder.append(hoursOfOperation); + } + if(hoursPerDay != null){ + builder.append(lbc + "hoursPerDay="); + builder.append(hoursPerDay); + } + if(housingManagerID != null){ + builder.append(lbc + "housingManagerID="); + builder.append(housingManagerID); + } + if(housingStatus != null){ + builder.append(lbc + "housingStatus="); + builder.append(housingStatus); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(optionsPackage != null){ + builder.append(lbc + "optionsPackage="); + builder.append(optionsPackage); + } + if(otExemption != null){ + builder.append(lbc + "otExemption="); + builder.append(otExemption); + } + if(otherHourlyFee != null){ + builder.append(lbc + "otherHourlyFee="); + builder.append(otherHourlyFee); + } + if(otherHourlyFeeComments != null){ + builder.append(lbc + "otherHourlyFeeComments="); + builder.append(otherHourlyFeeComments); + } + if(overtimeRate != null){ + builder.append(lbc + "overtimeRate="); + builder.append(overtimeRate); + } + if(payRate != null){ + builder.append(lbc + "payRate="); + builder.append(payRate); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement); + } + if(recruitingManagerPercentGrossMargin != null){ + builder.append(lbc + "recruitingManagerPercentGrossMargin="); + builder.append(recruitingManagerPercentGrossMargin); + } + if(referralFee != null){ + builder.append(lbc + "referralFee="); + builder.append(referralFee); + } + if(referralFeeType != null){ + builder.append(lbc + "referralFeeType="); + builder.append(referralFeeType); + } + if(reportTo != null){ + builder.append(lbc + "reportTo="); + builder.append(reportTo); + } + if(requestCustomDate1 != null){ + builder.append(lbc + "requestCustomDate1="); + builder.append(requestCustomDate1); + } + if(requestCustomDate2 != null){ + builder.append(lbc + "requestCustomDate2="); + builder.append(requestCustomDate2); + } + if(requestCustomDate3 != null){ + builder.append(lbc + "requestCustomDate3="); + builder.append(requestCustomDate3); + } + if(requestCustomFloat1 != null){ + builder.append(lbc + "requestCustomFloat1="); + builder.append(requestCustomFloat1); + } + if(requestCustomFloat2 != null){ + builder.append(lbc + "requestCustomFloat2="); + builder.append(requestCustomFloat2); + } + if(requestCustomFloat3 != null){ + builder.append(lbc + "requestCustomFloat3="); + builder.append(requestCustomFloat3); + } + if(requestCustomInt1 != null){ + builder.append(lbc + "requestCustomInt1="); + builder.append(requestCustomInt1); + } + if(requestCustomInt2 != null){ + builder.append(lbc + "requestCustomInt2="); + builder.append(requestCustomInt2); + } + if(requestCustomInt3 != null){ + builder.append(lbc + "requestCustomInt3="); + builder.append(requestCustomInt3); + } + if(requestCustomText1 != null){ + builder.append(lbc + "requestCustomText1="); + builder.append(requestCustomText1); + } + if(requestCustomText10 != null){ + builder.append(lbc + "requestCustomText10="); + builder.append(requestCustomText10); + } + if(requestCustomText11 != null){ + builder.append(lbc + "requestCustomText11="); + builder.append(requestCustomText11); + } + if(requestCustomText12 != null){ + builder.append(lbc + "requestCustomText12="); + builder.append(requestCustomText12); + } + if(requestCustomText13 != null){ + builder.append(lbc + "requestCustomText13="); + builder.append(requestCustomText13); + } + if(requestCustomText14 != null){ + builder.append(lbc + "requestCustomText14="); + builder.append(requestCustomText14); + } + if(requestCustomText15 != null){ + builder.append(lbc + "requestCustomText15="); + builder.append(requestCustomText15); + } + if(requestCustomText16 != null){ + builder.append(lbc + "requestCustomText16="); + builder.append(requestCustomText16); + } + if(requestCustomText17 != null){ + builder.append(lbc + "requestCustomText17="); + builder.append(requestCustomText17); + } + if(requestCustomText18 != null){ + builder.append(lbc + "requestCustomText18="); + builder.append(requestCustomText18); + } + if(requestCustomText19 != null){ + builder.append(lbc + "requestCustomText19="); + builder.append(requestCustomText19); + } + if(requestCustomText2 != null){ + builder.append(lbc + "requestCustomText2="); + builder.append(requestCustomText2); + } + if(requestCustomText20 != null){ + builder.append(lbc + "requestCustomText20="); + builder.append(requestCustomText20); + } + if(requestCustomText3 != null){ + builder.append(lbc + "requestCustomText3="); + builder.append(requestCustomText3); + } + if(requestCustomText4 != null){ + builder.append(lbc + "requestCustomText4="); + builder.append(requestCustomText4); + } + if(requestCustomText5 != null){ + builder.append(lbc + "requestCustomText5="); + builder.append(requestCustomText5); + } + if(requestCustomText6 != null){ + builder.append(lbc + "requestCustomText6="); + builder.append(requestCustomText6); + } + if(requestCustomText7 != null){ + builder.append(lbc + "requestCustomText7="); + builder.append(requestCustomText7); + } + if(requestCustomText8 != null){ + builder.append(lbc + "requestCustomText8="); + builder.append(requestCustomText8); + } + if(requestCustomText9 != null){ + builder.append(lbc + "requestCustomText9="); + builder.append(requestCustomText9); + } + if(requestCustomTextBlock1 != null){ + builder.append(lbc + "requestCustomTextBlock1="); + builder.append(requestCustomTextBlock1); + } + if(requestCustomTextBlock2 != null){ + builder.append(lbc + "requestCustomTextBlock2="); + builder.append(requestCustomTextBlock2); + } + if(requestCustomTextBlock3 != null){ + builder.append(lbc + "requestCustomTextBlock3="); + builder.append(requestCustomTextBlock3); + } + if(requestCustomTextBlock4 != null){ + builder.append(lbc + "requestCustomTextBlock4="); + builder.append(requestCustomTextBlock4); + } + if(requestCustomTextBlock5 != null){ + builder.append(lbc + "requestCustomTextBlock5="); + builder.append(requestCustomTextBlock5); + } + if(requestStatus != null){ + builder.append(lbc + "requestStatus="); + builder.append(requestStatus); + } + if(requestType != null){ + builder.append(lbc + "requestType="); + builder.append(requestType); + } + if(requestingUser != null){ + builder.append(lbc + "requestingUser="); + builder.append(requestingUser); + } + if(salary != null){ + builder.append(lbc + "salary="); + builder.append(salary); + } + if(salaryUnit != null){ + builder.append(lbc + "salaryUnit="); + builder.append(salaryUnit); + } + if(salesManagerPercentGrossMargin != null){ + builder.append(lbc + "salesManagerPercentGrossMargin="); + builder.append(salesManagerPercentGrossMargin); + } + if(statementClientContact != null){ + builder.append(lbc + "statementClientContact="); + builder.append(statementClientContact); + } + if(status != null){ + builder.append(lbc + "status="); + builder.append(status); + } + if(terminationReason != null){ + builder.append(lbc + "terminationReason="); + builder.append(terminationReason); + } + if(vendorClientCorporation != null){ + builder.append(lbc + "vendorClientCorporation="); + builder.append(vendorClientCorporation); + } + if(workWeekStart != null){ + builder.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " {"); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(approvingUser != null){ + builder.append(lbc + "approvingUser="); + builder.append(approvingUser); + } + if(billingClientContact != null){ + builder.append(lbc + "billingClientContact="); + builder.append(billingClientContact); + } + if(billingFrequency != null){ + builder.append(lbc + "billingFrequency="); + builder.append(billingFrequency); + } + if(bonusPackage != null){ + builder.append(lbc + "bonusPackage="); + builder.append(bonusPackage); + } + if(clientBillRate != null){ + builder.append(lbc + "clientBillRate="); + builder.append(clientBillRate); + } + if(clientOvertimeRate != null){ + builder.append(lbc + "clientOvertimeRate="); + builder.append(clientOvertimeRate); + } + if(comments != null){ + builder.append(lbc + "comments="); + builder.append(comments); + } + if(costCenter != null){ + builder.append(lbc + "costCenter="); + builder.append(costCenter); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateApproved != null){ + builder.append(lbc + "dateApproved="); + builder.append(dateApproved); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateClientEffective != null){ + builder.append(lbc + "dateClientEffective="); + builder.append(dateClientEffective); + } + if(dateEffective != null){ + builder.append(lbc + "dateEffective="); + builder.append(dateEffective); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(daysGuaranteed != null){ + builder.append(lbc + "daysGuaranteed="); + builder.append(daysGuaranteed); + } + if(daysProRated != null){ + builder.append(lbc + "daysProRated="); + builder.append(daysProRated); + } + if(durationWeeks != null){ + builder.append(lbc + "durationWeeks="); + builder.append(durationWeeks); + } + if(employeeType != null){ + builder.append(lbc + "employeeType="); + builder.append(employeeType); + } + if(employmentType != null){ + builder.append(lbc + "employmentType="); + builder.append(employmentType); + } + if(fee != null){ + builder.append(lbc + "fee="); + builder.append(fee); + } + if(hoursOfOperation != null){ + builder.append(lbc + "hoursOfOperation="); + builder.append(hoursOfOperation); + } + if(hoursPerDay != null){ + builder.append(lbc + "hoursPerDay="); + builder.append(hoursPerDay); + } + if(housingManagerID != null){ + builder.append(lbc + "housingManagerID="); + builder.append(housingManagerID); + } + if(housingStatus != null){ + builder.append(lbc + "housingStatus="); + builder.append(housingStatus); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(optionsPackage != null){ + builder.append(lbc + "optionsPackage="); + builder.append(optionsPackage); + } + if(otExemption != null){ + builder.append(lbc + "otExemption="); + builder.append(otExemption); + } + if(otherHourlyFee != null){ + builder.append(lbc + "otherHourlyFee="); + builder.append(otherHourlyFee); + } + if(otherHourlyFeeComments != null){ + builder.append(lbc + "otherHourlyFeeComments="); + builder.append(otherHourlyFeeComments); + } + if(overtimeRate != null){ + builder.append(lbc + "overtimeRate="); + builder.append(overtimeRate); + } + if(payRate != null){ + builder.append(lbc + "payRate="); + builder.append(payRate); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement); + } + if(recruitingManagerPercentGrossMargin != null){ + builder.append(lbc + "recruitingManagerPercentGrossMargin="); + builder.append(recruitingManagerPercentGrossMargin); + } + if(referralFee != null){ + builder.append(lbc + "referralFee="); + builder.append(referralFee); + } + if(referralFeeType != null){ + builder.append(lbc + "referralFeeType="); + builder.append(referralFeeType); + } + if(reportTo != null){ + builder.append(lbc + "reportTo="); + builder.append(reportTo); + } + if(requestCustomDate1 != null){ + builder.append(lbc + "requestCustomDate1="); + builder.append(requestCustomDate1); + } + if(requestCustomDate2 != null){ + builder.append(lbc + "requestCustomDate2="); + builder.append(requestCustomDate2); + } + if(requestCustomDate3 != null){ + builder.append(lbc + "requestCustomDate3="); + builder.append(requestCustomDate3); + } + if(requestCustomFloat1 != null){ + builder.append(lbc + "requestCustomFloat1="); + builder.append(requestCustomFloat1); + } + if(requestCustomFloat2 != null){ + builder.append(lbc + "requestCustomFloat2="); + builder.append(requestCustomFloat2); + } + if(requestCustomFloat3 != null){ + builder.append(lbc + "requestCustomFloat3="); + builder.append(requestCustomFloat3); + } + if(requestCustomInt1 != null){ + builder.append(lbc + "requestCustomInt1="); + builder.append(requestCustomInt1); + } + if(requestCustomInt2 != null){ + builder.append(lbc + "requestCustomInt2="); + builder.append(requestCustomInt2); + } + if(requestCustomInt3 != null){ + builder.append(lbc + "requestCustomInt3="); + builder.append(requestCustomInt3); + } + if(requestCustomText1 != null){ + builder.append(lbc + "requestCustomText1="); + builder.append(requestCustomText1); + } + if(requestCustomText10 != null){ + builder.append(lbc + "requestCustomText10="); + builder.append(requestCustomText10); + } + if(requestCustomText11 != null){ + builder.append(lbc + "requestCustomText11="); + builder.append(requestCustomText11); + } + if(requestCustomText12 != null){ + builder.append(lbc + "requestCustomText12="); + builder.append(requestCustomText12); + } + if(requestCustomText13 != null){ + builder.append(lbc + "requestCustomText13="); + builder.append(requestCustomText13); + } + if(requestCustomText14 != null){ + builder.append(lbc + "requestCustomText14="); + builder.append(requestCustomText14); + } + if(requestCustomText15 != null){ + builder.append(lbc + "requestCustomText15="); + builder.append(requestCustomText15); + } + if(requestCustomText16 != null){ + builder.append(lbc + "requestCustomText16="); + builder.append(requestCustomText16); + } + if(requestCustomText17 != null){ + builder.append(lbc + "requestCustomText17="); + builder.append(requestCustomText17); + } + if(requestCustomText18 != null){ + builder.append(lbc + "requestCustomText18="); + builder.append(requestCustomText18); + } + if(requestCustomText19 != null){ + builder.append(lbc + "requestCustomText19="); + builder.append(requestCustomText19); + } + if(requestCustomText2 != null){ + builder.append(lbc + "requestCustomText2="); + builder.append(requestCustomText2); + } + if(requestCustomText20 != null){ + builder.append(lbc + "requestCustomText20="); + builder.append(requestCustomText20); + } + if(requestCustomText3 != null){ + builder.append(lbc + "requestCustomText3="); + builder.append(requestCustomText3); + } + if(requestCustomText4 != null){ + builder.append(lbc + "requestCustomText4="); + builder.append(requestCustomText4); + } + if(requestCustomText5 != null){ + builder.append(lbc + "requestCustomText5="); + builder.append(requestCustomText5); + } + if(requestCustomText6 != null){ + builder.append(lbc + "requestCustomText6="); + builder.append(requestCustomText6); + } + if(requestCustomText7 != null){ + builder.append(lbc + "requestCustomText7="); + builder.append(requestCustomText7); + } + if(requestCustomText8 != null){ + builder.append(lbc + "requestCustomText8="); + builder.append(requestCustomText8); + } + if(requestCustomText9 != null){ + builder.append(lbc + "requestCustomText9="); + builder.append(requestCustomText9); + } + if(requestCustomTextBlock1 != null){ + builder.append(lbc + "requestCustomTextBlock1="); + builder.append(requestCustomTextBlock1); + } + if(requestCustomTextBlock2 != null){ + builder.append(lbc + "requestCustomTextBlock2="); + builder.append(requestCustomTextBlock2); + } + if(requestCustomTextBlock3 != null){ + builder.append(lbc + "requestCustomTextBlock3="); + builder.append(requestCustomTextBlock3); + } + if(requestCustomTextBlock4 != null){ + builder.append(lbc + "requestCustomTextBlock4="); + builder.append(requestCustomTextBlock4); + } + if(requestCustomTextBlock5 != null){ + builder.append(lbc + "requestCustomTextBlock5="); + builder.append(requestCustomTextBlock5); + } + if(requestStatus != null){ + builder.append(lbc + "requestStatus="); + builder.append(requestStatus); + } + if(requestType != null){ + builder.append(lbc + "requestType="); + builder.append(requestType); + } + if(requestingUser != null){ + builder.append(lbc + "requestingUser="); + builder.append(requestingUser); + } + if(salary != null){ + builder.append(lbc + "salary="); + builder.append(salary); + } + if(salaryUnit != null){ + builder.append(lbc + "salaryUnit="); + builder.append(salaryUnit); + } + if(salesManagerPercentGrossMargin != null){ + builder.append(lbc + "salesManagerPercentGrossMargin="); + builder.append(salesManagerPercentGrossMargin); + } + if(statementClientContact != null){ + builder.append(lbc + "statementClientContact="); + builder.append(statementClientContact); + } + if(status != null){ + builder.append(lbc + "status="); + builder.append(status); + } + if(terminationReason != null){ + builder.append(lbc + "terminationReason="); + builder.append(terminationReason); + } + if(vendorClientCorporation != null){ + builder.append(lbc + "vendorClientCorporation="); + builder.append(vendorClientCorporation); + } + if(workWeekStart != null){ + builder.append(lbc + "workWeekStart="); + builder.append(workWeekStart); + } + builder.append("}"); + return builder.toString(); + } + @Override public String toString() { StringBuilder builder = new StringBuilder(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java index 74f1ad6e..345ff737 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/type/AbstractEntity.java @@ -112,7 +112,7 @@ public String toString() { public String toStringNonNull(){ String lbc = ""; - StringBuilder builder = new StringBuilder(getClass() + " { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); if(additionalProperties != null) { builder.append(lbc + "additionalProperties="); builder.append(additionalProperties); @@ -125,7 +125,7 @@ public String toStringNonNull(boolean includeLineBreaks) { String lbc = ""; if(includeLineBreaks) lbc = " \n"; - StringBuilder builder = new StringBuilder(getClass() + " { "); + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); if(additionalProperties != null) { builder.append(lbc + "additionalProperties="); builder.append(additionalProperties); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java index 4946ccae..e6f1c360 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java @@ -1,154 +1,154 @@ -package com.bullhornsdk.data.model.entity.customfields; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Common custom fields: - * - * customDate 1-3 - * - * customFloat 1-3 - * - * customInt 1-3 - * - * customText 1-20 customTextBlock 1-5 - * - * @author magnus.palm - * - */ -public class CustomFieldsB extends CustomFieldsA { - - @JsonIgnore - private String customTextBlock1; - - @JsonIgnore - private String customTextBlock2; - - @JsonIgnore - private String customTextBlock3; - - @JsonIgnore - private String customTextBlock4; - - @JsonIgnore - private String customTextBlock5; - - @JsonProperty("customTextBlock1") - public String getCustomTextBlock1() { - return customTextBlock1; - } - - @JsonIgnore - public void setCustomTextBlock1(String customTextBlock1) { - this.customTextBlock1 = customTextBlock1; - } - - @JsonProperty("customTextBlock2") - public String getCustomTextBlock2() { - return customTextBlock2; - } - - @JsonIgnore - public void setCustomTextBlock2(String customTextBlock2) { - this.customTextBlock2 = customTextBlock2; - } - - @JsonProperty("customTextBlock3") - public String getCustomTextBlock3() { - return customTextBlock3; - } - - @JsonIgnore - public void setCustomTextBlock3(String customTextBlock3) { - this.customTextBlock3 = customTextBlock3; - } - - @JsonProperty("customTextBlock4") - public String getCustomTextBlock4() { - return customTextBlock4; - } - - @JsonIgnore - public void setCustomTextBlock4(String customTextBlock4) { - this.customTextBlock4 = customTextBlock4; - } - - @JsonProperty("customTextBlock5") - public String getCustomTextBlock5() { - return customTextBlock5; - } - - @JsonIgnore - public void setCustomTextBlock5(String customTextBlock5) { - this.customTextBlock5 = customTextBlock5; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = super.hashCode(); - result = prime * result + ((customTextBlock1 == null) ? 0 : customTextBlock1.hashCode()); - result = prime * result + ((customTextBlock2 == null) ? 0 : customTextBlock2.hashCode()); - result = prime * result + ((customTextBlock3 == null) ? 0 : customTextBlock3.hashCode()); - result = prime * result + ((customTextBlock4 == null) ? 0 : customTextBlock4.hashCode()); - result = prime * result + ((customTextBlock5 == null) ? 0 : customTextBlock5.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (!super.equals(obj)) - return false; - if (getClass() != obj.getClass()) - return false; - CustomFieldsB other = (CustomFieldsB) obj; - if (customTextBlock1 == null) { - if (other.customTextBlock1 != null) - return false; - } else if (!customTextBlock1.equals(other.customTextBlock1)) - return false; - if (customTextBlock2 == null) { - if (other.customTextBlock2 != null) - return false; - } else if (!customTextBlock2.equals(other.customTextBlock2)) - return false; - if (customTextBlock3 == null) { - if (other.customTextBlock3 != null) - return false; - } else if (!customTextBlock3.equals(other.customTextBlock3)) - return false; - if (customTextBlock4 == null) { - if (other.customTextBlock4 != null) - return false; - } else if (!customTextBlock4.equals(other.customTextBlock4)) - return false; - if (customTextBlock5 == null) { - if (other.customTextBlock5 != null) - return false; - } else if (!customTextBlock5.equals(other.customTextBlock5)) - return false; - return true; - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(super.toString()); - builder.append(",\n customTextBlock1="); - builder.append(customTextBlock1); - builder.append(",\n customTextBlock2="); - builder.append(customTextBlock2); - builder.append(",\n customTextBlock3="); - builder.append(customTextBlock3); - builder.append(",\n customTextBlock4="); - builder.append(customTextBlock4); - builder.append(",\n customTextBlock5="); - builder.append(customTextBlock5); - - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.customfields; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Common custom fields: + * + * customDate 1-3 + * + * customFloat 1-3 + * + * customInt 1-3 + * + * customText 1-20 customTextBlock 1-5 + * + * @author magnus.palm + * + */ +public class CustomFieldsB extends CustomFieldsA { + + @JsonIgnore + private String customTextBlock1; + + @JsonIgnore + private String customTextBlock2; + + @JsonIgnore + private String customTextBlock3; + + @JsonIgnore + private String customTextBlock4; + + @JsonIgnore + private String customTextBlock5; + + @JsonProperty("customTextBlock1") + public String getCustomTextBlock1() { + return customTextBlock1; + } + + @JsonIgnore + public void setCustomTextBlock1(String customTextBlock1) { + this.customTextBlock1 = customTextBlock1; + } + + @JsonProperty("customTextBlock2") + public String getCustomTextBlock2() { + return customTextBlock2; + } + + @JsonIgnore + public void setCustomTextBlock2(String customTextBlock2) { + this.customTextBlock2 = customTextBlock2; + } + + @JsonProperty("customTextBlock3") + public String getCustomTextBlock3() { + return customTextBlock3; + } + + @JsonIgnore + public void setCustomTextBlock3(String customTextBlock3) { + this.customTextBlock3 = customTextBlock3; + } + + @JsonProperty("customTextBlock4") + public String getCustomTextBlock4() { + return customTextBlock4; + } + + @JsonIgnore + public void setCustomTextBlock4(String customTextBlock4) { + this.customTextBlock4 = customTextBlock4; + } + + @JsonProperty("customTextBlock5") + public String getCustomTextBlock5() { + return customTextBlock5; + } + + @JsonIgnore + public void setCustomTextBlock5(String customTextBlock5) { + this.customTextBlock5 = customTextBlock5; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = super.hashCode(); + result = prime * result + ((customTextBlock1 == null) ? 0 : customTextBlock1.hashCode()); + result = prime * result + ((customTextBlock2 == null) ? 0 : customTextBlock2.hashCode()); + result = prime * result + ((customTextBlock3 == null) ? 0 : customTextBlock3.hashCode()); + result = prime * result + ((customTextBlock4 == null) ? 0 : customTextBlock4.hashCode()); + result = prime * result + ((customTextBlock5 == null) ? 0 : customTextBlock5.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (!super.equals(obj)) + return false; + if (getClass() != obj.getClass()) + return false; + CustomFieldsB other = (CustomFieldsB) obj; + if (customTextBlock1 == null) { + if (other.customTextBlock1 != null) + return false; + } else if (!customTextBlock1.equals(other.customTextBlock1)) + return false; + if (customTextBlock2 == null) { + if (other.customTextBlock2 != null) + return false; + } else if (!customTextBlock2.equals(other.customTextBlock2)) + return false; + if (customTextBlock3 == null) { + if (other.customTextBlock3 != null) + return false; + } else if (!customTextBlock3.equals(other.customTextBlock3)) + return false; + if (customTextBlock4 == null) { + if (other.customTextBlock4 != null) + return false; + } else if (!customTextBlock4.equals(other.customTextBlock4)) + return false; + if (customTextBlock5 == null) { + if (other.customTextBlock5 != null) + return false; + } else if (!customTextBlock5.equals(other.customTextBlock5)) + return false; + return true; + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append(super.toString()); + builder.append(",\n customTextBlock1="); + builder.append(customTextBlock1); + builder.append(",\n customTextBlock2="); + builder.append(customTextBlock2); + builder.append(",\n customTextBlock3="); + builder.append(customTextBlock3); + builder.append(",\n customTextBlock4="); + builder.append(customTextBlock4); + builder.append(",\n customTextBlock5="); + builder.append(customTextBlock5); + + return builder.toString(); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java index ec1fb109..c59761d9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java @@ -1,187 +1,187 @@ -package com.bullhornsdk.data.model.entity.embedded; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -/** - * - * @author magnus.palm - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -public class Address extends AbstractEntity { - - private String address1; - - private String address2; - - private String city; - - @JsonIgnore - private String state; - - private String zip; - - private Integer countryID; - - private String countryName; - - @JsonProperty("address1") - public String getAddress1() { - return address1; - } - - @JsonProperty("address1") - public void setAddress1(String address1) { - this.address1 = address1; - } - - @JsonProperty("address2") - public String getAddress2() { - return address2; - } - - @JsonProperty("address2") - public void setAddress2(String address2) { - this.address2 = address2; - } - - @JsonProperty("city") - public String getCity() { - return city; - } - - @JsonProperty("city") - public void setCity(String city) { - this.city = city; - } - - @JsonProperty("state") - public String getState() { - return state; - } - - @JsonIgnore - public void setState(String state) { - this.state = state; - } - - @JsonProperty("zip") - public String getZip() { - return zip; - } - - @JsonProperty("zip") - public void setZip(String zip) { - this.zip = zip; - } - - @JsonProperty("countryID") - public Integer getCountryID() { - return countryID; - } - - @JsonProperty("countryID") - public void setCountryID(Integer countryID) { - this.countryID = countryID; - } - - @JsonProperty("countryName") - public String getCountryName() { - return countryName; - } - - @JsonProperty("countryName") - public void setCountryName(String countryName) { - this.countryName = countryName; - } - - public Address instantiateForInsert() { - Address address = new Address(); - address.setAddress1("123 Main St"); - address.setCity("St Louis"); - address.setState("MO"); - address.setZip("1234563"); - return address; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((address1 == null) ? 0 : address1.hashCode()); - result = prime * result + ((address2 == null) ? 0 : address2.hashCode()); - result = prime * result + ((city == null) ? 0 : city.hashCode()); - result = prime * result + ((countryID == null) ? 0 : countryID.hashCode()); - result = prime * result + ((state == null) ? 0 : state.hashCode()); - result = prime * result + ((zip == null) ? 0 : zip.hashCode()); - return result; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Address address = (Address) o; - - if (address1 != null ? !address1.equals(address.address1) : address.address1 != null) return false; - if (address2 != null ? !address2.equals(address.address2) : address.address2 != null) return false; - if (city != null ? !city.equals(address.city) : address.city != null) return false; - if (state != null ? !state.equals(address.state) : address.state != null) return false; - if (zip != null ? !zip.equals(address.zip) : address.zip != null) return false; - if (countryID != null ? !countryID.equals(address.countryID) : address.countryID != null) return false; - return countryName != null ? countryName.equals(address.countryName) : address.countryName == null; - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(lbc + "address2=" + address2); - sb.append(lbc + "city=" + city); - sb.append(lbc + "state=" + state); - sb.append(lbc + "zip=" + zip); - sb.append(lbc + "countryID=" + countryID); - sb.append(lbc + "countryName=" + countryName); - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(lbc + "address2=" + address2); - sb.append(lbc + "city=" + city); - sb.append(lbc + "state=" + state); - sb.append(lbc + "zip=" + zip); - sb.append(lbc + "countryID=" + countryID); - sb.append(lbc + "countryName=" + countryName); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(", address2=" + address2); - sb.append(", city=" + city); - sb.append(", state=" + state); - sb.append(", zip=" + zip); - sb.append(", countryID=" + countryID); - sb.append(", countryName=" + countryName); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.embedded; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +/** + * + * @author magnus.palm + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +public class Address extends AbstractEntity { + + private String address1; + + private String address2; + + private String city; + + @JsonIgnore + private String state; + + private String zip; + + private Integer countryID; + + private String countryName; + + @JsonProperty("address1") + public String getAddress1() { + return address1; + } + + @JsonProperty("address1") + public void setAddress1(String address1) { + this.address1 = address1; + } + + @JsonProperty("address2") + public String getAddress2() { + return address2; + } + + @JsonProperty("address2") + public void setAddress2(String address2) { + this.address2 = address2; + } + + @JsonProperty("city") + public String getCity() { + return city; + } + + @JsonProperty("city") + public void setCity(String city) { + this.city = city; + } + + @JsonProperty("state") + public String getState() { + return state; + } + + @JsonIgnore + public void setState(String state) { + this.state = state; + } + + @JsonProperty("zip") + public String getZip() { + return zip; + } + + @JsonProperty("zip") + public void setZip(String zip) { + this.zip = zip; + } + + @JsonProperty("countryID") + public Integer getCountryID() { + return countryID; + } + + @JsonProperty("countryID") + public void setCountryID(Integer countryID) { + this.countryID = countryID; + } + + @JsonProperty("countryName") + public String getCountryName() { + return countryName; + } + + @JsonProperty("countryName") + public void setCountryName(String countryName) { + this.countryName = countryName; + } + + public Address instantiateForInsert() { + Address address = new Address(); + address.setAddress1("123 Main St"); + address.setCity("St Louis"); + address.setState("MO"); + address.setZip("1234563"); + return address; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((address1 == null) ? 0 : address1.hashCode()); + result = prime * result + ((address2 == null) ? 0 : address2.hashCode()); + result = prime * result + ((city == null) ? 0 : city.hashCode()); + result = prime * result + ((countryID == null) ? 0 : countryID.hashCode()); + result = prime * result + ((state == null) ? 0 : state.hashCode()); + result = prime * result + ((zip == null) ? 0 : zip.hashCode()); + return result; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Address address = (Address) o; + + if (address1 != null ? !address1.equals(address.address1) : address.address1 != null) return false; + if (address2 != null ? !address2.equals(address.address2) : address.address2 != null) return false; + if (city != null ? !city.equals(address.city) : address.city != null) return false; + if (state != null ? !state.equals(address.state) : address.state != null) return false; + if (zip != null ? !zip.equals(address.zip) : address.zip != null) return false; + if (countryID != null ? !countryID.equals(address.countryID) : address.countryID != null) return false; + return countryName != null ? countryName.equals(address.countryName) : address.countryName == null; + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass() + " { "); + sb.append("address1=" + address1); + sb.append(", address2=" + address2); + sb.append(", city=" + city); + sb.append(", state=" + state); + sb.append(", zip=" + zip); + sb.append(", countryID=" + countryID); + sb.append(", countryName=" + countryName); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java index 1e4d3bbf..c1413ee9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/LinkedId.java @@ -1,92 +1,92 @@ -package com.bullhornsdk.data.model.entity.embedded; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ "id" }) -public class LinkedId extends AbstractEntity { - - private Integer id; - - public LinkedId() { - super(); - } - - public LinkedId(Integer id) { - super(); - this.id = id; - } - - @JsonProperty("id") - public Integer getId() { - return id; - } - - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - LinkedId other = (LinkedId) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ""; - if(includeLineBreaks) - lbc = "\n"; - StringBuilder builder = new StringBuilder("{ "); - if(id != null){ - builder.append("id="); - builder.append(id); - } - builder.append(lbc +"}"); - return builder.toString(); - } - - @Override - public String toStringNonNull() { - StringBuilder builder = new StringBuilder("{ "); - if(id != null){ - builder.append("id="); - builder.append(id); - } - builder.append("}"); - return builder.toString(); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(" {\nid="); - builder.append(id); - builder.append("\n}"); - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.embedded; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ "id" }) +public class LinkedId extends AbstractEntity { + + private Integer id; + + public LinkedId() { + super(); + } + + public LinkedId(Integer id) { + super(); + this.id = id; + } + + @JsonProperty("id") + public Integer getId() { + return id; + } + + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((id == null) ? 0 : id.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + LinkedId other = (LinkedId) obj; + if (id == null) { + if (other.id != null) + return false; + } else if (!id.equals(other.id)) + return false; + return true; + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ""; + if(includeLineBreaks) + lbc = "\n"; + StringBuilder builder = new StringBuilder("{ "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + builder.append(lbc +"}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + StringBuilder builder = new StringBuilder("{ "); + if(id != null){ + builder.append("id="); + builder.append(id); + } + builder.append("}"); + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append(" {\nid="); + builder.append(id); + builder.append("\n}"); + return builder.toString(); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java index d2de37ea..7f94f829 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/OneToMany.java @@ -1,127 +1,127 @@ -package com.bullhornsdk.data.model.entity.embedded; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.google.common.collect.Lists; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ "data", "total" }) -public class OneToMany extends AbstractEntity { - - private List data = new ArrayList(); - - private Integer total; - - public OneToMany() { - super(); - } - - public OneToMany(T... elements) { - super(); - this.data = Lists.newArrayList(elements); - } - - @JsonProperty("data") - public List getData() { - return data; - } - - @JsonProperty("data") - public void setData(List data) { - this.data = data; - } - - @JsonProperty("total") - public Integer getTotal() { - return total; - } - - @JsonProperty("total") - public void setTotal(Integer total) { - this.total = total; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((data == null) ? 0 : data.hashCode()); - result = prime * result + ((total == null) ? 0 : total.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - OneToMany other = (OneToMany) obj; - if (data == null) { - if (other.data != null) - return false; - } else if (!data.equals(other.data)) - return false; - if (total == null) { - if (other.total != null) - return false; - } else if (!total.equals(other.total)) - return false; - return true; - } - - @Override - public String toStringNonNull() { - StringBuilder builder = new StringBuilder(); - builder.append(" {\n data=["); - builder.append(data.stream().map(T ->{ - if (T instanceof AbstractEntity) - return ((AbstractEntity)T).toStringNonNull(); - return T.toString(); - }).collect(Collectors.joining(","))); - builder.append("], total="); - builder.append(total); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - StringBuilder builder = new StringBuilder(); - builder.append(" { data=["); - builder.append(data.stream().map(T ->{ - if (T instanceof AbstractEntity) - return ((AbstractEntity)T).toStringNonNull(includeLineBreaks); - return T.toString(); - }).collect(Collectors.joining(lbc))); - builder.append("]" + lbc + " total="); - builder.append(total); - if(includeLineBreaks) - builder.append("\n"); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(" {\n data="); - builder.append(data); - builder.append(",\n total="); - builder.append(total); - builder.append("\n}"); - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.embedded; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.google.common.collect.Lists; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ "data", "total" }) +public class OneToMany extends AbstractEntity { + + private List data = new ArrayList(); + + private Integer total; + + public OneToMany() { + super(); + } + + public OneToMany(T... elements) { + super(); + this.data = Lists.newArrayList(elements); + } + + @JsonProperty("data") + public List getData() { + return data; + } + + @JsonProperty("data") + public void setData(List data) { + this.data = data; + } + + @JsonProperty("total") + public Integer getTotal() { + return total; + } + + @JsonProperty("total") + public void setTotal(Integer total) { + this.total = total; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((data == null) ? 0 : data.hashCode()); + result = prime * result + ((total == null) ? 0 : total.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + OneToMany other = (OneToMany) obj; + if (data == null) { + if (other.data != null) + return false; + } else if (!data.equals(other.data)) + return false; + if (total == null) { + if (other.total != null) + return false; + } else if (!total.equals(other.total)) + return false; + return true; + } + + @Override + public String toStringNonNull() { + StringBuilder builder = new StringBuilder(); + builder.append(" {\n data=["); + builder.append(data.stream().map(T ->{ + if (T instanceof AbstractEntity) + return ((AbstractEntity)T).toStringNonNull(); + return T.toString(); + }).collect(Collectors.joining(","))); + builder.append("], total="); + builder.append(total); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(); + builder.append(" { data=["); + builder.append(data.stream().map(T ->{ + if (T instanceof AbstractEntity) + return ((AbstractEntity)T).toStringNonNull(includeLineBreaks); + return T.toString(); + }).collect(Collectors.joining(lbc))); + builder.append("]" + lbc + " total="); + builder.append(total); + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append(" {\n data="); + builder.append(data); + builder.append(",\n total="); + builder.append(total); + builder.append("\n}"); + return builder.toString(); + } + +} From 0c25f7da8e0e31339eb3fc6b8e20fc4f693ad729 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 13 Jun 2019 13:49:05 -0400 Subject: [PATCH 10/12] Lead and opportunity, touching up other entities --- .../core/standard/ClientCorporation.java | 3604 ++++++++--------- .../data/model/entity/core/standard/Lead.java | 78 +- .../entity/core/standard/NoteEntity.java | 4 +- .../entity/core/standard/Opportunity.java | 664 ++- .../model/entity/core/standard/Person.java | 2 +- .../core/standard/PlacementChangeRequest.java | 1 - 6 files changed, 2478 insertions(+), 1875 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java index 7477b89b..bdc5b52b 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java @@ -1,1802 +1,1802 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; -import java.math.BigDecimal; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "annualRevenue", "billingAddress", "billingContact", "billingFrequency", "billingPhone", - "branch", "businessSectorList", "certifications", "requirements", "certificationGroups", "childClientCorporations", "clientContacts", - "companyDescription", "companyURL", "competitors", "culture", "customDate1", "customDate2", "customDate3", "customFloat1", "customFloat2", - "customFloat3", "customInt1", "customInt2", "customInt3", "customText1", "customText10", "customText11", "customText12", "customText13", - "customText14", "customText15", "customText16", "customText17", "customText18", "customText19", "customText2", "customText20", - "customText3", "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", - "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "dateAdded", "dateFounded", "dateLastModified", "department", - "externalID", "fax", "feeArrangement", "funding", "industryList", "invoiceFormat", "leads", "linkedinProfileName", "name", "notes", "numEmployees", "numOffices", - "ownership", "parentClientCorporation", "phone", "revenue", "status", "taxRate", "tickerSymbol", "trackTitle", "workWeekStart", - "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", "customObject7s", - "customObject8s", "customObject9s", "customObject10s" }) -public class ClientCorporation extends CustomFieldsB implements QueryEntity, UpdateEntity, CreateEntity, FileEntity, AssociationEntity, - SearchEntity, DateLastModifiedEntity, EditHistoryEntity { - - private Integer id; - - private Address address; - - private BigDecimal annualRevenue; - - private Address billingAddress; - - @JsonIgnore - @Size(max = 100) - private String billingContact; - - @JsonIgnore - @Size(max = 20) - private String billingFrequency; - - @JsonIgnore - @Size(max = 20) - private String billingPhone; - - private Branch branch; - - @JsonIgnore - private String businessSectorList; - - private OneToMany childClientCorporations; - - private OneToMany clientContacts; - - - @JsonIgnore - private String companyDescription; - - @JsonIgnore - @Size(max = 100) - private String companyURL; - - @JsonIgnore - private String competitors; - - @JsonIgnore - private String culture; - - private DateTime dateAdded; - - private DateTime dateFounded; - - private DateTime dateLastModified; - - private CorporationDepartment department; - - @JsonIgnore - private String externalID; - - @JsonIgnore - private String fax; - - private BigDecimal feeArrangement; - - @JsonIgnore - private String funding; - - @JsonIgnore - private String industryList; - - @JsonIgnore - private String invoiceFormat; - - private OneToMany leads; - - @JsonIgnore - @Size(max = 200) - private String linkedinProfileName; - - @JsonIgnore - @Size(max = 100) - private String name; - - @JsonIgnore - private String notes; - - private Integer numEmployees; - - private Integer numOffices; - - @JsonIgnore - @Size(max = 30) - private String ownership; - - private OneToManyLinkedId owners; - - private ClientCorporation parentClientCorporation; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - private String revenue; - - @JsonIgnore - @Size(max = 30) - private String status; - - private BigDecimal taxRate; - - @JsonIgnore - @Size(max = 20) - private String tickerSymbol; - - @JsonIgnore - @Size(max = 200) - private String trackTitle; - - private Integer workWeekStart; - - private OneToMany requirements; - - private OneToMany certificationGroups; - - private OneToMany certifications; // legacy certifications - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - private OneToMany customObject11s; - - private OneToMany customObject12s; - - private OneToMany customObject13s; - - private OneToMany customObject14s; - - private OneToMany customObject15s; - - private OneToMany customObject16s; - - private OneToMany customObject17s; - - private OneToMany customObject18s; - - private OneToMany customObject19s; - - private OneToMany customObject20s; - - private OneToMany customObject21s; - - private OneToMany customObject22s; - - private OneToMany customObject23s; - - private OneToMany customObject24s; - - private OneToMany customObject25s; - - private OneToMany customObject26s; - - private OneToMany customObject27s; - - private OneToMany customObject28s; - - private OneToMany customObject29s; - - private OneToMany customObject30s; - - private OneToMany customObject31s; - - private OneToMany customObject32s; - - private OneToMany customObject33s; - - private OneToMany customObject34s; - - private OneToMany customObject35s; - - public ClientCorporation() { - super(); - } - - public ClientCorporation(Integer id) { - super(); - this.id = id; - } - - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("annualRevenue") - public BigDecimal getAnnualRevenue() { - return annualRevenue; - } - - @JsonProperty("annualRevenue") - public void setAnnualRevenue(BigDecimal annualRevenue) { - this.annualRevenue = annualRevenue; - } - - @JsonProperty("billingAddress") - public Address getBillingAddress() { - return billingAddress; - } - - @JsonProperty("billingAddress") - public void setBillingAddress(Address billingAddress) { - this.billingAddress = billingAddress; - } - - @JsonProperty("billingContact") - public String getBillingContact() { - return billingContact; - } - - @JsonIgnore - public void setBillingContact(String billingContact) { - this.billingContact = billingContact; - } - - @JsonProperty("billingFrequency") - public String getBillingFrequency() { - return billingFrequency; - } - - @JsonIgnore - public void setBillingFrequency(String billingFrequency) { - this.billingFrequency = billingFrequency; - } - - @JsonProperty("billingPhone") - public String getBillingPhone() { - return billingPhone; - } - - @JsonIgnore - public void setBillingPhone(String billingPhone) { - this.billingPhone = billingPhone; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonProperty("businessSectorList") - public String getBusinessSectorList() { - return businessSectorList; - } - - @JsonIgnore - public void setBusinessSectorList(String businessSectorList) { - this.businessSectorList = businessSectorList; - } - - @JsonProperty("childClientCorporations") - public OneToMany getChildClientCorporations() { - return childClientCorporations; - } - - @ReadOnly - @JsonProperty("childClientCorporations") - public void setChildClientCorporations(OneToMany childClientCorporations) { - this.childClientCorporations = childClientCorporations; - } - - @JsonProperty("clientContacts") - public OneToMany getClientContacts() { - return clientContacts; - } - - @ReadOnly - @JsonProperty("clientContacts") - public void setClientContacts(OneToMany clientContacts) { - this.clientContacts = clientContacts; - } - - @JsonProperty("companyDescription") - public String getCompanyDescription() { - return companyDescription; - } - - @JsonIgnore - public void setCompanyDescription(String companyDescription) { - this.companyDescription = companyDescription; - } - - @JsonProperty("companyURL") - public String getCompanyURL() { - return companyURL; - } - - @JsonIgnore - public void setCompanyURL(String companyURL) { - this.companyURL = companyURL; - } - - @JsonProperty("competitors") - public String getCompetitors() { - return competitors; - } - - @JsonIgnore - public void setCompetitors(String competitors) { - this.competitors = competitors; - } - - @JsonProperty("culture") - public String getCulture() { - return culture; - } - - @JsonIgnore - public void setCulture(String culture) { - this.culture = culture; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateFounded") - public DateTime getDateFounded() { - return dateFounded; - } - - @JsonProperty("dateFounded") - public void setDateFounded(DateTime dateFounded) { - this.dateFounded = dateFounded; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("department") - public CorporationDepartment getDepartment() { - return department; - } - - @JsonProperty("department") - public void setDepartment(CorporationDepartment department) { - this.department = department; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonProperty("fax") - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("feeArrangement") - public BigDecimal getFeeArrangement() { - return feeArrangement; - } - - @JsonProperty("feeArrangement") - public void setFeeArrangement(BigDecimal feeArrangement) { - this.feeArrangement = feeArrangement; - } - - @JsonProperty("funding") - public String getFunding() { - return funding; - } - - @JsonIgnore - public void setFunding(String funding) { - this.funding = funding; - } - - @JsonProperty("industryList") - public String getIndustryList() { - return industryList; - } - - @JsonIgnore - public void setIndustryList(String industryList) { - this.industryList = industryList; - } - - @JsonProperty("invoiceFormat") - public String getInvoiceFormat() { - return invoiceFormat; - } - - @JsonProperty("invoiceFormat") - public void setInvoiceFormat(String invoiceFormat) { - this.invoiceFormat = invoiceFormat; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("linkedinProfileName") - public String getLinkedinProfileName() { - return linkedinProfileName; - } - - @JsonIgnore - public void setLinkedinProfileName(String linkedinProfileName) { - this.linkedinProfileName = linkedinProfileName; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("notes") - public String getNotes() { - return notes; - } - - @JsonIgnore - public void setNotes(String notes) { - this.notes = notes; - } - - @JsonProperty("numEmployees") - public Integer getNumEmployees() { - return numEmployees; - } - - @JsonProperty("numEmployees") - public void setNumEmployees(Integer numEmployees) { - this.numEmployees = numEmployees; - } - - @JsonProperty("numOffices") - public Integer getNumOffices() { - return numOffices; - } - - @JsonProperty("numOffices") - public void setNumOffices(Integer numOffices) { - this.numOffices = numOffices; - } - - @JsonProperty("ownership") - public String getOwnership() { - return ownership; - } - - @JsonIgnore - public void setOwnership(String ownership) { - this.ownership = ownership; - } - - @JsonIgnore - public OneToManyLinkedId getOwners() { - return owners; - } - - @ReadOnly - @JsonProperty("owners") - public void setOwners(OneToManyLinkedId owners) { - this.owners = owners; - } - - @JsonProperty("parentClientCorporation") - public ClientCorporation getParentClientCorporation() { - return parentClientCorporation; - } - - @JsonProperty("parentClientCorporation") - public void setParentClientCorporation(ClientCorporation parentClientCorporation) { - this.parentClientCorporation = parentClientCorporation; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("revenue") - public String getRevenue() { - return revenue; - } - - @JsonIgnore - public void setRevenue(String revenue) { - this.revenue = revenue; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("taxRate") - public BigDecimal getTaxRate() { - return taxRate; - } - - @JsonProperty("taxRate") - public void setTaxRate(BigDecimal taxRate) { - this.taxRate = taxRate; - } - - @JsonProperty("tickerSymbol") - public String getTickerSymbol() { - return tickerSymbol; - } - - @JsonIgnore - public void setTickerSymbol(String tickerSymbol) { - this.tickerSymbol = tickerSymbol; - } - - @JsonProperty("trackTitle") - public String getTrackTitle() { - return trackTitle; - } - - @JsonIgnore - public void setTrackTitle(String trackTitle) { - this.trackTitle = trackTitle; - } - - @JsonProperty("workWeekStart") - public Integer getWorkWeekStart() { - return workWeekStart; - } - - @JsonProperty("workWeekStart") - public void setWorkWeekStart(Integer workWeekStart) { - this.workWeekStart = workWeekStart; - } - - - - @JsonProperty("requirements") - public OneToMany getRequirements() { - return requirements; - } - - @ReadOnly - @JsonProperty("requirements") - public void setRequirements(OneToMany requirements) { - this.requirements = requirements; - } - - @JsonProperty("certificationGroups") - public OneToMany getCertificationGroups() { - return certificationGroups; - } - - @ReadOnly - @JsonProperty("certificationGroups") - public void setCertificationGroups(OneToMany certificationGroups) { - this.certificationGroups = certificationGroups; - } - - @JsonProperty("certifications") - public OneToMany getCertifications() { - return certifications; - } - - @ReadOnly - @JsonProperty("certifications") - public void setCertifications(OneToMany certifications) { - this.certifications = certifications; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @JsonProperty("customObject11s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject11s() { - return customObject11s; - } - - @JsonProperty("customObject11s") - public void setCustomObject11s(OneToMany customObject11s) { - this.customObject11s = customObject11s; - } - - @JsonProperty("customObject12s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject12s() { - return customObject12s; - } - - @JsonProperty("customObject12s") - public void setCustomObject12s(OneToMany customObject12s) { - this.customObject12s = customObject12s; - } - - @JsonProperty("customObject13s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject13s() { - return customObject13s; - } - - @JsonProperty("customObject13s") - public void setCustomObject13s(OneToMany customObject13s) { - this.customObject13s = customObject13s; - } - - @JsonProperty("customObject14s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject14s() { - return customObject14s; - } - - @JsonProperty("customObject14s") - public void setCustomObject14s(OneToMany customObject14s) { - this.customObject14s = customObject14s; - } - - @JsonProperty("customObject15s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject15s() { - return customObject15s; - } - - @JsonProperty("customObject15s") - public void setCustomObject15s(OneToMany customObject15s) { - this.customObject15s = customObject15s; - } - - @JsonProperty("customObject16s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject16s() { - return customObject16s; - } - - @JsonProperty("customObject16s") - public void setCustomObject16s(OneToMany customObject16s) { - this.customObject16s = customObject16s; - } - - @JsonProperty("customObject17s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject17s() { - return customObject17s; - } - - @JsonProperty("customObject17s") - public void setCustomObject17s(OneToMany customObject17s) { - this.customObject17s = customObject17s; - } - - @JsonProperty("customObject18s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject18s() { - return customObject18s; - } - - @JsonProperty("customObject18s") - public void setCustomObject18s(OneToMany customObject18s) { - this.customObject18s = customObject18s; - } - - @JsonProperty("customObject19s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject19s() { return customObject19s; } - - @JsonProperty("customObject19s") - public void setCustomObject19s(OneToMany customObject19s) { this.customObject19s = customObject19s; } - - @JsonProperty("customObject20s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject20s() { - return customObject20s; - } - - @JsonProperty("customObject20s") - public void setCustomObject20s(OneToMany customObject20s) { - this.customObject20s = customObject20s; - } - - @JsonProperty("customObject21s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject21s() { - return customObject21s; - } - - @JsonProperty("customObject21s") - public void setCustomObject21s(OneToMany customObject21s) { - this.customObject21s = customObject21s; - } - - @JsonProperty("customObject22s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject22s() { - return customObject22s; - } - - @JsonProperty("customObject22s") - public void setCustomObject22s(OneToMany customObject22s) { - this.customObject22s = customObject22s; - } - - @JsonProperty("customObject23s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject23s() { - return customObject23s; - } - - @JsonProperty("customObject23s") - public void setCustomObject23s(OneToMany customObject23s) { - this.customObject23s = customObject23s; - } - - @JsonProperty("customObject24s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject24s() { - return customObject24s; - } - - @JsonProperty("customObject24s") - public void setCustomObject24s(OneToMany customObject24s) { - this.customObject24s = customObject24s; - } - - @JsonProperty("customObject25s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject25s() { - return customObject25s; - } - - @JsonProperty("customObject25s") - public void setCustomObject25s(OneToMany customObject25s) { - this.customObject25s = customObject25s; - } - - @JsonProperty("customObject26s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject26s() { - return customObject26s; - } - - @JsonProperty("customObject26s") - public void setCustomObject26s(OneToMany customObject26s) { - this.customObject26s = customObject26s; - } - - @JsonProperty("customObject27s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject27s() { - return customObject27s; - } - - @JsonProperty("customObject27s") - public void setCustomObject27s(OneToMany customObject27s) { - this.customObject27s = customObject27s; - } - - @JsonProperty("customObject28s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject28s() { - return customObject28s; - } - - @JsonProperty("customObject28s") - public void setCustomObject28s(OneToMany customObject28s) { - this.customObject28s = customObject28s; - } - - @JsonProperty("customObject29s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject29s() { - return customObject29s; - } - - @JsonProperty("customObject29s") - public void setCustomObject29s(OneToMany customObject29s) { - this.customObject29s = customObject29s; - } - - @JsonProperty("customObject30s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject30s() { - return customObject30s; - } - - @JsonProperty("customObject30s") - public void setCustomObject30s(OneToMany customObject30s) { - this.customObject30s = customObject30s; - } - - @JsonProperty("customObject31s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject31s() { - return customObject31s; - } - - @JsonProperty("customObject31s") - public void setCustomObject31s(OneToMany customObject31s) { - this.customObject31s = customObject31s; - } - - @JsonProperty("customObject32s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject32s() { - return customObject32s; - } - - @JsonProperty("customObject32s") - public void setCustomObject32s(OneToMany customObject32s) { - this.customObject32s = customObject32s; - } - - @JsonProperty("customObject33s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject33s() { - return customObject33s; - } - - @JsonProperty("customObject33s") - public void setCustomObject33s(OneToMany customObject33s) { - this.customObject33s = customObject33s; - } - - @JsonProperty("customObject34s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject34s() { - return customObject34s; - } - - @JsonProperty("customObject34s") - public void setCustomObject34s(OneToMany customObject34s) { - this.customObject34s = customObject34s; - } - - @JsonProperty("customObject35s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject35s() { - return customObject35s; - } - - @JsonProperty("customObject35s") - public void setCustomObject35s(OneToMany customObject35s) { - this.customObject35s = customObject35s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - ClientCorporation that = (ClientCorporation) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (address != null ? !address.equals(that.address) : that.address != null) return false; - if (annualRevenue != null ? !annualRevenue.equals(that.annualRevenue) : that.annualRevenue != null) - return false; - if (billingAddress != null ? !billingAddress.equals(that.billingAddress) : that.billingAddress != null) - return false; - if (billingContact != null ? !billingContact.equals(that.billingContact) : that.billingContact != null) - return false; - if (billingFrequency != null ? !billingFrequency.equals(that.billingFrequency) : that.billingFrequency != null) - return false; - if (billingPhone != null ? !billingPhone.equals(that.billingPhone) : that.billingPhone != null) return false; - if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; - if (businessSectorList != null ? !businessSectorList.equals(that.businessSectorList) : that.businessSectorList != null) - return false; - if (childClientCorporations != null ? !childClientCorporations.equals(that.childClientCorporations) : that.childClientCorporations != null) - return false; - if (clientContacts != null ? !clientContacts.equals(that.clientContacts) : that.clientContacts != null) - return false; - if (companyDescription != null ? !companyDescription.equals(that.companyDescription) : that.companyDescription != null) - return false; - if (companyURL != null ? !companyURL.equals(that.companyURL) : that.companyURL != null) return false; - if (competitors != null ? !competitors.equals(that.competitors) : that.competitors != null) return false; - if (culture != null ? !culture.equals(that.culture) : that.culture != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateFounded != null ? !dateFounded.equals(that.dateFounded) : that.dateFounded != null) return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (department != null ? !department.equals(that.department) : that.department != null) return false; - if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; - if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; - if (feeArrangement != null ? !feeArrangement.equals(that.feeArrangement) : that.feeArrangement != null) - return false; - if (funding != null ? !funding.equals(that.funding) : that.funding != null) return false; - if (industryList != null ? !industryList.equals(that.industryList) : that.industryList != null) return false; - if (invoiceFormat != null ? !invoiceFormat.equals(that.invoiceFormat) : that.invoiceFormat != null) - return false; - if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; - if (linkedinProfileName != null ? !linkedinProfileName.equals(that.linkedinProfileName) : that.linkedinProfileName != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; - if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; - if (numOffices != null ? !numOffices.equals(that.numOffices) : that.numOffices != null) return false; - if (ownership != null ? !ownership.equals(that.ownership) : that.ownership != null) return false; - if (owners != null ? !owners.equals(that.owners) : that.owners != null) return false; - if (parentClientCorporation != null ? !parentClientCorporation.equals(that.parentClientCorporation) : that.parentClientCorporation != null) - return false; - if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; - if (revenue != null ? !revenue.equals(that.revenue) : that.revenue != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (taxRate != null ? !taxRate.equals(that.taxRate) : that.taxRate != null) return false; - if (tickerSymbol != null ? !tickerSymbol.equals(that.tickerSymbol) : that.tickerSymbol != null) return false; - if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; - if (workWeekStart != null ? !workWeekStart.equals(that.workWeekStart) : that.workWeekStart != null) - return false; - if (requirements != null ? !requirements.equals(that.requirements) : that.requirements != null) - return false; - if (certificationGroups != null ? !certificationGroups.equals(that.certificationGroups) : that.certificationGroups != null) - return false; - if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) - return false; - if (customObject10s != null ? !customObject10s.equals(that.customObject10s) : that.customObject10s != null) - return false; - if (customObject11s != null ? !customObject11s.equals(that.customObject11s) : that.customObject11s != null) - return false; - if (customObject12s != null ? !customObject12s.equals(that.customObject12s) : that.customObject12s != null) - return false; - if (customObject13s != null ? !customObject13s.equals(that.customObject13s) : that.customObject13s != null) - return false; - if (customObject14s != null ? !customObject14s.equals(that.customObject14s) : that.customObject14s != null) - return false; - if (customObject15s != null ? !customObject15s.equals(that.customObject15s) : that.customObject15s != null) - return false; - if (customObject16s != null ? !customObject16s.equals(that.customObject16s) : that.customObject16s != null) - return false; - if (customObject17s != null ? !customObject17s.equals(that.customObject17s) : that.customObject17s != null) - return false; - if (customObject18s != null ? !customObject18s.equals(that.customObject18s) : that.customObject18s != null) - return false; - if (customObject19s != null ? !customObject19s.equals(that.customObject19s) : that.customObject19s != null) - return false; - return customObject20s != null ? customObject20s.equals(that.customObject20s) : that.customObject20s == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (annualRevenue != null ? annualRevenue.hashCode() : 0); - result = 31 * result + (billingAddress != null ? billingAddress.hashCode() : 0); - result = 31 * result + (billingContact != null ? billingContact.hashCode() : 0); - result = 31 * result + (billingFrequency != null ? billingFrequency.hashCode() : 0); - result = 31 * result + (billingPhone != null ? billingPhone.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (businessSectorList != null ? businessSectorList.hashCode() : 0); - result = 31 * result + (childClientCorporations != null ? childClientCorporations.hashCode() : 0); - result = 31 * result + (clientContacts != null ? clientContacts.hashCode() : 0); - result = 31 * result + (companyDescription != null ? companyDescription.hashCode() : 0); - result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); - result = 31 * result + (competitors != null ? competitors.hashCode() : 0); - result = 31 * result + (culture != null ? culture.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateFounded != null ? dateFounded.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (department != null ? department.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (feeArrangement != null ? feeArrangement.hashCode() : 0); - result = 31 * result + (funding != null ? funding.hashCode() : 0); - result = 31 * result + (industryList != null ? industryList.hashCode() : 0); - result = 31 * result + (invoiceFormat != null ? invoiceFormat.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (linkedinProfileName != null ? linkedinProfileName.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); - result = 31 * result + (numOffices != null ? numOffices.hashCode() : 0); - result = 31 * result + (ownership != null ? ownership.hashCode() : 0); - result = 31 * result + (owners != null ? owners.hashCode() : 0); - result = 31 * result + (parentClientCorporation != null ? parentClientCorporation.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (revenue != null ? revenue.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (taxRate != null ? taxRate.hashCode() : 0); - result = 31 * result + (tickerSymbol != null ? tickerSymbol.hashCode() : 0); - result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); - result = 31 * result + (workWeekStart != null ? workWeekStart.hashCode() : 0); - result = 31 * result + (requirements != null ? requirements.hashCode() : 0); - result = 31 * result + (certificationGroups != null ? certificationGroups.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - result = 31 * result + (customObject11s != null ? customObject11s.hashCode() : 0); - result = 31 * result + (customObject12s != null ? customObject12s.hashCode() : 0); - result = 31 * result + (customObject13s != null ? customObject13s.hashCode() : 0); - result = 31 * result + (customObject14s != null ? customObject14s.hashCode() : 0); - result = 31 * result + (customObject15s != null ? customObject15s.hashCode() : 0); - result = 31 * result + (customObject16s != null ? customObject16s.hashCode() : 0); - result = 31 * result + (customObject17s != null ? customObject17s.hashCode() : 0); - result = 31 * result + (customObject18s != null ? customObject18s.hashCode() : 0); - result = 31 * result + (customObject19s != null ? customObject19s.hashCode() : 0); - result = 31 * result + (customObject20s != null ? customObject20s.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull()); - } - if(annualRevenue != null){ - sb.append(lbc + "annualRevenue=").append(annualRevenue); - } - if(billingAddress != null){ - sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull()); - } - if(billingContact != null){ - sb.append(lbc + "billingContact=").append(billingContact); - } - if(billingFrequency != null){ - sb.append(lbc + "billingFrequency=").append(billingFrequency); - } - if(billingPhone != null){ - sb.append(lbc + "billingPhone=").append(billingPhone); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectorList != null){ - sb.append(lbc + "businessSectorList=").append(businessSectorList); - } - if(childClientCorporations != null){ - sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull()); - } - if(clientContacts != null){ - sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull()); - } - if(companyDescription != null){ - sb.append(lbc + "companyDescription=").append(companyDescription); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(competitors != null){ - sb.append(lbc + "competitors=").append(competitors); - } - if(culture != null){ - sb.append(lbc + "culture=").append(culture); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateFounded != null){ - sb.append(lbc + "dateFounded=").append(dateFounded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(department != null){ - sb.append(lbc + "department=").append(department.toStringNonNull()); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(feeArrangement != null){ - sb.append(lbc + "feeArrangement=").append(feeArrangement); - } - if(funding != null){ - sb.append(lbc + "funding=").append(funding); - } - if(industryList != null){ - sb.append(lbc + "industryList=").append(industryList); - } - if(invoiceFormat != null){ - sb.append(lbc + "invoiceFormat=").append(invoiceFormat); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(linkedinProfileName != null){ - sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(numOffices != null){ - sb.append(lbc + "numOffices=").append(numOffices); - } - if(ownership != null){ - sb.append(lbc + "ownership=").append(ownership); - } - if(owners != null){ - sb.append(lbc + "owners=").append(owners.toStringNonNull()); - } - if(parentClientCorporation != null){ - sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull()); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(revenue != null){ - sb.append(lbc + "revenue=").append(revenue); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(taxRate != null){ - sb.append(lbc + "taxRate=").append(taxRate); - } - if(tickerSymbol != null){ - sb.append(lbc + "tickerSymbol=").append(tickerSymbol); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(workWeekStart != null){ - sb.append(lbc + "workWeekStart=").append(workWeekStart); - } - if(requirements != null){ - sb.append(lbc + "requirements=").append(requirements); - } - if(certificationGroups != null){ - sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - if(customObject11s != null){ - sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull()); - } - if(customObject12s != null){ - sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull()); - } - if(customObject13s != null){ - sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull()); - } - if(customObject14s != null){ - sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull()); - } - if(customObject15s != null){ - sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull()); - } - if(customObject16s != null){ - sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull()); - } - if(customObject17s != null){ - sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull()); - } - if(customObject18s != null){ - sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull()); - } - if(customObject19s != null){ - sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull()); - } - if(customObject20s != null){ - sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(includeLineBreaks) - sb.append("\n"); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); - } - if(annualRevenue != null){ - sb.append(lbc + "annualRevenue=").append(annualRevenue); - } - if(billingAddress != null){ - sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull(includeLineBreaks)); - } - if(billingContact != null){ - sb.append(lbc + "billingContact=").append(billingContact); - } - if(billingFrequency != null){ - sb.append(lbc + "billingFrequency=").append(billingFrequency); - } - if(billingPhone != null){ - sb.append(lbc + "billingPhone=").append(billingPhone); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectorList != null){ - sb.append(lbc + "businessSectorList=").append(businessSectorList); - } - if(childClientCorporations != null){ - sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull(includeLineBreaks)); - } - if(clientContacts != null){ - sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); - } - if(companyDescription != null){ - sb.append(lbc + "companyDescription=").append(companyDescription); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(competitors != null){ - sb.append(lbc + "competitors=").append(competitors); - } - if(culture != null){ - sb.append(lbc + "culture=").append(culture); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateFounded != null){ - sb.append(lbc + "dateFounded=").append(dateFounded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(department != null){ - sb.append(lbc + "department=").append(department.toStringNonNull(includeLineBreaks)); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(feeArrangement != null){ - sb.append(lbc + "feeArrangement=").append(feeArrangement); - } - if(funding != null){ - sb.append(lbc + "funding=").append(funding); - } - if(industryList != null){ - sb.append(lbc + "industryList=").append(industryList); - } - if(invoiceFormat != null){ - sb.append(lbc + "invoiceFormat=").append(invoiceFormat); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads); - } - if(linkedinProfileName != null){ - sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(numOffices != null){ - sb.append(lbc + "numOffices=").append(numOffices); - } - if(ownership != null){ - sb.append(lbc + "ownership=").append(ownership); - } - if(owners != null){ - sb.append(lbc + "owners=").append(owners.toStringNonNull(includeLineBreaks)); - } - if(parentClientCorporation != null){ - sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull(includeLineBreaks)); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(revenue != null){ - sb.append(lbc + "revenue=").append(revenue); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(taxRate != null){ - sb.append(lbc + "taxRate=").append(taxRate); - } - if(tickerSymbol != null){ - sb.append(lbc + "tickerSymbol=").append(tickerSymbol); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(workWeekStart != null){ - sb.append(lbc + "workWeekStart=").append(workWeekStart); - } - if(requirements != null){ - sb.append(lbc + "requirements=").append(requirements); - } - if(certificationGroups != null){ - sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(customObject11s != null){ - sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull(includeLineBreaks)); - } - if(customObject12s != null){ - sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull(includeLineBreaks)); - } - if(customObject13s != null){ - sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull(includeLineBreaks)); - } - if(customObject14s != null){ - sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull(includeLineBreaks)); - } - if(customObject15s != null){ - sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull(includeLineBreaks)); - } - if(customObject16s != null){ - sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull(includeLineBreaks)); - } - if(customObject17s != null){ - sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull(includeLineBreaks)); - } - if(customObject18s != null){ - sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull(includeLineBreaks)); - } - if(customObject19s != null){ - sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull(includeLineBreaks)); - } - if(customObject20s != null){ - sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder("ClientCorporation{"); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", annualRevenue=").append(annualRevenue); - sb.append(", billingAddress=").append(billingAddress); - sb.append(", billingContact='").append(billingContact).append('\''); - sb.append(", billingFrequency='").append(billingFrequency).append('\''); - sb.append(", billingPhone='").append(billingPhone).append('\''); - sb.append(", branch=").append(branch); - sb.append(", businessSectorList='").append(businessSectorList).append('\''); - sb.append(", childClientCorporations=").append(childClientCorporations); - sb.append(", clientContacts=").append(clientContacts); - sb.append(", companyDescription='").append(companyDescription).append('\''); - sb.append(", companyURL='").append(companyURL).append('\''); - sb.append(", competitors='").append(competitors).append('\''); - sb.append(", culture='").append(culture).append('\''); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateFounded=").append(dateFounded); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", department=").append(department); - sb.append(", externalID='").append(externalID).append('\''); - sb.append(", fax='").append(fax).append('\''); - sb.append(", feeArrangement=").append(feeArrangement); - sb.append(", funding='").append(funding).append('\''); - sb.append(", industryList='").append(industryList).append('\''); - sb.append(", invoiceFormat='").append(invoiceFormat).append('\''); - sb.append(", leads=").append(leads); - sb.append(", linkedinProfileName='").append(linkedinProfileName).append('\''); - sb.append(", name='").append(name).append('\''); - sb.append(", notes='").append(notes).append('\''); - sb.append(", numEmployees=").append(numEmployees); - sb.append(", numOffices=").append(numOffices); - sb.append(", ownership='").append(ownership).append('\''); - sb.append(", owners=").append(owners); - sb.append(", parentClientCorporation=").append(parentClientCorporation); - sb.append(", phone='").append(phone).append('\''); - sb.append(", revenue='").append(revenue).append('\''); - sb.append(", status='").append(status).append('\''); - sb.append(", taxRate=").append(taxRate); - sb.append(", tickerSymbol='").append(tickerSymbol).append('\''); - sb.append(", trackTitle='").append(trackTitle).append('\''); - sb.append(", workWeekStart=").append(workWeekStart); - sb.append(", requirements=").append(requirements); - sb.append(", certificationGroups=").append(certificationGroups); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append(", customObject11s=").append(customObject11s); - sb.append(", customObject12s=").append(customObject12s); - sb.append(", customObject13s=").append(customObject13s); - sb.append(", customObject14s=").append(customObject14s); - sb.append(", customObject15s=").append(customObject15s); - sb.append(", customObject16s=").append(customObject16s); - sb.append(", customObject17s=").append(customObject17s); - sb.append(", customObject18s=").append(customObject18s); - sb.append(", customObject19s=").append(customObject19s); - sb.append(", customObject20s=").append(customObject20s); - sb.append('}'); - return sb.toString(); - } - - public ClientCorporation instantiateForInsert() { - ClientCorporation entity = new ClientCorporation(); - entity.setAddress(new Address().instantiateForInsert()); - entity.setAnnualRevenue(new BigDecimal(10000.00)); - entity.setFeeArrangement(new BigDecimal(100.00)); - entity.setName("Test Corp"); - entity.setNumEmployees(500); - entity.setNumOffices(1); - entity.setStatus("Active"); - return entity; - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.math.BigDecimal; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "annualRevenue", "billingAddress", "billingContact", "billingFrequency", "billingPhone", + "branch", "businessSectorList", "certifications", "requirements", "certificationGroups", "childClientCorporations", "clientContacts", + "companyDescription", "companyURL", "competitors", "culture", "customDate1", "customDate2", "customDate3", "customFloat1", "customFloat2", + "customFloat3", "customInt1", "customInt2", "customInt3", "customText1", "customText10", "customText11", "customText12", "customText13", + "customText14", "customText15", "customText16", "customText17", "customText18", "customText19", "customText2", "customText20", + "customText3", "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "dateAdded", "dateFounded", "dateLastModified", "department", + "externalID", "fax", "feeArrangement", "funding", "industryList", "invoiceFormat", "leads", "linkedinProfileName", "name", "notes", "numEmployees", "numOffices", + "ownership", "parentClientCorporation", "phone", "revenue", "status", "taxRate", "tickerSymbol", "trackTitle", "workWeekStart", + "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", "customObject7s", + "customObject8s", "customObject9s", "customObject10s" }) +public class ClientCorporation extends CustomFieldsB implements QueryEntity, UpdateEntity, CreateEntity, FileEntity, AssociationEntity, + SearchEntity, DateLastModifiedEntity, EditHistoryEntity { + + private Integer id; + + private Address address; + + private BigDecimal annualRevenue; + + private Address billingAddress; + + @JsonIgnore + @Size(max = 100) + private String billingContact; + + @JsonIgnore + @Size(max = 20) + private String billingFrequency; + + @JsonIgnore + @Size(max = 20) + private String billingPhone; + + private Branch branch; + + @JsonIgnore + private String businessSectorList; + + private OneToMany childClientCorporations; + + private OneToMany clientContacts; + + + @JsonIgnore + private String companyDescription; + + @JsonIgnore + @Size(max = 100) + private String companyURL; + + @JsonIgnore + private String competitors; + + @JsonIgnore + private String culture; + + private DateTime dateAdded; + + private DateTime dateFounded; + + private DateTime dateLastModified; + + private CorporationDepartment department; + + @JsonIgnore + private String externalID; + + @JsonIgnore + private String fax; + + private BigDecimal feeArrangement; + + @JsonIgnore + private String funding; + + @JsonIgnore + private String industryList; + + @JsonIgnore + private String invoiceFormat; + + private OneToMany leads; + + @JsonIgnore + @Size(max = 200) + private String linkedinProfileName; + + @JsonIgnore + @Size(max = 100) + private String name; + + @JsonIgnore + private String notes; + + private Integer numEmployees; + + private Integer numOffices; + + @JsonIgnore + @Size(max = 30) + private String ownership; + + private OneToManyLinkedId owners; + + private ClientCorporation parentClientCorporation; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + private String revenue; + + @JsonIgnore + @Size(max = 30) + private String status; + + private BigDecimal taxRate; + + @JsonIgnore + @Size(max = 20) + private String tickerSymbol; + + @JsonIgnore + @Size(max = 200) + private String trackTitle; + + private Integer workWeekStart; + + private OneToMany requirements; + + private OneToMany certificationGroups; + + private OneToMany certifications; // legacy certifications + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + private OneToMany customObject11s; + + private OneToMany customObject12s; + + private OneToMany customObject13s; + + private OneToMany customObject14s; + + private OneToMany customObject15s; + + private OneToMany customObject16s; + + private OneToMany customObject17s; + + private OneToMany customObject18s; + + private OneToMany customObject19s; + + private OneToMany customObject20s; + + private OneToMany customObject21s; + + private OneToMany customObject22s; + + private OneToMany customObject23s; + + private OneToMany customObject24s; + + private OneToMany customObject25s; + + private OneToMany customObject26s; + + private OneToMany customObject27s; + + private OneToMany customObject28s; + + private OneToMany customObject29s; + + private OneToMany customObject30s; + + private OneToMany customObject31s; + + private OneToMany customObject32s; + + private OneToMany customObject33s; + + private OneToMany customObject34s; + + private OneToMany customObject35s; + + public ClientCorporation() { + super(); + } + + public ClientCorporation(Integer id) { + super(); + this.id = id; + } + + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("annualRevenue") + public BigDecimal getAnnualRevenue() { + return annualRevenue; + } + + @JsonProperty("annualRevenue") + public void setAnnualRevenue(BigDecimal annualRevenue) { + this.annualRevenue = annualRevenue; + } + + @JsonProperty("billingAddress") + public Address getBillingAddress() { + return billingAddress; + } + + @JsonProperty("billingAddress") + public void setBillingAddress(Address billingAddress) { + this.billingAddress = billingAddress; + } + + @JsonProperty("billingContact") + public String getBillingContact() { + return billingContact; + } + + @JsonIgnore + public void setBillingContact(String billingContact) { + this.billingContact = billingContact; + } + + @JsonProperty("billingFrequency") + public String getBillingFrequency() { + return billingFrequency; + } + + @JsonIgnore + public void setBillingFrequency(String billingFrequency) { + this.billingFrequency = billingFrequency; + } + + @JsonProperty("billingPhone") + public String getBillingPhone() { + return billingPhone; + } + + @JsonIgnore + public void setBillingPhone(String billingPhone) { + this.billingPhone = billingPhone; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonProperty("businessSectorList") + public String getBusinessSectorList() { + return businessSectorList; + } + + @JsonIgnore + public void setBusinessSectorList(String businessSectorList) { + this.businessSectorList = businessSectorList; + } + + @JsonProperty("childClientCorporations") + public OneToMany getChildClientCorporations() { + return childClientCorporations; + } + + @ReadOnly + @JsonProperty("childClientCorporations") + public void setChildClientCorporations(OneToMany childClientCorporations) { + this.childClientCorporations = childClientCorporations; + } + + @JsonProperty("clientContacts") + public OneToMany getClientContacts() { + return clientContacts; + } + + @ReadOnly + @JsonProperty("clientContacts") + public void setClientContacts(OneToMany clientContacts) { + this.clientContacts = clientContacts; + } + + @JsonProperty("companyDescription") + public String getCompanyDescription() { + return companyDescription; + } + + @JsonIgnore + public void setCompanyDescription(String companyDescription) { + this.companyDescription = companyDescription; + } + + @JsonProperty("companyURL") + public String getCompanyURL() { + return companyURL; + } + + @JsonIgnore + public void setCompanyURL(String companyURL) { + this.companyURL = companyURL; + } + + @JsonProperty("competitors") + public String getCompetitors() { + return competitors; + } + + @JsonIgnore + public void setCompetitors(String competitors) { + this.competitors = competitors; + } + + @JsonProperty("culture") + public String getCulture() { + return culture; + } + + @JsonIgnore + public void setCulture(String culture) { + this.culture = culture; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateFounded") + public DateTime getDateFounded() { + return dateFounded; + } + + @JsonProperty("dateFounded") + public void setDateFounded(DateTime dateFounded) { + this.dateFounded = dateFounded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("department") + public CorporationDepartment getDepartment() { + return department; + } + + @JsonProperty("department") + public void setDepartment(CorporationDepartment department) { + this.department = department; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonProperty("fax") + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("feeArrangement") + public BigDecimal getFeeArrangement() { + return feeArrangement; + } + + @JsonProperty("feeArrangement") + public void setFeeArrangement(BigDecimal feeArrangement) { + this.feeArrangement = feeArrangement; + } + + @JsonProperty("funding") + public String getFunding() { + return funding; + } + + @JsonIgnore + public void setFunding(String funding) { + this.funding = funding; + } + + @JsonProperty("industryList") + public String getIndustryList() { + return industryList; + } + + @JsonIgnore + public void setIndustryList(String industryList) { + this.industryList = industryList; + } + + @JsonProperty("invoiceFormat") + public String getInvoiceFormat() { + return invoiceFormat; + } + + @JsonProperty("invoiceFormat") + public void setInvoiceFormat(String invoiceFormat) { + this.invoiceFormat = invoiceFormat; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("linkedinProfileName") + public String getLinkedinProfileName() { + return linkedinProfileName; + } + + @JsonIgnore + public void setLinkedinProfileName(String linkedinProfileName) { + this.linkedinProfileName = linkedinProfileName; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("notes") + public String getNotes() { + return notes; + } + + @JsonIgnore + public void setNotes(String notes) { + this.notes = notes; + } + + @JsonProperty("numEmployees") + public Integer getNumEmployees() { + return numEmployees; + } + + @JsonProperty("numEmployees") + public void setNumEmployees(Integer numEmployees) { + this.numEmployees = numEmployees; + } + + @JsonProperty("numOffices") + public Integer getNumOffices() { + return numOffices; + } + + @JsonProperty("numOffices") + public void setNumOffices(Integer numOffices) { + this.numOffices = numOffices; + } + + @JsonProperty("ownership") + public String getOwnership() { + return ownership; + } + + @JsonIgnore + public void setOwnership(String ownership) { + this.ownership = ownership; + } + + @JsonIgnore + public OneToManyLinkedId getOwners() { + return owners; + } + + @ReadOnly + @JsonProperty("owners") + public void setOwners(OneToManyLinkedId owners) { + this.owners = owners; + } + + @JsonProperty("parentClientCorporation") + public ClientCorporation getParentClientCorporation() { + return parentClientCorporation; + } + + @JsonProperty("parentClientCorporation") + public void setParentClientCorporation(ClientCorporation parentClientCorporation) { + this.parentClientCorporation = parentClientCorporation; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("revenue") + public String getRevenue() { + return revenue; + } + + @JsonIgnore + public void setRevenue(String revenue) { + this.revenue = revenue; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("taxRate") + public BigDecimal getTaxRate() { + return taxRate; + } + + @JsonProperty("taxRate") + public void setTaxRate(BigDecimal taxRate) { + this.taxRate = taxRate; + } + + @JsonProperty("tickerSymbol") + public String getTickerSymbol() { + return tickerSymbol; + } + + @JsonIgnore + public void setTickerSymbol(String tickerSymbol) { + this.tickerSymbol = tickerSymbol; + } + + @JsonProperty("trackTitle") + public String getTrackTitle() { + return trackTitle; + } + + @JsonIgnore + public void setTrackTitle(String trackTitle) { + this.trackTitle = trackTitle; + } + + @JsonProperty("workWeekStart") + public Integer getWorkWeekStart() { + return workWeekStart; + } + + @JsonProperty("workWeekStart") + public void setWorkWeekStart(Integer workWeekStart) { + this.workWeekStart = workWeekStart; + } + + + + @JsonProperty("requirements") + public OneToMany getRequirements() { + return requirements; + } + + @ReadOnly + @JsonProperty("requirements") + public void setRequirements(OneToMany requirements) { + this.requirements = requirements; + } + + @JsonProperty("certificationGroups") + public OneToMany getCertificationGroups() { + return certificationGroups; + } + + @ReadOnly + @JsonProperty("certificationGroups") + public void setCertificationGroups(OneToMany certificationGroups) { + this.certificationGroups = certificationGroups; + } + + @JsonProperty("certifications") + public OneToMany getCertifications() { + return certifications; + } + + @ReadOnly + @JsonProperty("certifications") + public void setCertifications(OneToMany certifications) { + this.certifications = certifications; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @JsonProperty("customObject11s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject11s() { + return customObject11s; + } + + @JsonProperty("customObject11s") + public void setCustomObject11s(OneToMany customObject11s) { + this.customObject11s = customObject11s; + } + + @JsonProperty("customObject12s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject12s() { + return customObject12s; + } + + @JsonProperty("customObject12s") + public void setCustomObject12s(OneToMany customObject12s) { + this.customObject12s = customObject12s; + } + + @JsonProperty("customObject13s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject13s() { + return customObject13s; + } + + @JsonProperty("customObject13s") + public void setCustomObject13s(OneToMany customObject13s) { + this.customObject13s = customObject13s; + } + + @JsonProperty("customObject14s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject14s() { + return customObject14s; + } + + @JsonProperty("customObject14s") + public void setCustomObject14s(OneToMany customObject14s) { + this.customObject14s = customObject14s; + } + + @JsonProperty("customObject15s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject15s() { + return customObject15s; + } + + @JsonProperty("customObject15s") + public void setCustomObject15s(OneToMany customObject15s) { + this.customObject15s = customObject15s; + } + + @JsonProperty("customObject16s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject16s() { + return customObject16s; + } + + @JsonProperty("customObject16s") + public void setCustomObject16s(OneToMany customObject16s) { + this.customObject16s = customObject16s; + } + + @JsonProperty("customObject17s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject17s() { + return customObject17s; + } + + @JsonProperty("customObject17s") + public void setCustomObject17s(OneToMany customObject17s) { + this.customObject17s = customObject17s; + } + + @JsonProperty("customObject18s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject18s() { + return customObject18s; + } + + @JsonProperty("customObject18s") + public void setCustomObject18s(OneToMany customObject18s) { + this.customObject18s = customObject18s; + } + + @JsonProperty("customObject19s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject19s() { return customObject19s; } + + @JsonProperty("customObject19s") + public void setCustomObject19s(OneToMany customObject19s) { this.customObject19s = customObject19s; } + + @JsonProperty("customObject20s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject20s() { + return customObject20s; + } + + @JsonProperty("customObject20s") + public void setCustomObject20s(OneToMany customObject20s) { + this.customObject20s = customObject20s; + } + + @JsonProperty("customObject21s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject21s() { + return customObject21s; + } + + @JsonProperty("customObject21s") + public void setCustomObject21s(OneToMany customObject21s) { + this.customObject21s = customObject21s; + } + + @JsonProperty("customObject22s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject22s() { + return customObject22s; + } + + @JsonProperty("customObject22s") + public void setCustomObject22s(OneToMany customObject22s) { + this.customObject22s = customObject22s; + } + + @JsonProperty("customObject23s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject23s() { + return customObject23s; + } + + @JsonProperty("customObject23s") + public void setCustomObject23s(OneToMany customObject23s) { + this.customObject23s = customObject23s; + } + + @JsonProperty("customObject24s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject24s() { + return customObject24s; + } + + @JsonProperty("customObject24s") + public void setCustomObject24s(OneToMany customObject24s) { + this.customObject24s = customObject24s; + } + + @JsonProperty("customObject25s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject25s() { + return customObject25s; + } + + @JsonProperty("customObject25s") + public void setCustomObject25s(OneToMany customObject25s) { + this.customObject25s = customObject25s; + } + + @JsonProperty("customObject26s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject26s() { + return customObject26s; + } + + @JsonProperty("customObject26s") + public void setCustomObject26s(OneToMany customObject26s) { + this.customObject26s = customObject26s; + } + + @JsonProperty("customObject27s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject27s() { + return customObject27s; + } + + @JsonProperty("customObject27s") + public void setCustomObject27s(OneToMany customObject27s) { + this.customObject27s = customObject27s; + } + + @JsonProperty("customObject28s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject28s() { + return customObject28s; + } + + @JsonProperty("customObject28s") + public void setCustomObject28s(OneToMany customObject28s) { + this.customObject28s = customObject28s; + } + + @JsonProperty("customObject29s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject29s() { + return customObject29s; + } + + @JsonProperty("customObject29s") + public void setCustomObject29s(OneToMany customObject29s) { + this.customObject29s = customObject29s; + } + + @JsonProperty("customObject30s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject30s() { + return customObject30s; + } + + @JsonProperty("customObject30s") + public void setCustomObject30s(OneToMany customObject30s) { + this.customObject30s = customObject30s; + } + + @JsonProperty("customObject31s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject31s() { + return customObject31s; + } + + @JsonProperty("customObject31s") + public void setCustomObject31s(OneToMany customObject31s) { + this.customObject31s = customObject31s; + } + + @JsonProperty("customObject32s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject32s() { + return customObject32s; + } + + @JsonProperty("customObject32s") + public void setCustomObject32s(OneToMany customObject32s) { + this.customObject32s = customObject32s; + } + + @JsonProperty("customObject33s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject33s() { + return customObject33s; + } + + @JsonProperty("customObject33s") + public void setCustomObject33s(OneToMany customObject33s) { + this.customObject33s = customObject33s; + } + + @JsonProperty("customObject34s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject34s() { + return customObject34s; + } + + @JsonProperty("customObject34s") + public void setCustomObject34s(OneToMany customObject34s) { + this.customObject34s = customObject34s; + } + + @JsonProperty("customObject35s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject35s() { + return customObject35s; + } + + @JsonProperty("customObject35s") + public void setCustomObject35s(OneToMany customObject35s) { + this.customObject35s = customObject35s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + ClientCorporation that = (ClientCorporation) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (address != null ? !address.equals(that.address) : that.address != null) return false; + if (annualRevenue != null ? !annualRevenue.equals(that.annualRevenue) : that.annualRevenue != null) + return false; + if (billingAddress != null ? !billingAddress.equals(that.billingAddress) : that.billingAddress != null) + return false; + if (billingContact != null ? !billingContact.equals(that.billingContact) : that.billingContact != null) + return false; + if (billingFrequency != null ? !billingFrequency.equals(that.billingFrequency) : that.billingFrequency != null) + return false; + if (billingPhone != null ? !billingPhone.equals(that.billingPhone) : that.billingPhone != null) return false; + if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; + if (businessSectorList != null ? !businessSectorList.equals(that.businessSectorList) : that.businessSectorList != null) + return false; + if (childClientCorporations != null ? !childClientCorporations.equals(that.childClientCorporations) : that.childClientCorporations != null) + return false; + if (clientContacts != null ? !clientContacts.equals(that.clientContacts) : that.clientContacts != null) + return false; + if (companyDescription != null ? !companyDescription.equals(that.companyDescription) : that.companyDescription != null) + return false; + if (companyURL != null ? !companyURL.equals(that.companyURL) : that.companyURL != null) return false; + if (competitors != null ? !competitors.equals(that.competitors) : that.competitors != null) return false; + if (culture != null ? !culture.equals(that.culture) : that.culture != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateFounded != null ? !dateFounded.equals(that.dateFounded) : that.dateFounded != null) return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (department != null ? !department.equals(that.department) : that.department != null) return false; + if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; + if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; + if (feeArrangement != null ? !feeArrangement.equals(that.feeArrangement) : that.feeArrangement != null) + return false; + if (funding != null ? !funding.equals(that.funding) : that.funding != null) return false; + if (industryList != null ? !industryList.equals(that.industryList) : that.industryList != null) return false; + if (invoiceFormat != null ? !invoiceFormat.equals(that.invoiceFormat) : that.invoiceFormat != null) + return false; + if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; + if (linkedinProfileName != null ? !linkedinProfileName.equals(that.linkedinProfileName) : that.linkedinProfileName != null) return false; + if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; + if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; + if (numOffices != null ? !numOffices.equals(that.numOffices) : that.numOffices != null) return false; + if (ownership != null ? !ownership.equals(that.ownership) : that.ownership != null) return false; + if (owners != null ? !owners.equals(that.owners) : that.owners != null) return false; + if (parentClientCorporation != null ? !parentClientCorporation.equals(that.parentClientCorporation) : that.parentClientCorporation != null) + return false; + if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; + if (revenue != null ? !revenue.equals(that.revenue) : that.revenue != null) return false; + if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (taxRate != null ? !taxRate.equals(that.taxRate) : that.taxRate != null) return false; + if (tickerSymbol != null ? !tickerSymbol.equals(that.tickerSymbol) : that.tickerSymbol != null) return false; + if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; + if (workWeekStart != null ? !workWeekStart.equals(that.workWeekStart) : that.workWeekStart != null) + return false; + if (requirements != null ? !requirements.equals(that.requirements) : that.requirements != null) + return false; + if (certificationGroups != null ? !certificationGroups.equals(that.certificationGroups) : that.certificationGroups != null) + return false; + if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) + return false; + if (customObject10s != null ? !customObject10s.equals(that.customObject10s) : that.customObject10s != null) + return false; + if (customObject11s != null ? !customObject11s.equals(that.customObject11s) : that.customObject11s != null) + return false; + if (customObject12s != null ? !customObject12s.equals(that.customObject12s) : that.customObject12s != null) + return false; + if (customObject13s != null ? !customObject13s.equals(that.customObject13s) : that.customObject13s != null) + return false; + if (customObject14s != null ? !customObject14s.equals(that.customObject14s) : that.customObject14s != null) + return false; + if (customObject15s != null ? !customObject15s.equals(that.customObject15s) : that.customObject15s != null) + return false; + if (customObject16s != null ? !customObject16s.equals(that.customObject16s) : that.customObject16s != null) + return false; + if (customObject17s != null ? !customObject17s.equals(that.customObject17s) : that.customObject17s != null) + return false; + if (customObject18s != null ? !customObject18s.equals(that.customObject18s) : that.customObject18s != null) + return false; + if (customObject19s != null ? !customObject19s.equals(that.customObject19s) : that.customObject19s != null) + return false; + return customObject20s != null ? customObject20s.equals(that.customObject20s) : that.customObject20s == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (annualRevenue != null ? annualRevenue.hashCode() : 0); + result = 31 * result + (billingAddress != null ? billingAddress.hashCode() : 0); + result = 31 * result + (billingContact != null ? billingContact.hashCode() : 0); + result = 31 * result + (billingFrequency != null ? billingFrequency.hashCode() : 0); + result = 31 * result + (billingPhone != null ? billingPhone.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (businessSectorList != null ? businessSectorList.hashCode() : 0); + result = 31 * result + (childClientCorporations != null ? childClientCorporations.hashCode() : 0); + result = 31 * result + (clientContacts != null ? clientContacts.hashCode() : 0); + result = 31 * result + (companyDescription != null ? companyDescription.hashCode() : 0); + result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); + result = 31 * result + (competitors != null ? competitors.hashCode() : 0); + result = 31 * result + (culture != null ? culture.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateFounded != null ? dateFounded.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (department != null ? department.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (feeArrangement != null ? feeArrangement.hashCode() : 0); + result = 31 * result + (funding != null ? funding.hashCode() : 0); + result = 31 * result + (industryList != null ? industryList.hashCode() : 0); + result = 31 * result + (invoiceFormat != null ? invoiceFormat.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (linkedinProfileName != null ? linkedinProfileName.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); + result = 31 * result + (numOffices != null ? numOffices.hashCode() : 0); + result = 31 * result + (ownership != null ? ownership.hashCode() : 0); + result = 31 * result + (owners != null ? owners.hashCode() : 0); + result = 31 * result + (parentClientCorporation != null ? parentClientCorporation.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (revenue != null ? revenue.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (taxRate != null ? taxRate.hashCode() : 0); + result = 31 * result + (tickerSymbol != null ? tickerSymbol.hashCode() : 0); + result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); + result = 31 * result + (workWeekStart != null ? workWeekStart.hashCode() : 0); + result = 31 * result + (requirements != null ? requirements.hashCode() : 0); + result = 31 * result + (certificationGroups != null ? certificationGroups.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + result = 31 * result + (customObject11s != null ? customObject11s.hashCode() : 0); + result = 31 * result + (customObject12s != null ? customObject12s.hashCode() : 0); + result = 31 * result + (customObject13s != null ? customObject13s.hashCode() : 0); + result = 31 * result + (customObject14s != null ? customObject14s.hashCode() : 0); + result = 31 * result + (customObject15s != null ? customObject15s.hashCode() : 0); + result = 31 * result + (customObject16s != null ? customObject16s.hashCode() : 0); + result = 31 * result + (customObject17s != null ? customObject17s.hashCode() : 0); + result = 31 * result + (customObject18s != null ? customObject18s.hashCode() : 0); + result = 31 * result + (customObject19s != null ? customObject19s.hashCode() : 0); + result = 31 * result + (customObject20s != null ? customObject20s.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull()); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull()); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull()); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull()); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull()); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull()); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull()); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull()); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull()); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull()); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull()); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull()); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull()); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull()); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass() + " { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(annualRevenue != null){ + sb.append(lbc + "annualRevenue=").append(annualRevenue); + } + if(billingAddress != null){ + sb.append(lbc + "billingAddress=").append(billingAddress.toStringNonNull(includeLineBreaks)); + } + if(billingContact != null){ + sb.append(lbc + "billingContact=").append(billingContact); + } + if(billingFrequency != null){ + sb.append(lbc + "billingFrequency=").append(billingFrequency); + } + if(billingPhone != null){ + sb.append(lbc + "billingPhone=").append(billingPhone); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectorList != null){ + sb.append(lbc + "businessSectorList=").append(businessSectorList); + } + if(childClientCorporations != null){ + sb.append(lbc + "childClientCorporations=").append(childClientCorporations.toStringNonNull(includeLineBreaks)); + } + if(clientContacts != null){ + sb.append(lbc + "clientContacts=").append(clientContacts.toStringNonNull(includeLineBreaks)); + } + if(companyDescription != null){ + sb.append(lbc + "companyDescription=").append(companyDescription); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(competitors != null){ + sb.append(lbc + "competitors=").append(competitors); + } + if(culture != null){ + sb.append(lbc + "culture=").append(culture); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateFounded != null){ + sb.append(lbc + "dateFounded=").append(dateFounded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(department != null){ + sb.append(lbc + "department=").append(department.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(feeArrangement != null){ + sb.append(lbc + "feeArrangement=").append(feeArrangement); + } + if(funding != null){ + sb.append(lbc + "funding=").append(funding); + } + if(industryList != null){ + sb.append(lbc + "industryList=").append(industryList); + } + if(invoiceFormat != null){ + sb.append(lbc + "invoiceFormat=").append(invoiceFormat); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(linkedinProfileName != null){ + sb.append(lbc + "linkedinProfileName=").append(linkedinProfileName); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(numOffices != null){ + sb.append(lbc + "numOffices=").append(numOffices); + } + if(ownership != null){ + sb.append(lbc + "ownership=").append(ownership); + } + if(owners != null){ + sb.append(lbc + "owners=").append(owners.toStringNonNull(includeLineBreaks)); + } + if(parentClientCorporation != null){ + sb.append(lbc + "parentClientCorporation=").append(parentClientCorporation.toStringNonNull(includeLineBreaks)); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(revenue != null){ + sb.append(lbc + "revenue=").append(revenue); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(tickerSymbol != null){ + sb.append(lbc + "tickerSymbol=").append(tickerSymbol); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(workWeekStart != null){ + sb.append(lbc + "workWeekStart=").append(workWeekStart); + } + if(requirements != null){ + sb.append(lbc + "requirements=").append(requirements); + } + if(certificationGroups != null){ + sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customObject11s != null){ + sb.append(lbc + "customObject11s=").append(customObject11s.toStringNonNull(includeLineBreaks)); + } + if(customObject12s != null){ + sb.append(lbc + "customObject12s=").append(customObject12s.toStringNonNull(includeLineBreaks)); + } + if(customObject13s != null){ + sb.append(lbc + "customObject13s=").append(customObject13s.toStringNonNull(includeLineBreaks)); + } + if(customObject14s != null){ + sb.append(lbc + "customObject14s=").append(customObject14s.toStringNonNull(includeLineBreaks)); + } + if(customObject15s != null){ + sb.append(lbc + "customObject15s=").append(customObject15s.toStringNonNull(includeLineBreaks)); + } + if(customObject16s != null){ + sb.append(lbc + "customObject16s=").append(customObject16s.toStringNonNull(includeLineBreaks)); + } + if(customObject17s != null){ + sb.append(lbc + "customObject17s=").append(customObject17s.toStringNonNull(includeLineBreaks)); + } + if(customObject18s != null){ + sb.append(lbc + "customObject18s=").append(customObject18s.toStringNonNull(includeLineBreaks)); + } + if(customObject19s != null){ + sb.append(lbc + "customObject19s=").append(customObject19s.toStringNonNull(includeLineBreaks)); + } + if(customObject20s != null){ + sb.append(lbc + "customObject20s=").append(customObject20s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + "{"); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", annualRevenue=").append(annualRevenue); + sb.append(", billingAddress=").append(billingAddress); + sb.append(", billingContact=").append(billingContact); + sb.append(", billingFrequency=").append(billingFrequency); + sb.append(", billingPhone=").append(billingPhone); + sb.append(", branch=").append(branch); + sb.append(", businessSectorList=").append(businessSectorList); + sb.append(", childClientCorporations=").append(childClientCorporations); + sb.append(", clientContacts=").append(clientContacts); + sb.append(", companyDescription=").append(companyDescription); + sb.append(", companyURL=").append(companyURL); + sb.append(", competitors=").append(competitors); + sb.append(", culture=").append(culture); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateFounded=").append(dateFounded); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", department=").append(department); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", feeArrangement=").append(feeArrangement); + sb.append(", funding=").append(funding); + sb.append(", industryList=").append(industryList); + sb.append(", invoiceFormat=").append(invoiceFormat); + sb.append(", leads=").append(leads); + sb.append(", linkedinProfileName=").append(linkedinProfileName); + sb.append(", name=").append(name); + sb.append(", notes=").append(notes); + sb.append(", numEmployees=").append(numEmployees); + sb.append(", numOffices=").append(numOffices); + sb.append(", ownership=").append(ownership); + sb.append(", owners=").append(owners); + sb.append(", parentClientCorporation=").append(parentClientCorporation); + sb.append(", phone=").append(phone); + sb.append(", revenue=").append(revenue); + sb.append(", status=").append(status); + sb.append(", taxRate=").append(taxRate); + sb.append(", tickerSymbol=").append(tickerSymbol); + sb.append(", trackTitle=").append(trackTitle); + sb.append(", workWeekStart=").append(workWeekStart); + sb.append(", requirements=").append(requirements); + sb.append(", certificationGroups=").append(certificationGroups); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append(", customObject11s=").append(customObject11s); + sb.append(", customObject12s=").append(customObject12s); + sb.append(", customObject13s=").append(customObject13s); + sb.append(", customObject14s=").append(customObject14s); + sb.append(", customObject15s=").append(customObject15s); + sb.append(", customObject16s=").append(customObject16s); + sb.append(", customObject17s=").append(customObject17s); + sb.append(", customObject18s=").append(customObject18s); + sb.append(", customObject19s=").append(customObject19s); + sb.append(", customObject20s=").append(customObject20s); + sb.append("}"); + return sb.toString(); +} + + public ClientCorporation instantiateForInsert() { + ClientCorporation entity = new ClientCorporation(); + entity.setAddress(new Address().instantiateForInsert()); + entity.setAnnualRevenue(new BigDecimal(10000.00)); + entity.setFeeArrangement(new BigDecimal(100.00)); + entity.setName("Test Corp"); + entity.setNumEmployees(500); + entity.setNumOffices(1); + entity.setStatus("Active"); + return entity; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java index a355671d..1f8b6fb9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java @@ -1252,7 +1252,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "firstName=").append(firstName); } if(history != null){ - sb.append(lbc + "history=").append(history); + sb.append(lbc + "history=").append(history.toStringNonNull()); } if(isDayLightSavingsTime != null){ sb.append(lbc + "isDayLightSavingsTime=").append(isDayLightSavingsTime); @@ -1291,7 +1291,7 @@ public String toStringNonNull(boolean includeLineBreaks) { sb.append(lbc + "nickName=").append(nickName); } if(notes != null){ - sb.append(lbc + "notes=").append(notes); + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); } if(numEmployees != null){ sb.append(lbc + "numEmployees=").append(numEmployees); @@ -1444,7 +1444,7 @@ public String toStringNonNull() { sb.append(", description=").append(description); } if(distributionLists != null){ - sb.append(", distributionLists=").append(distributionLists); + sb.append(", distributionLists=").append(distributionLists.toStringNonNull()); } if(division != null){ sb.append(", division=").append(division); @@ -1474,7 +1474,7 @@ public String toStringNonNull() { sb.append(", firstName=").append(firstName); } if(history != null){ - sb.append(", history=").append(history); + sb.append(", history=").append(history.toStringNonNull()); } if(isDayLightSavingsTime != null){ sb.append(", isDayLightSavingsTime=").append(isDayLightSavingsTime); @@ -1608,71 +1608,71 @@ public String toString() { sb.append(", assignedTo=").append(assignedTo); sb.append(", branch=").append(branch); sb.append(", businessSectors=").append(businessSectors); - sb.append(", campaignSource='").append(campaignSource).append('\''); + sb.append(", campaignSource=").append(campaignSource); sb.append(", candidates=").append(candidates); sb.append(", category=").append(category); sb.append(", categories=").append(categories); sb.append(", clientContacts=").append(clientContacts); sb.append(", clientCorporation=").append(clientCorporation); - sb.append(", comments='").append(comments).append('\''); - sb.append(", companyName='").append(companyName).append('\''); - sb.append(", companyURL='").append(companyURL).append('\''); - sb.append(", conversionSource='").append(conversionSource).append('\''); + sb.append(", comments=").append(comments); + sb.append(", companyName=").append(companyName); + sb.append(", companyURL=").append(companyURL); + sb.append(", conversionSource=").append(conversionSource); sb.append(", dateAdded=").append(dateAdded); sb.append(", dateLastComment=").append(dateLastComment); sb.append(", dateLastModified=").append(dateLastModified); sb.append(", dateLastVisited=").append(dateLastVisited); - sb.append(", description='").append(description).append('\''); + sb.append(", description=").append(description); sb.append(", distributionLists=").append(distributionLists); - sb.append(", division='").append(division).append('\''); - sb.append(", educationDegree='").append(educationDegree).append('\''); - sb.append(", email='").append(email).append('\''); - sb.append(", email2='").append(email2).append('\''); - sb.append(", email3='").append(email3).append('\''); - sb.append(", fax='").append(fax).append('\''); - sb.append(", fax2='").append(fax2).append('\''); - sb.append(", fax3='").append(fax3).append('\''); - sb.append(", firstName='").append(firstName).append('\''); + sb.append(", division=").append(division); + sb.append(", educationDegree=").append(educationDegree); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", firstName=").append(firstName); sb.append(", history=").append(history); sb.append(", isDayLightSavingsTime=").append(isDayLightSavingsTime); sb.append(", isDeleted=").append(isDeleted); - sb.append(", lastName='").append(lastName).append('\''); - sb.append(", leadSource='").append(leadSource).append('\''); + sb.append(", lastName=").append(lastName); + sb.append(", leadSource=").append(leadSource); sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName='").append(middleName).append('\''); + sb.append(", middleName=").append(middleName); sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile='").append(mobile).append('\''); - sb.append(", name='").append(name).append('\''); - sb.append(", namePrefix='").append(namePrefix).append('\''); - sb.append(", nameSuffix='").append(nameSuffix).append('\''); - sb.append(", nickName='").append(nickName).append('\''); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); sb.append(", notes=").append(notes); sb.append(", numEmployees=").append(numEmployees); - sb.append(", occupation='").append(occupation).append('\''); + sb.append(", occupation=").append(occupation); sb.append(", owner=").append(owner); sb.append(", ownerCorporation=").append(ownerCorporation); - sb.append(", pager='").append(pager).append('\''); - sb.append(", phone='").append(phone).append('\''); - sb.append(", phone2='").append(phone2).append('\''); - sb.append(", phone3='").append(phone3).append('\''); - sb.append(", preferredContact='").append(preferredContact).append('\''); + sb.append(", pager=").append(pager); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", preferredContact=").append(preferredContact); sb.append(", primarySkills=").append(primarySkills); - sb.append(", priority='").append(priority).append('\''); + sb.append(", priority=").append(priority); sb.append(", referredByPerson=").append(referredByPerson); sb.append(", reportToPerson=").append(reportToPerson); - sb.append(", role='").append(role).append('\''); + sb.append(", role=").append(role); sb.append(", salary=").append(salary); sb.append(", salaryLow=").append(salaryLow); sb.append(", secondaryAddress=").append(secondaryAddress); sb.append(", secondarySkills=").append(secondarySkills); - sb.append(", skillSet='").append(skillSet).append('\''); + sb.append(", skillSet=").append(skillSet); sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source='").append(source).append('\''); + sb.append(", source=").append(source); sb.append(", specialties=").append(specialties); - sb.append(", status='").append(status).append('\''); + sb.append(", status=").append(status); sb.append(", tearsheets=").append(tearsheets); sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", type='").append(type).append('\''); + sb.append(", type=").append(type); sb.append(", willRelocate=").append(willRelocate); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java index 8e51a603..00aeeb2a 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/NoteEntity.java @@ -118,7 +118,7 @@ public String toStringNonNull() { } if(note != null){ builder.append(lbc + "note="); - builder.append(note); + builder.append(note.toStringNonNull()); } if(targetEntityID != null){ builder.append(lbc + "targetEntityID="); @@ -164,7 +164,7 @@ public String toString() { builder.append("\nid="); builder.append(id); builder.append(",\n note="); - builder.append(note.toStringNonNull()); + builder.append(note); builder.append(",\n targetEntityID="); builder.append(targetEntityID); builder.append(",\n targetEntityName="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java index 99a2d333..1d7d852c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java @@ -1548,30 +1548,633 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + "{"); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append("id=").append(id); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(title != null){ + sb.append(lbc + "title=").append(title); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(estimatedStartDate != null){ + sb.append(lbc + "estimatedStartDate=").append(estimatedStartDate); + } + if(estimatedHoursPerWeek != null){ + sb.append(lbc + "estimatedHoursPerWeek=").append(estimatedHoursPerWeek); + } + if(estimatedDuration != null){ + sb.append(lbc + "estimatedDuration=").append(estimatedDuration); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(onSite != null){ + sb.append(lbc + "onSite=").append(onSite); + } + if(taxStatus != null){ + sb.append(lbc + "taxStatus=").append(taxStatus); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(branchCode != null){ + sb.append(lbc + "branchCode=").append(branchCode); + } + if(isOpen != null){ + sb.append(lbc + "isOpen=").append(isOpen); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(externalCategoryID != null){ + sb.append(lbc + "externalCategoryID=").append(externalCategoryID); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(clientContact != null){ + sb.append(lbc + "clientContact=").append(clientContact.toStringNonNull(includeLineBreaks)); + } + if(priority != null){ + sb.append(lbc + "priority=").append(priority); + } + if(isClientContact != null){ + sb.append(lbc + "isClientContact=").append(isClientContact); + } + if(dateClientInterview != null){ + sb.append(lbc + "dateClientInterview=").append(dateClientInterview); + } + if(isPublic != null){ + sb.append(lbc + "isPublic=").append(isPublic); + } + if(numOpenings != null){ + sb.append(lbc + "numOpenings=").append(numOpenings); + } + if(isExtendable != null){ + sb.append(lbc + "isExtendable=").append(isExtendable); + } + if(yearsRequired != null){ + sb.append(lbc + "yearsRequired=").append(yearsRequired); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(actualCloseDate != null){ + sb.append(lbc + "actualCloseDate=").append(actualCloseDate); + } + if(reasonClosed != null){ + sb.append(lbc + "reasonClosed=").append(reasonClosed); + } + if(salaryRange != null){ + sb.append(lbc + "salaryRange=").append(salaryRange); + } + if(committed != null){ + sb.append(lbc + "committed=").append(committed); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(reportToClientContact != null){ + sb.append(lbc + "reportToClientContact=").append(reportToClientContact); + } + if(estimatedEndDate != null){ + sb.append(lbc + "estimatedEndDate=").append(estimatedEndDate); + } + if(isInterviewRequired != null){ + sb.append(lbc + "isInterviewRequired=").append(isInterviewRequired); + } + if(benefits != null){ + sb.append(lbc + "benefits=").append(benefits); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(skillList != null){ + sb.append(lbc + "skillList=").append(skillList); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(expectedBillRate != null){ + sb.append(lbc + "expectedBillRate=").append(expectedBillRate); + } + if(publicDescription != null){ + sb.append(lbc + "publicDescription=").append(publicDescription); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(jobOrders != null){ + sb.append(lbc + "jobOrders=").append(jobOrders.toStringNonNull(includeLineBreaks)); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(expectedPayRate != null){ + sb.append(lbc + "expectedPayRate=").append(expectedPayRate); + } + if(expectedFee != null){ + sb.append(lbc + "expectedFee=").append(expectedFee); + } + if(isClientEditable != null){ + sb.append(lbc + "isClientEditable=").append(isClientEditable); + } + if(responseUser != null){ + sb.append(lbc + "responseUser=").append(responseUser.toStringNonNull(includeLineBreaks)); + } + if(billRateCategoryID != null){ + sb.append(lbc + "billRateCategoryID=").append(billRateCategoryID); + } + if(expectedCloseDate != null){ + sb.append(lbc + "expectedCloseDate=").append(expectedCloseDate); + } + if(assignedDate != null){ + sb.append(lbc + "assignedDate=").append(assignedDate); + } + if(jobOrderUUID != null){ + sb.append(lbc + "jobOrderUUID=").append(jobOrderUUID); + } + if(publishedZip != null){ + sb.append(lbc + "publishedZip=").append(publishedZip); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(isOpportunity != null){ + sb.append(lbc + "isOpportunity=").append(isOpportunity); + } + if(dateLastExported != null){ + sb.append(lbc + "dateLastExported=").append(dateLastExported); + } + if(ignoreUntilDate != null){ + sb.append(lbc + "ignoreUntilDate=").append(ignoreUntilDate); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull(includeLineBreaks)); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications.toStringNonNull(includeLineBreaks)); + } + if(assignedUsers != null){ + sb.append(lbc + "assignedUsers=").append(assignedUsers.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(businessSector != null){ + sb.append(lbc + "businessSector=").append(businessSector.toStringNonNull(includeLineBreaks)); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull(includeLineBreaks)); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses.toStringNonNull(includeLineBreaks)); + } + if(effectiveDate != null){ + sb.append(lbc + "effectiveDate=").append(effectiveDate); + } + if(lead != null){ + sb.append(lbc + "lead=").append(lead.toStringNonNull(includeLineBreaks)); + } + if(campaignSource != null){ + sb.append(lbc + "campaignSource=").append(campaignSource); + } + if(markUpPercentage != null){ + sb.append(lbc + "markUpPercentage=").append(markUpPercentage); + } + if(winProbabilityPercent != null){ + sb.append(lbc + "winProbabilityPercent=").append(winProbabilityPercent); + } + if(dealValue != null){ + sb.append(lbc + "dealValue=").append(dealValue); + } + if(weightedDealValue != null){ + sb.append(lbc + "weightedDealValue=").append(weightedDealValue); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + "{"); + if(id != null){ + sb.append("id=").append(id); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(title != null){ + sb.append(lbc + "title=").append(title); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(estimatedStartDate != null){ + sb.append(lbc + "estimatedStartDate=").append(estimatedStartDate); + } + if(estimatedHoursPerWeek != null){ + sb.append(lbc + "estimatedHoursPerWeek=").append(estimatedHoursPerWeek); + } + if(estimatedDuration != null){ + sb.append(lbc + "estimatedDuration=").append(estimatedDuration); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryUnit != null){ + sb.append(lbc + "salaryUnit=").append(salaryUnit); + } + if(onSite != null){ + sb.append(lbc + "onSite=").append(onSite); + } + if(taxStatus != null){ + sb.append(lbc + "taxStatus=").append(taxStatus); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(branchCode != null){ + sb.append(lbc + "branchCode=").append(branchCode); + } + if(isOpen != null){ + sb.append(lbc + "isOpen=").append(isOpen); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(externalCategoryID != null){ + sb.append(lbc + "externalCategoryID=").append(externalCategoryID); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(clientContact != null){ + sb.append(lbc + "clientContact=").append(clientContact.toStringNonNull()); + } + if(priority != null){ + sb.append(lbc + "priority=").append(priority); + } + if(isClientContact != null){ + sb.append(lbc + "isClientContact=").append(isClientContact); + } + if(dateClientInterview != null){ + sb.append(lbc + "dateClientInterview=").append(dateClientInterview); + } + if(isPublic != null){ + sb.append(lbc + "isPublic=").append(isPublic); + } + if(numOpenings != null){ + sb.append(lbc + "numOpenings=").append(numOpenings); + } + if(isExtendable != null){ + sb.append(lbc + "isExtendable=").append(isExtendable); + } + if(yearsRequired != null){ + sb.append(lbc + "yearsRequired=").append(yearsRequired); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(actualCloseDate != null){ + sb.append(lbc + "actualCloseDate=").append(actualCloseDate); + } + if(reasonClosed != null){ + sb.append(lbc + "reasonClosed=").append(reasonClosed); + } + if(salaryRange != null){ + sb.append(lbc + "salaryRange=").append(salaryRange); + } + if(committed != null){ + sb.append(lbc + "committed=").append(committed); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(reportToClientContact != null){ + sb.append(lbc + "reportToClientContact=").append(reportToClientContact.toStringNonNull()); + } + if(estimatedEndDate != null){ + sb.append(lbc + "estimatedEndDate=").append(estimatedEndDate); + } + if(isInterviewRequired != null){ + sb.append(lbc + "isInterviewRequired=").append(isInterviewRequired); + } + if(benefits != null){ + sb.append(lbc + "benefits=").append(benefits); + } + if(costCenter != null){ + sb.append(lbc + "costCenter=").append(costCenter); + } + if(reportTo != null){ + sb.append(lbc + "reportTo=").append(reportTo); + } + if(skillList != null){ + sb.append(lbc + "skillList=").append(skillList); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(expectedBillRate != null){ + sb.append(lbc + "expectedBillRate=").append(expectedBillRate); + } + if(publicDescription != null){ + sb.append(lbc + "publicDescription=").append(publicDescription); + } + if(hoursOfOperation != null){ + sb.append(lbc + "hoursOfOperation=").append(hoursOfOperation); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(optionsPackage != null){ + sb.append(lbc + "optionsPackage=").append(optionsPackage); + } + if(bonusPackage != null){ + sb.append(lbc + "bonusPackage=").append(bonusPackage); + } + if(jobOrders != null){ + sb.append(lbc + "jobOrders=").append(jobOrders.toStringNonNull()); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(expectedPayRate != null){ + sb.append(lbc + "expectedPayRate=").append(expectedPayRate); + } + if(expectedFee != null){ + sb.append(lbc + "expectedFee=").append(expectedFee); + } + if(isClientEditable != null){ + sb.append(lbc + "isClientEditable=").append(isClientEditable); + } + if(responseUser != null){ + sb.append(lbc + "responseUser=").append(responseUser.toStringNonNull()); + } + if(billRateCategoryID != null){ + sb.append(lbc + "billRateCategoryID=").append(billRateCategoryID); + } + if(expectedCloseDate != null){ + sb.append(lbc + "expectedCloseDate=").append(expectedCloseDate); + } + if(assignedDate != null){ + sb.append(lbc + "assignedDate=").append(assignedDate); + } + if(jobOrderUUID != null){ + sb.append(lbc + "jobOrderUUID=").append(jobOrderUUID); + } + if(publishedZip != null){ + sb.append(lbc + "publishedZip=").append(publishedZip); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(taxRate != null){ + sb.append(lbc + "taxRate=").append(taxRate); + } + if(isOpportunity != null){ + sb.append(lbc + "isOpportunity=").append(isOpportunity); + } + if(dateLastExported != null){ + sb.append(lbc + "dateLastExported=").append(dateLastExported); + } + if(ignoreUntilDate != null){ + sb.append(lbc + "ignoreUntilDate=").append(ignoreUntilDate); + } + if(appointments != null){ + sb.append(lbc + "appointments=").append(appointments.toStringNonNull()); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications.toStringNonNull()); + } + if(assignedUsers != null){ + sb.append(lbc + "assignedUsers=").append(assignedUsers.toStringNonNull()); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(businessSector != null){ + sb.append(lbc + "businessSector=").append(businessSector.toStringNonNull()); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull()); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses.toStringNonNull()); + } + if(effectiveDate != null){ + sb.append(lbc + "effectiveDate=").append(effectiveDate); + } + if(lead != null){ + sb.append(lbc + "lead=").append(lead.toStringNonNull()); + } + if(campaignSource != null){ + sb.append(lbc + "campaignSource=").append(campaignSource); + } + if(markUpPercentage != null){ + sb.append(lbc + "markUpPercentage=").append(markUpPercentage); + } + if(winProbabilityPercent != null){ + sb.append(lbc + "winProbabilityPercent=").append(winProbabilityPercent); + } + if(dealValue != null){ + sb.append(lbc + "dealValue=").append(dealValue); + } + if(weightedDealValue != null){ + sb.append(lbc + "weightedDealValue=").append(weightedDealValue); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + @Override public String toString() { - final StringBuilder sb = new StringBuilder("Opportunity{"); - sb.append("luceneScore=").append(luceneScore); - sb.append(", id=").append(id); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + "{"); + sb.append("id=").append(id); sb.append(", owner=").append(owner); - sb.append(", title='").append(title).append('\''); - sb.append(", type='").append(type).append('\''); - sb.append(", description='").append(description).append('\''); + sb.append(", title=").append(title); + sb.append(", type=").append(type); + sb.append(", description=").append(description); sb.append(", estimatedStartDate=").append(estimatedStartDate); sb.append(", estimatedHoursPerWeek=").append(estimatedHoursPerWeek); sb.append(", estimatedDuration=").append(estimatedDuration); sb.append(", salary=").append(salary); - sb.append(", salaryUnit='").append(salaryUnit).append('\''); - sb.append(", onSite='").append(onSite).append('\''); - sb.append(", taxStatus='").append(taxStatus).append('\''); + sb.append(", salaryUnit=").append(salaryUnit); + sb.append(", onSite=").append(onSite); + sb.append(", taxStatus=").append(taxStatus); sb.append(", branch=").append(branch); - sb.append(", branchCode='").append(branchCode).append('\''); + sb.append(", branchCode=").append(branchCode); sb.append(", isOpen=").append(isOpen); sb.append(", address=").append(address); sb.append(", dateAdded=").append(dateAdded); sb.append(", isDeleted=").append(isDeleted); sb.append(", externalCategoryID=").append(externalCategoryID); - sb.append(", status='").append(status).append('\''); + sb.append(", status=").append(status); sb.append(", clientContact=").append(clientContact); sb.append(", priority=").append(priority); sb.append(", isClientContact=").append(isClientContact); @@ -1580,27 +2183,27 @@ public String toString() { sb.append(", numOpenings=").append(numOpenings); sb.append(", isExtendable=").append(isExtendable); sb.append(", yearsRequired=").append(yearsRequired); - sb.append(", externalID='").append(externalID).append('\''); + sb.append(", externalID=").append(externalID); sb.append(", actualCloseDate=").append(actualCloseDate); - sb.append(", reasonClosed='").append(reasonClosed).append('\''); - sb.append(", salaryRange='").append(salaryRange).append('\''); + sb.append(", reasonClosed=").append(reasonClosed); + sb.append(", salaryRange=").append(salaryRange); sb.append(", committed=").append(committed); sb.append(", willRelocate=").append(willRelocate); - sb.append(", educationDegree='").append(educationDegree).append('\''); + sb.append(", educationDegree=").append(educationDegree); sb.append(", reportToClientContact=").append(reportToClientContact); sb.append(", estimatedEndDate=").append(estimatedEndDate); sb.append(", isInterviewRequired=").append(isInterviewRequired); - sb.append(", benefits='").append(benefits).append('\''); - sb.append(", costCenter='").append(costCenter).append('\''); - sb.append(", reportTo='").append(reportTo).append('\''); - sb.append(", skillList='").append(skillList).append('\''); - sb.append(", degreeList='").append(degreeList).append('\''); + sb.append(", benefits=").append(benefits); + sb.append(", costCenter=").append(costCenter); + sb.append(", reportTo=").append(reportTo); + sb.append(", skillList=").append(skillList); + sb.append(", degreeList=").append(degreeList); sb.append(", expectedBillRate=").append(expectedBillRate); - sb.append(", publicDescription='").append(publicDescription).append('\''); - sb.append(", hoursOfOperation='").append(hoursOfOperation).append('\''); - sb.append(", source='").append(source).append('\''); - sb.append(", optionsPackage='").append(optionsPackage).append('\''); - sb.append(", bonusPackage='").append(bonusPackage).append('\''); + sb.append(", publicDescription=").append(publicDescription); + sb.append(", hoursOfOperation=").append(hoursOfOperation); + sb.append(", source=").append(source); + sb.append(", optionsPackage=").append(optionsPackage); + sb.append(", bonusPackage=").append(bonusPackage); sb.append(", jobOrders=").append(jobOrders); sb.append(", clientCorporation=").append(clientCorporation); sb.append(", expectedPayRate=").append(expectedPayRate); @@ -1610,9 +2213,9 @@ public String toString() { sb.append(", billRateCategoryID=").append(billRateCategoryID); sb.append(", expectedCloseDate=").append(expectedCloseDate); sb.append(", assignedDate=").append(assignedDate); - sb.append(", jobOrderUUID='").append(jobOrderUUID).append('\''); - sb.append(", publishedZip='").append(publishedZip).append('\''); - sb.append(", migrateGUID='").append(migrateGUID).append('\''); + sb.append(", jobOrderUUID=").append(jobOrderUUID); + sb.append(", publishedZip=").append(publishedZip); + sb.append(", migrateGUID=").append(migrateGUID); sb.append(", taxRate=").append(taxRate); sb.append(", isOpportunity=").append(isOpportunity); sb.append(", dateLastExported=").append(dateLastExported); @@ -1631,13 +2234,14 @@ public String toString() { sb.append(", webResponses=").append(webResponses); sb.append(", effectiveDate=").append(effectiveDate); sb.append(", lead=").append(lead); - sb.append(", campaignSource='").append(campaignSource).append('\''); + sb.append(", campaignSource=").append(campaignSource); sb.append(", markUpPercentage=").append(markUpPercentage); sb.append(", winProbabilityPercent=").append(winProbabilityPercent); sb.append(", dealValue=").append(dealValue); sb.append(", weightedDealValue=").append(weightedDealValue); sb.append(", dateLastModified=").append(dateLastModified); sb.append(", tearsheets=").append(tearsheets); + sb.append(", luceneScore=").append(luceneScore); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); @@ -1648,7 +2252,7 @@ public String toString() { sb.append(", customObject8s=").append(customObject8s); sb.append(", customObject9s=").append(customObject9s); sb.append(", customObject10s=").append(customObject10s); - sb.append('}'); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java index 01e5e28e..f0f39da8 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java @@ -880,7 +880,7 @@ public String toStringNonNull() { } if(address != null){ builder.append(lbc + "address="); - builder.append(address); + builder.append(address.toStringNonNull()); } if(companyName != null){ builder.append(lbc + "companyName="); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java index e58600f6..6a415662 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java @@ -8,7 +8,6 @@ import org.joda.time.DateTime; import com.bullhornsdk.data.model.entity.customfields.CustomFieldsD; -import com.bullhornsdk.data.model.entity.embedded.LinkedId; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; From 18c44da92e517a2c016d446f7d567d3c0fd198b2 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 13 Jun 2019 14:40:02 -0400 Subject: [PATCH 11/12] custom field work and starting including super calls --- .../CustomObjectInstance.java | 2872 +++---- .../entity/core/standard/Appointment.java | 1897 ++--- .../model/entity/core/standard/Branch.java | 2195 +++--- .../entity/core/standard/BusinessSector.java | 336 +- .../model/entity/core/standard/Candidate.java | 6718 +++++++++-------- .../entity/core/standard/ClientContact.java | 3757 ++++----- .../core/standard/ClientCorporation.java | 4 +- .../model/entity/core/standard/Placement.java | 2 + .../entity/customfields/BaseCustomFields.java | 86 +- .../entity/customfields/CustomFieldsA.java | 316 +- .../entity/customfields/CustomFieldsB.java | 362 +- .../entity/customfields/CustomFieldsC.java | 293 +- .../entity/customfields/CustomFieldsD.java | 1021 ++- .../entity/customfields/CustomFieldsE.java | 270 +- .../entity/customfields/CustomFieldsF.java | 621 +- .../data/model/entity/embedded/Address.java | 374 +- 16 files changed, 11486 insertions(+), 9638 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java index 9c004fd2..837c27a1 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/customobjectinstances/CustomObjectInstance.java @@ -1,1436 +1,1436 @@ - package com.bullhornsdk.data.model.entity.core.customobjectinstances; - - import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; - import com.bullhornsdk.data.model.entity.core.type.CreateEntity; - import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; - import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; - import com.bullhornsdk.data.model.entity.core.type.HardDeleteEntity; - import com.bullhornsdk.data.model.entity.core.type.QueryEntity; - import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; - import com.fasterxml.jackson.annotation.JsonIgnore; - import com.fasterxml.jackson.annotation.JsonProperty; - import org.joda.time.DateTime; - - import java.math.BigDecimal; - -public abstract class CustomObjectInstance extends AbstractEntity implements QueryEntity, DateLastModifiedEntity, UpdateEntity, CreateEntity, HardDeleteEntity, EditHistoryEntity { - - private Integer id; - @JsonIgnore - private String text1; - @JsonIgnore - private String text2; - @JsonIgnore - private String text3; - @JsonIgnore - private String text4; - @JsonIgnore - private String text5; - @JsonIgnore - private String text6; - @JsonIgnore - private String text7; - @JsonIgnore - private String text8; - @JsonIgnore - private String text9; - @JsonIgnore - private String text10; - @JsonIgnore - private String text11; - @JsonIgnore - private String text12; - @JsonIgnore - private String text13; - @JsonIgnore - private String text14; - @JsonIgnore - private String text15; - @JsonIgnore - private String text16; - @JsonIgnore - private String text17; - @JsonIgnore - private String text18; - @JsonIgnore - private String text19; - @JsonIgnore - private String text20; - private Integer int1; - private Integer int2; - private Integer int3; - private Integer int4; - private Integer int5; - private Integer int6; - private Integer int7; - private Integer int8; - private Integer int9; - private Integer int10; - private BigDecimal float1; - private BigDecimal float2; - private BigDecimal float3; - private BigDecimal float4; - private BigDecimal float5; - private BigDecimal float6; - private BigDecimal float7; - private BigDecimal float8; - private BigDecimal float9; - private BigDecimal float10; - private String textBlock1; - private String textBlock2; - private String textBlock3; - private String textBlock4; - private String textBlock5; - private DateTime date1; - private DateTime date2; - private DateTime date3; - private DateTime date4; - private DateTime date5; - private DateTime date6; - private DateTime date7; - private DateTime date8; - private DateTime date9; - private DateTime date10; - private DateTime dateAdded; - private DateTime dateLastModified; - - public CustomObjectInstance() { - super(); - } - - @JsonProperty("id") - public Integer getId() { - return id; - } - - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("text1") - public String getText1() { - return text1; - } - - @JsonIgnore - @JsonProperty("text1") - public void setText1(String text1) { - this.text1 = text1; - } - - @JsonProperty("text2") - public String getText2() { - return text2; - } - - @JsonIgnore - @JsonProperty("text2") - public void setText2(String text2) { - this.text2 = text2; - } - - @JsonProperty("text3") - public String getText3() { - return text3; - } - - @JsonIgnore - @JsonProperty("text3") - public void setText3(String text3) { - this.text3 = text3; - } - - @JsonProperty("text4") - public String getText4() { - return text4; - } - - @JsonIgnore - @JsonProperty("text4") - public void setText4(String text4) { - this.text4 = text4; - } - - @JsonProperty("text5") - public String getText5() { - return text5; - } - - @JsonIgnore - @JsonProperty("text5") - public void setText5(String text5) { - this.text5 = text5; - } - - @JsonProperty("text6") - public String getText6() { - return text6; - } - - @JsonIgnore - @JsonProperty("text6") - public void setText6(String text6) { - this.text6 = text6; - } - - @JsonProperty("text7") - public String getText7() { - return text7; - } - - @JsonIgnore - @JsonProperty("text7") - public void setText7(String text7) { - this.text7 = text7; - } - - @JsonProperty("text8") - public String getText8() { - return text8; - } - - @JsonIgnore - @JsonProperty("text8") - public void setText8(String text8) { - this.text8 = text8; - } - - @JsonProperty("text9") - public String getText9() { - return text9; - } - - @JsonIgnore - @JsonProperty("text9") - public void setText9(String text9) { - this.text9 = text9; - } - - @JsonProperty("text10") - public String getText10() { - return text10; - } - - @JsonIgnore - @JsonProperty("text10") - public void setText10(String text10) { - this.text10 = text10; - } - - @JsonProperty("text11") - public String getText11() { - return text11; - } - - @JsonIgnore - @JsonProperty("text11") - public void setText11(String text11) { - this.text11 = text11; - } - - @JsonProperty("text12") - public String getText12() { - return text12; - } - - @JsonIgnore - @JsonProperty("text12") - public void setText12(String text12) { - this.text12 = text12; - } - - @JsonProperty("text13") - public String getText13() { - return text13; - } - - @JsonIgnore - @JsonProperty("text13") - public void setText13(String text13) { - this.text13 = text13; - } - - @JsonProperty("text14") - public String getText14() { - return text14; - } - - @JsonIgnore - @JsonProperty("text14") - public void setText14(String text14) { - this.text14 = text14; - } - - @JsonProperty("text15") - public String getText15() { - return text15; - } - - @JsonIgnore - @JsonProperty("text15") - public void setText15(String text15) { - this.text15 = text15; - } - - @JsonProperty("text16") - public String getText16() { - return text16; - } - - @JsonIgnore - @JsonProperty("text16") - public void setText16(String text16) { - this.text16 = text16; - } - - @JsonProperty("text17") - public String getText17() { - return text17; - } - - @JsonIgnore - @JsonProperty("text17") - public void setText17(String text17) { - this.text17 = text17; - } - - @JsonProperty("text18") - public String getText18() { - return text18; - } - - @JsonIgnore - @JsonProperty("text18") - public void setText18(String text18) { - this.text18 = text18; - } - - @JsonProperty("text19") - public String getText19() { - return text19; - } - - @JsonIgnore - @JsonProperty("text19") - public void setText19(String text19) { - this.text19 = text19; - } - - @JsonProperty("text20") - public String getText20() { - return text20; - } - - @JsonIgnore - @JsonProperty("text20") - public void setText20(String text20) { - this.text20 = text20; - } - - @JsonProperty("int1") - public Integer getInt1() { - return int1; - } - - @JsonProperty("int1") - public void setInt1(Integer int1) { - this.int1 = int1; - } - - @JsonProperty("int2") - public Integer getInt2() { - return int2; - } - - @JsonProperty("int2") - public void setInt2(Integer int2) { - this.int2 = int2; - } - - @JsonProperty("int3") - public Integer getInt3() { - return int3; - } - - @JsonProperty("int3") - public void setInt3(Integer int3) { - this.int3 = int3; - } - - @JsonProperty("int4") - public Integer getInt4() { - return int4; - } - - @JsonProperty("int4") - public void setInt4(Integer int4) { - this.int4 = int4; - } - - @JsonProperty("int5") - public Integer getInt5() { - return int5; - } - - @JsonProperty("int5") - public void setInt5(Integer int5) { - this.int5 = int5; - } - - @JsonProperty("int6") - public Integer getInt6() { - return int6; - } - - @JsonProperty("int6") - public void setInt6(Integer int6) { - this.int6 = int6; - } - - @JsonProperty("int7") - public Integer getInt7() { - return int7; - } - - @JsonProperty("int7") - public void setInt7(Integer int7) { - this.int7 = int7; - } - - @JsonProperty("int8") - public Integer getInt8() { - return int8; - } - - @JsonProperty("int8") - public void setInt8(Integer int8) { - this.int8 = int8; - } - - @JsonProperty("int9") - public Integer getInt9() { - return int9; - } - - @JsonProperty("int9") - public void setInt9(Integer int9) { - this.int9 = int9; - } - - @JsonProperty("int10") - public Integer getInt10() { - return int10; - } - - @JsonProperty("int10") - public void setInt10(Integer int10) { - this.int10 = int10; - } - - @JsonProperty("float1") - public BigDecimal getFloat1() { - return float1; - } - - @JsonProperty("float1") - public void setFloat1(BigDecimal float1) { - this.float1 = float1; - } - - @JsonProperty("float2") - public BigDecimal getFloat2() { - return float2; - } - - @JsonProperty("float2") - public void setFloat2(BigDecimal float2) { - this.float2 = float2; - } - - @JsonProperty("float3") - public BigDecimal getFloat3() { - return float3; - } - - @JsonProperty("float3") - public void setFloat3(BigDecimal float3) { - this.float3 = float3; - } - - @JsonProperty("float4") - public BigDecimal getFloat4() { - return float4; - } - - @JsonProperty("float4") - public void setFloat4(BigDecimal float4) { - this.float4 = float4; - } - - @JsonProperty("float5") - public BigDecimal getFloat5() { - return float5; - } - - @JsonProperty("float5") - public void setFloat5(BigDecimal float5) { - this.float5 = float5; - } - - @JsonProperty("float6") - public BigDecimal getFloat6() { - return float6; - } - - @JsonProperty("float6") - public void setFloat6(BigDecimal float6) { - this.float6 = float6; - } - - @JsonProperty("float7") - public BigDecimal getFloat7() { - return float7; - } - - @JsonProperty("float7") - public void setFloat7(BigDecimal float7) { - this.float7 = float7; - } - - @JsonProperty("float8") - public BigDecimal getFloat8() { - return float8; - } - - @JsonProperty("float8") - public void setFloat8(BigDecimal float8) { - this.float8 = float8; - } - - @JsonProperty("float9") - public BigDecimal getFloat9() { - return float9; - } - - @JsonProperty("float9") - public void setFloat9(BigDecimal float9) { - this.float9 = float9; - } - - @JsonProperty("float10") - public BigDecimal getFloat10() { - return float10; - } - - @JsonProperty("float10") - public void setFloat10(BigDecimal float10) { - this.float10 = float10; - } - - @JsonProperty("textBlock1") - public String getTextBlock1() { - return textBlock1; - } - - @JsonProperty("textBlock1") - public void setTextBlock1(String textBlock1) { - this.textBlock1 = textBlock1; - } - - @JsonProperty("textBlock2") - public String getTextBlock2() { - return textBlock2; - } - - @JsonProperty("textBlock2") - public void setTextBlock2(String textBlock2) { - this.textBlock2 = textBlock2; - } - - @JsonProperty("textBlock3") - public String getTextBlock3() { - return textBlock3; - } - - @JsonProperty("textBlock3") - public void setTextBlock3(String textBlock3) { - this.textBlock3 = textBlock3; - } - - @JsonProperty("textBlock4") - public String getTextBlock4() { - return textBlock4; - } - - @JsonProperty("textBlock4") - public void setTextBlock4(String textBlock4) { - this.textBlock4 = textBlock4; - } - - @JsonProperty("textBlock5") - public String getTextBlock5() { - return textBlock5; - } - - @JsonProperty("textBlock5") - public void setTextBlock5(String textBlock5) { - this.textBlock5 = textBlock5; - } - - @JsonProperty("date1") - public DateTime getDate1() { - return date1; - } - - @JsonProperty("date1") - public void setDate1(DateTime date1) { - this.date1 = date1; - } - - @JsonProperty("date2") - public DateTime getDate2() { - return date2; - } - - @JsonProperty("date2") - public void setDate2(DateTime date2) { - this.date2 = date2; - } - - @JsonProperty("date3") - public DateTime getDate3() { - return date3; - } - - @JsonProperty("date3") - public void setDate3(DateTime date3) { - this.date3 = date3; - } - - @JsonProperty("date4") - public DateTime getDate4() { - return date4; - } - - @JsonProperty("date4") - public void setDate4(DateTime date4) { - this.date4 = date4; - } - - @JsonProperty("date5") - public DateTime getDate5() { - return date5; - } - - @JsonProperty("date5") - public void setDate5(DateTime date5) { - this.date5 = date5; - } - - @JsonProperty("date6") - public DateTime getDate6() { - return date6; - } - - @JsonProperty("date6") - public void setDate6(DateTime date6) { - this.date6 = date6; - } - - @JsonProperty("date7") - public DateTime getDate7() { - return date7; - } - - @JsonProperty("date7") - public void setDate7(DateTime date7) { - this.date7 = date7; - } - - @JsonProperty("date8") - public DateTime getDate8() { - return date8; - } - - @JsonProperty("date8") - public void setDate8(DateTime date8) { - this.date8 = date8; - } - - @JsonProperty("date9") - public DateTime getDate9() { - return date9; - } - - @JsonProperty("date9") - public void setDate9(DateTime date9) { - this.date9 = date9; - } - - @JsonProperty("date10") - public DateTime getDate10() { - return date10; - } - - @JsonProperty("date10") - public void setDate10(DateTime date10) { - this.date10 = date10; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - CustomObjectInstance that = (CustomObjectInstance) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (text1 != null ? !text1.equals(that.text1) : that.text1 != null) return false; - if (text2 != null ? !text2.equals(that.text2) : that.text2 != null) return false; - if (text3 != null ? !text3.equals(that.text3) : that.text3 != null) return false; - if (text4 != null ? !text4.equals(that.text4) : that.text4 != null) return false; - if (text5 != null ? !text5.equals(that.text5) : that.text5 != null) return false; - if (text6 != null ? !text6.equals(that.text6) : that.text6 != null) return false; - if (text7 != null ? !text7.equals(that.text7) : that.text7 != null) return false; - if (text8 != null ? !text8.equals(that.text8) : that.text8 != null) return false; - if (text9 != null ? !text9.equals(that.text9) : that.text9 != null) return false; - if (text10 != null ? !text10.equals(that.text10) : that.text10 != null) return false; - if (text11 != null ? !text11.equals(that.text11) : that.text11 != null) return false; - if (text12 != null ? !text12.equals(that.text12) : that.text12 != null) return false; - if (text13 != null ? !text13.equals(that.text13) : that.text13 != null) return false; - if (text14 != null ? !text14.equals(that.text14) : that.text14 != null) return false; - if (text15 != null ? !text15.equals(that.text15) : that.text15 != null) return false; - if (text16 != null ? !text16.equals(that.text16) : that.text16 != null) return false; - if (text17 != null ? !text17.equals(that.text17) : that.text17 != null) return false; - if (text18 != null ? !text18.equals(that.text18) : that.text18 != null) return false; - if (text19 != null ? !text19.equals(that.text19) : that.text19 != null) return false; - if (text20 != null ? !text20.equals(that.text20) : that.text20 != null) return false; - if (int1 != null ? !int1.equals(that.int1) : that.int1 != null) return false; - if (int2 != null ? !int2.equals(that.int2) : that.int2 != null) return false; - if (int3 != null ? !int3.equals(that.int3) : that.int3 != null) return false; - if (int4 != null ? !int4.equals(that.int4) : that.int4 != null) return false; - if (int5 != null ? !int5.equals(that.int5) : that.int5 != null) return false; - if (int6 != null ? !int6.equals(that.int6) : that.int6 != null) return false; - if (int7 != null ? !int7.equals(that.int7) : that.int7 != null) return false; - if (int8 != null ? !int8.equals(that.int8) : that.int8 != null) return false; - if (int9 != null ? !int9.equals(that.int9) : that.int9 != null) return false; - if (int10 != null ? !int10.equals(that.int10) : that.int10 != null) return false; - if (float1 != null ? !float1.equals(that.float1) : that.float1 != null) return false; - if (float2 != null ? !float2.equals(that.float2) : that.float2 != null) return false; - if (float3 != null ? !float3.equals(that.float3) : that.float3 != null) return false; - if (float4 != null ? !float4.equals(that.float4) : that.float4 != null) return false; - if (float5 != null ? !float5.equals(that.float5) : that.float5 != null) return false; - if (float6 != null ? !float6.equals(that.float6) : that.float6 != null) return false; - if (float7 != null ? !float7.equals(that.float7) : that.float7 != null) return false; - if (float8 != null ? !float8.equals(that.float8) : that.float8 != null) return false; - if (float9 != null ? !float9.equals(that.float9) : that.float9 != null) return false; - if (float10 != null ? !float10.equals(that.float10) : that.float10 != null) return false; - if (textBlock1 != null ? !textBlock1.equals(that.textBlock1) : that.textBlock1 != null) return false; - if (textBlock2 != null ? !textBlock2.equals(that.textBlock2) : that.textBlock2 != null) return false; - if (textBlock3 != null ? !textBlock3.equals(that.textBlock3) : that.textBlock3 != null) return false; - if (textBlock4 != null ? !textBlock4.equals(that.textBlock4) : that.textBlock4 != null) return false; - if (textBlock5 != null ? !textBlock5.equals(that.textBlock5) : that.textBlock5 != null) return false; - if (date1 != null ? !date1.equals(that.date1) : that.date1 != null) return false; - if (date2 != null ? !date2.equals(that.date2) : that.date2 != null) return false; - if (date3 != null ? !date3.equals(that.date3) : that.date3 != null) return false; - if (date4 != null ? !date4.equals(that.date4) : that.date4 != null) return false; - if (date5 != null ? !date5.equals(that.date5) : that.date5 != null) return false; - if (date6 != null ? !date6.equals(that.date6) : that.date6 != null) return false; - if (date7 != null ? !date7.equals(that.date7) : that.date7 != null) return false; - if (date8 != null ? !date8.equals(that.date8) : that.date8 != null) return false; - if (date9 != null ? !date9.equals(that.date9) : that.date9 != null) return false; - if (date10 != null ? !date10.equals(that.date10) : that.date10 != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - return !(dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null); - - } - - @Override - public int hashCode() { - int result = id != null ? id.hashCode() : 0; - result = 31 * result + (text1 != null ? text1.hashCode() : 0); - result = 31 * result + (text2 != null ? text2.hashCode() : 0); - result = 31 * result + (text3 != null ? text3.hashCode() : 0); - result = 31 * result + (text4 != null ? text4.hashCode() : 0); - result = 31 * result + (text5 != null ? text5.hashCode() : 0); - result = 31 * result + (text6 != null ? text6.hashCode() : 0); - result = 31 * result + (text7 != null ? text7.hashCode() : 0); - result = 31 * result + (text8 != null ? text8.hashCode() : 0); - result = 31 * result + (text9 != null ? text9.hashCode() : 0); - result = 31 * result + (text10 != null ? text10.hashCode() : 0); - result = 31 * result + (text11 != null ? text11.hashCode() : 0); - result = 31 * result + (text12 != null ? text12.hashCode() : 0); - result = 31 * result + (text13 != null ? text13.hashCode() : 0); - result = 31 * result + (text14 != null ? text14.hashCode() : 0); - result = 31 * result + (text15 != null ? text15.hashCode() : 0); - result = 31 * result + (text16 != null ? text16.hashCode() : 0); - result = 31 * result + (text17 != null ? text17.hashCode() : 0); - result = 31 * result + (text18 != null ? text18.hashCode() : 0); - result = 31 * result + (text19 != null ? text19.hashCode() : 0); - result = 31 * result + (text20 != null ? text20.hashCode() : 0); - result = 31 * result + (int1 != null ? int1.hashCode() : 0); - result = 31 * result + (int2 != null ? int2.hashCode() : 0); - result = 31 * result + (int3 != null ? int3.hashCode() : 0); - result = 31 * result + (int4 != null ? int4.hashCode() : 0); - result = 31 * result + (int5 != null ? int5.hashCode() : 0); - result = 31 * result + (int6 != null ? int6.hashCode() : 0); - result = 31 * result + (int7 != null ? int7.hashCode() : 0); - result = 31 * result + (int8 != null ? int8.hashCode() : 0); - result = 31 * result + (int9 != null ? int9.hashCode() : 0); - result = 31 * result + (int10 != null ? int10.hashCode() : 0); - result = 31 * result + (float1 != null ? float1.hashCode() : 0); - result = 31 * result + (float2 != null ? float2.hashCode() : 0); - result = 31 * result + (float3 != null ? float3.hashCode() : 0); - result = 31 * result + (float4 != null ? float4.hashCode() : 0); - result = 31 * result + (float5 != null ? float5.hashCode() : 0); - result = 31 * result + (float6 != null ? float6.hashCode() : 0); - result = 31 * result + (float7 != null ? float7.hashCode() : 0); - result = 31 * result + (float8 != null ? float8.hashCode() : 0); - result = 31 * result + (float9 != null ? float9.hashCode() : 0); - result = 31 * result + (float10 != null ? float10.hashCode() : 0); - result = 31 * result + (textBlock1 != null ? textBlock1.hashCode() : 0); - result = 31 * result + (textBlock2 != null ? textBlock2.hashCode() : 0); - result = 31 * result + (textBlock3 != null ? textBlock3.hashCode() : 0); - result = 31 * result + (textBlock4 != null ? textBlock4.hashCode() : 0); - result = 31 * result + (textBlock5 != null ? textBlock5.hashCode() : 0); - result = 31 * result + (date1 != null ? date1.hashCode() : 0); - result = 31 * result + (date2 != null ? date2.hashCode() : 0); - result = 31 * result + (date3 != null ? date3.hashCode() : 0); - result = 31 * result + (date4 != null ? date4.hashCode() : 0); - result = 31 * result + (date5 != null ? date5.hashCode() : 0); - result = 31 * result + (date6 != null ? date6.hashCode() : 0); - result = 31 * result + (date7 != null ? date7.hashCode() : 0); - result = 31 * result + (date8 != null ? date8.hashCode() : 0); - result = 31 * result + (date9 != null ? date9.hashCode() : 0); - result = 31 * result + (date10 != null ? date10.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id="); - sb.append(id); - } - if(text1 != null){ - sb.append(lbc + "text1="); - sb.append(text1); - } - if(text2 != null){ - sb.append(lbc + "text2="); - sb.append(text2); - } - if(text3 != null){ - sb.append(lbc + "text3="); - sb.append(text3); - } - if(text4 != null){ - sb.append(lbc + "text4="); - sb.append(text4); - } - if(text5 != null){ - sb.append(lbc + "text5="); - sb.append(text5); - } - if(text6 != null){ - sb.append(lbc + "text6="); - sb.append(text6); - } - if(text7 != null){ - sb.append(lbc + "text7="); - sb.append(text7); - } - if(text8 != null){ - sb.append(lbc + "text8="); - sb.append(text8); - } - if(text9 != null){ - sb.append(lbc + "text9="); - sb.append(text9); - } - if(text10 != null){ - sb.append(lbc + "text10="); - sb.append(text10); - } - if(text11 != null){ - sb.append(lbc + "text11="); - sb.append(text11); - } - if(text12 != null){ - sb.append(lbc + "text12="); - sb.append(text12); - } - if(text13 != null){ - sb.append(lbc + "text13="); - sb.append(text13); - } - if(text14 != null){ - sb.append(lbc + "text14="); - sb.append(text14); - } - if(text15 != null){ - sb.append(lbc + "text15="); - sb.append(text15); - } - if(text16 != null){ - sb.append(lbc + "text16="); - sb.append(text16); - } - if(text17 != null){ - sb.append(lbc + "text17="); - sb.append(text17); - } - if(text18 != null){ - sb.append(lbc + "text18="); - sb.append(text18); - } - if(text19 != null){ - sb.append(lbc + "text19="); - sb.append(text19); - } - if(text20 != null){ - sb.append(lbc + "text20="); - sb.append(text20); - } - if(int1 != null){ - sb.append(lbc + "int1="); - sb.append(int1); - } - if(int2 != null){ - sb.append(lbc + "int2="); - sb.append(int2); - } - if(int3 != null){ - sb.append(lbc + "int3="); - sb.append(int3); - } - if(int4 != null){ - sb.append(lbc + "int4="); - sb.append(int4); - } - if(int5 != null){ - sb.append(lbc + "int5="); - sb.append(int5); - } - if(int6 != null){ - sb.append(lbc + "int6="); - sb.append(int6); - } - if(int7 != null){ - sb.append(lbc + "int7="); - sb.append(int7); - } - if(int8 != null){ - sb.append(lbc + "int8="); - sb.append(int8); - } - if(int9 != null){ - sb.append(lbc + "int9="); - sb.append(int9); - } - if(int10 != null){ - sb.append(lbc + "int10="); - sb.append(int10); - } - if(float1 != null){ - sb.append(lbc + "float1="); - sb.append(float1); - } - if(float2 != null){ - sb.append(lbc + "float2="); - sb.append(float2); - } - if(float3 != null){ - sb.append(lbc + "float3="); - sb.append(float3); - } - if(float4 != null){ - sb.append(lbc + "float4="); - sb.append(float4); - } - if(float5 != null){ - sb.append(lbc + "float5="); - sb.append(float5); - } - if(float6 != null){ - sb.append(lbc + "float6="); - sb.append(float6); - } - if(float7 != null){ - sb.append(lbc + "float7="); - sb.append(float7); - } - if(float8 != null){ - sb.append(lbc + "float8="); - sb.append(float8); - } - if(float9 != null){ - sb.append(lbc + "float9="); - sb.append(float9); - } - if(float10 != null){ - sb.append(lbc + "float10="); - sb.append(float10); - } - if(textBlock1 != null){ - sb.append(lbc + "textBlock1="); - sb.append(textBlock1); - } - if(textBlock2 != null){ - sb.append(lbc + "textBlock2="); - sb.append(textBlock2); - } - if(textBlock3 != null){ - sb.append(lbc + "textBlock3="); - sb.append(textBlock3); - } - if(textBlock4 != null){ - sb.append(lbc + "textBlock4="); - sb.append(textBlock4); - } - if(textBlock5 != null){ - sb.append(lbc + "textBlock5="); - sb.append(textBlock5); - } - if(date1 != null){ - sb.append(lbc + "date1="); - sb.append(date1); - } - if(date2 != null){ - sb.append(lbc + "date2="); - sb.append(date2); - } - if(date3 != null){ - sb.append(lbc + "date3="); - sb.append(date3); - } - if(date4 != null){ - sb.append(lbc + "date4="); - sb.append(date4); - } - if(date5 != null){ - sb.append(lbc + "date5="); - sb.append(date5); - } - if(date6 != null){ - sb.append(lbc + "date6="); - sb.append(date6); - } - if(date7 != null){ - sb.append(lbc + "date7="); - sb.append(date7); - } - if(date8 != null){ - sb.append(lbc + "date8="); - sb.append(date8); - } - if(date9 != null){ - sb.append(lbc + "date9="); - sb.append(date9); - } - if(date10 != null){ - sb.append(lbc + "date10="); - sb.append(date10); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded="); - sb.append(dateAdded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified="); - sb.append(dateLastModified); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id="); - sb.append(id); - } - if(text1 != null){ - sb.append(lbc + "text1="); - sb.append(text1); - } - if(text2 != null){ - sb.append(lbc + "text2="); - sb.append(text2); - } - if(text3 != null){ - sb.append(lbc + "text3="); - sb.append(text3); - } - if(text4 != null){ - sb.append(lbc + "text4="); - sb.append(text4); - } - if(text5 != null){ - sb.append(lbc + "text5="); - sb.append(text5); - } - if(text6 != null){ - sb.append(lbc + "text6="); - sb.append(text6); - } - if(text7 != null){ - sb.append(lbc + "text7="); - sb.append(text7); - } - if(text8 != null){ - sb.append(lbc + "text8="); - sb.append(text8); - } - if(text9 != null){ - sb.append(lbc + "text9="); - sb.append(text9); - } - if(text10 != null){ - sb.append(lbc + "text10="); - sb.append(text10); - } - if(text11 != null){ - sb.append(lbc + "text11="); - sb.append(text11); - } - if(text12 != null){ - sb.append(lbc + "text12="); - sb.append(text12); - } - if(text13 != null){ - sb.append(lbc + "text13="); - sb.append(text13); - } - if(text14 != null){ - sb.append(lbc + "text14="); - sb.append(text14); - } - if(text15 != null){ - sb.append(lbc + "text15="); - sb.append(text15); - } - if(text16 != null){ - sb.append(lbc + "text16="); - sb.append(text16); - } - if(text17 != null){ - sb.append(lbc + "text17="); - sb.append(text17); - } - if(text18 != null){ - sb.append(lbc + "text18="); - sb.append(text18); - } - if(text19 != null){ - sb.append(lbc + "text19="); - sb.append(text19); - } - if(text20 != null){ - sb.append(lbc + "text20="); - sb.append(text20); - } - if(int1 != null){ - sb.append(lbc + "int1="); - sb.append(int1); - } - if(int2 != null){ - sb.append(lbc + "int2="); - sb.append(int2); - } - if(int3 != null){ - sb.append(lbc + "int3="); - sb.append(int3); - } - if(int4 != null){ - sb.append(lbc + "int4="); - sb.append(int4); - } - if(int5 != null){ - sb.append(lbc + "int5="); - sb.append(int5); - } - if(int6 != null){ - sb.append(lbc + "int6="); - sb.append(int6); - } - if(int7 != null){ - sb.append(lbc + "int7="); - sb.append(int7); - } - if(int8 != null){ - sb.append(lbc + "int8="); - sb.append(int8); - } - if(int9 != null){ - sb.append(lbc + "int9="); - sb.append(int9); - } - if(int10 != null){ - sb.append(lbc + "int10="); - sb.append(int10); - } - if(float1 != null){ - sb.append(lbc + "float1="); - sb.append(float1); - } - if(float2 != null){ - sb.append(lbc + "float2="); - sb.append(float2); - } - if(float3 != null){ - sb.append(lbc + "float3="); - sb.append(float3); - } - if(float4 != null){ - sb.append(lbc + "float4="); - sb.append(float4); - } - if(float5 != null){ - sb.append(lbc + "float5="); - sb.append(float5); - } - if(float6 != null){ - sb.append(lbc + "float6="); - sb.append(float6); - } - if(float7 != null){ - sb.append(lbc + "float7="); - sb.append(float7); - } - if(float8 != null){ - sb.append(lbc + "float8="); - sb.append(float8); - } - if(float9 != null){ - sb.append(lbc + "float9="); - sb.append(float9); - } - if(float10 != null){ - sb.append(lbc + "float10="); - sb.append(float10); - } - if(textBlock1 != null){ - sb.append(lbc + "textBlock1="); - sb.append(textBlock1); - } - if(textBlock2 != null){ - sb.append(lbc + "textBlock2="); - sb.append(textBlock2); - } - if(textBlock3 != null){ - sb.append(lbc + "textBlock3="); - sb.append(textBlock3); - } - if(textBlock4 != null){ - sb.append(lbc + "textBlock4="); - sb.append(textBlock4); - } - if(textBlock5 != null){ - sb.append(lbc + "textBlock5="); - sb.append(textBlock5); - } - if(date1 != null){ - sb.append(lbc + "date1="); - sb.append(date1); - } - if(date2 != null){ - sb.append(lbc + "date2="); - sb.append(date2); - } - if(date3 != null){ - sb.append(lbc + "date3="); - sb.append(date3); - } - if(date4 != null){ - sb.append(lbc + "date4="); - sb.append(date4); - } - if(date5 != null){ - sb.append(lbc + "date5="); - sb.append(date5); - } - if(date6 != null){ - sb.append(lbc + "date6="); - sb.append(date6); - } - if(date7 != null){ - sb.append(lbc + "date7="); - sb.append(date7); - } - if(date8 != null){ - sb.append(lbc + "date8="); - sb.append(date8); - } - if(date9 != null){ - sb.append(lbc + "date9="); - sb.append(date9); - } - if(date10 != null){ - sb.append(lbc + "date10="); - sb.append(date10); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded="); - sb.append(dateAdded); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified="); - sb.append(dateLastModified); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id="); - sb.append(id); - sb.append(", text1="); - sb.append(text1); - sb.append(", text2="); - sb.append(text2); - sb.append(", text3="); - sb.append(text3); - sb.append(", text4="); - sb.append(text4); - sb.append(", text5="); - sb.append(text5); - sb.append(", text6="); - sb.append(text6); - sb.append(", text7="); - sb.append(text7); - sb.append(", text8="); - sb.append(text8); - sb.append(", text9="); - sb.append(text9); - sb.append(", text10="); - sb.append(text10); - sb.append(", text11="); - sb.append(text11); - sb.append(", text12="); - sb.append(text12); - sb.append(", text13="); - sb.append(text13); - sb.append(", text14="); - sb.append(text14); - sb.append(", text15="); - sb.append(text15); - sb.append(", text16="); - sb.append(text16); - sb.append(", text17="); - sb.append(text17); - sb.append(", text18="); - sb.append(text18); - sb.append(", text19="); - sb.append(text19); - sb.append(", text20="); - sb.append(text20); - sb.append(", int1="); - sb.append(int1); - sb.append(", int2="); - sb.append(int2); - sb.append(", int3="); - sb.append(int3); - sb.append(", int4="); - sb.append(int4); - sb.append(", int5="); - sb.append(int5); - sb.append(", int6="); - sb.append(int6); - sb.append(", int7="); - sb.append(int7); - sb.append(", int8="); - sb.append(int8); - sb.append(", int9="); - sb.append(int9); - sb.append(", int10="); - sb.append(int10); - sb.append(", float1="); - sb.append(float1); - sb.append(", float2="); - sb.append(float2); - sb.append(", float3="); - sb.append(float3); - sb.append(", float4="); - sb.append(float4); - sb.append(", float5="); - sb.append(float5); - sb.append(", float6="); - sb.append(float6); - sb.append(", float7="); - sb.append(float7); - sb.append(", float8="); - sb.append(float8); - sb.append(", float9="); - sb.append(float9); - sb.append(", float10="); - sb.append(float10); - sb.append(", textBlock1="); - sb.append(textBlock1); - sb.append(", textBlock2="); - sb.append(textBlock2); - sb.append(", textBlock3="); - sb.append(textBlock3); - sb.append(", textBlock4="); - sb.append(textBlock4); - sb.append(", textBlock5="); - sb.append(textBlock5); - sb.append(", date1="); - sb.append(date1); - sb.append(", date2="); - sb.append(date2); - sb.append(", date3="); - sb.append(date3); - sb.append(", date4="); - sb.append(date4); - sb.append(", date5="); - sb.append(date5); - sb.append(", date6="); - sb.append(date6); - sb.append(", date7="); - sb.append(date7); - sb.append(", date8="); - sb.append(date8); - sb.append(", date9="); - sb.append(date9); - sb.append(", date10="); - sb.append(date10); - sb.append(", dateAdded="); - sb.append(dateAdded); - sb.append(", dateLastModified="); - sb.append(dateLastModified); - sb.append("}"); - return sb.toString(); - } -} + package com.bullhornsdk.data.model.entity.core.customobjectinstances; + + import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; + import com.bullhornsdk.data.model.entity.core.type.CreateEntity; + import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; + import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; + import com.bullhornsdk.data.model.entity.core.type.HardDeleteEntity; + import com.bullhornsdk.data.model.entity.core.type.QueryEntity; + import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; + import com.fasterxml.jackson.annotation.JsonIgnore; + import com.fasterxml.jackson.annotation.JsonProperty; + import org.joda.time.DateTime; + + import java.math.BigDecimal; + +public abstract class CustomObjectInstance extends AbstractEntity implements QueryEntity, DateLastModifiedEntity, UpdateEntity, CreateEntity, HardDeleteEntity, EditHistoryEntity { + + private Integer id; + @JsonIgnore + private String text1; + @JsonIgnore + private String text2; + @JsonIgnore + private String text3; + @JsonIgnore + private String text4; + @JsonIgnore + private String text5; + @JsonIgnore + private String text6; + @JsonIgnore + private String text7; + @JsonIgnore + private String text8; + @JsonIgnore + private String text9; + @JsonIgnore + private String text10; + @JsonIgnore + private String text11; + @JsonIgnore + private String text12; + @JsonIgnore + private String text13; + @JsonIgnore + private String text14; + @JsonIgnore + private String text15; + @JsonIgnore + private String text16; + @JsonIgnore + private String text17; + @JsonIgnore + private String text18; + @JsonIgnore + private String text19; + @JsonIgnore + private String text20; + private Integer int1; + private Integer int2; + private Integer int3; + private Integer int4; + private Integer int5; + private Integer int6; + private Integer int7; + private Integer int8; + private Integer int9; + private Integer int10; + private BigDecimal float1; + private BigDecimal float2; + private BigDecimal float3; + private BigDecimal float4; + private BigDecimal float5; + private BigDecimal float6; + private BigDecimal float7; + private BigDecimal float8; + private BigDecimal float9; + private BigDecimal float10; + private String textBlock1; + private String textBlock2; + private String textBlock3; + private String textBlock4; + private String textBlock5; + private DateTime date1; + private DateTime date2; + private DateTime date3; + private DateTime date4; + private DateTime date5; + private DateTime date6; + private DateTime date7; + private DateTime date8; + private DateTime date9; + private DateTime date10; + private DateTime dateAdded; + private DateTime dateLastModified; + + public CustomObjectInstance() { + super(); + } + + @JsonProperty("id") + public Integer getId() { + return id; + } + + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("text1") + public String getText1() { + return text1; + } + + @JsonIgnore + @JsonProperty("text1") + public void setText1(String text1) { + this.text1 = text1; + } + + @JsonProperty("text2") + public String getText2() { + return text2; + } + + @JsonIgnore + @JsonProperty("text2") + public void setText2(String text2) { + this.text2 = text2; + } + + @JsonProperty("text3") + public String getText3() { + return text3; + } + + @JsonIgnore + @JsonProperty("text3") + public void setText3(String text3) { + this.text3 = text3; + } + + @JsonProperty("text4") + public String getText4() { + return text4; + } + + @JsonIgnore + @JsonProperty("text4") + public void setText4(String text4) { + this.text4 = text4; + } + + @JsonProperty("text5") + public String getText5() { + return text5; + } + + @JsonIgnore + @JsonProperty("text5") + public void setText5(String text5) { + this.text5 = text5; + } + + @JsonProperty("text6") + public String getText6() { + return text6; + } + + @JsonIgnore + @JsonProperty("text6") + public void setText6(String text6) { + this.text6 = text6; + } + + @JsonProperty("text7") + public String getText7() { + return text7; + } + + @JsonIgnore + @JsonProperty("text7") + public void setText7(String text7) { + this.text7 = text7; + } + + @JsonProperty("text8") + public String getText8() { + return text8; + } + + @JsonIgnore + @JsonProperty("text8") + public void setText8(String text8) { + this.text8 = text8; + } + + @JsonProperty("text9") + public String getText9() { + return text9; + } + + @JsonIgnore + @JsonProperty("text9") + public void setText9(String text9) { + this.text9 = text9; + } + + @JsonProperty("text10") + public String getText10() { + return text10; + } + + @JsonIgnore + @JsonProperty("text10") + public void setText10(String text10) { + this.text10 = text10; + } + + @JsonProperty("text11") + public String getText11() { + return text11; + } + + @JsonIgnore + @JsonProperty("text11") + public void setText11(String text11) { + this.text11 = text11; + } + + @JsonProperty("text12") + public String getText12() { + return text12; + } + + @JsonIgnore + @JsonProperty("text12") + public void setText12(String text12) { + this.text12 = text12; + } + + @JsonProperty("text13") + public String getText13() { + return text13; + } + + @JsonIgnore + @JsonProperty("text13") + public void setText13(String text13) { + this.text13 = text13; + } + + @JsonProperty("text14") + public String getText14() { + return text14; + } + + @JsonIgnore + @JsonProperty("text14") + public void setText14(String text14) { + this.text14 = text14; + } + + @JsonProperty("text15") + public String getText15() { + return text15; + } + + @JsonIgnore + @JsonProperty("text15") + public void setText15(String text15) { + this.text15 = text15; + } + + @JsonProperty("text16") + public String getText16() { + return text16; + } + + @JsonIgnore + @JsonProperty("text16") + public void setText16(String text16) { + this.text16 = text16; + } + + @JsonProperty("text17") + public String getText17() { + return text17; + } + + @JsonIgnore + @JsonProperty("text17") + public void setText17(String text17) { + this.text17 = text17; + } + + @JsonProperty("text18") + public String getText18() { + return text18; + } + + @JsonIgnore + @JsonProperty("text18") + public void setText18(String text18) { + this.text18 = text18; + } + + @JsonProperty("text19") + public String getText19() { + return text19; + } + + @JsonIgnore + @JsonProperty("text19") + public void setText19(String text19) { + this.text19 = text19; + } + + @JsonProperty("text20") + public String getText20() { + return text20; + } + + @JsonIgnore + @JsonProperty("text20") + public void setText20(String text20) { + this.text20 = text20; + } + + @JsonProperty("int1") + public Integer getInt1() { + return int1; + } + + @JsonProperty("int1") + public void setInt1(Integer int1) { + this.int1 = int1; + } + + @JsonProperty("int2") + public Integer getInt2() { + return int2; + } + + @JsonProperty("int2") + public void setInt2(Integer int2) { + this.int2 = int2; + } + + @JsonProperty("int3") + public Integer getInt3() { + return int3; + } + + @JsonProperty("int3") + public void setInt3(Integer int3) { + this.int3 = int3; + } + + @JsonProperty("int4") + public Integer getInt4() { + return int4; + } + + @JsonProperty("int4") + public void setInt4(Integer int4) { + this.int4 = int4; + } + + @JsonProperty("int5") + public Integer getInt5() { + return int5; + } + + @JsonProperty("int5") + public void setInt5(Integer int5) { + this.int5 = int5; + } + + @JsonProperty("int6") + public Integer getInt6() { + return int6; + } + + @JsonProperty("int6") + public void setInt6(Integer int6) { + this.int6 = int6; + } + + @JsonProperty("int7") + public Integer getInt7() { + return int7; + } + + @JsonProperty("int7") + public void setInt7(Integer int7) { + this.int7 = int7; + } + + @JsonProperty("int8") + public Integer getInt8() { + return int8; + } + + @JsonProperty("int8") + public void setInt8(Integer int8) { + this.int8 = int8; + } + + @JsonProperty("int9") + public Integer getInt9() { + return int9; + } + + @JsonProperty("int9") + public void setInt9(Integer int9) { + this.int9 = int9; + } + + @JsonProperty("int10") + public Integer getInt10() { + return int10; + } + + @JsonProperty("int10") + public void setInt10(Integer int10) { + this.int10 = int10; + } + + @JsonProperty("float1") + public BigDecimal getFloat1() { + return float1; + } + + @JsonProperty("float1") + public void setFloat1(BigDecimal float1) { + this.float1 = float1; + } + + @JsonProperty("float2") + public BigDecimal getFloat2() { + return float2; + } + + @JsonProperty("float2") + public void setFloat2(BigDecimal float2) { + this.float2 = float2; + } + + @JsonProperty("float3") + public BigDecimal getFloat3() { + return float3; + } + + @JsonProperty("float3") + public void setFloat3(BigDecimal float3) { + this.float3 = float3; + } + + @JsonProperty("float4") + public BigDecimal getFloat4() { + return float4; + } + + @JsonProperty("float4") + public void setFloat4(BigDecimal float4) { + this.float4 = float4; + } + + @JsonProperty("float5") + public BigDecimal getFloat5() { + return float5; + } + + @JsonProperty("float5") + public void setFloat5(BigDecimal float5) { + this.float5 = float5; + } + + @JsonProperty("float6") + public BigDecimal getFloat6() { + return float6; + } + + @JsonProperty("float6") + public void setFloat6(BigDecimal float6) { + this.float6 = float6; + } + + @JsonProperty("float7") + public BigDecimal getFloat7() { + return float7; + } + + @JsonProperty("float7") + public void setFloat7(BigDecimal float7) { + this.float7 = float7; + } + + @JsonProperty("float8") + public BigDecimal getFloat8() { + return float8; + } + + @JsonProperty("float8") + public void setFloat8(BigDecimal float8) { + this.float8 = float8; + } + + @JsonProperty("float9") + public BigDecimal getFloat9() { + return float9; + } + + @JsonProperty("float9") + public void setFloat9(BigDecimal float9) { + this.float9 = float9; + } + + @JsonProperty("float10") + public BigDecimal getFloat10() { + return float10; + } + + @JsonProperty("float10") + public void setFloat10(BigDecimal float10) { + this.float10 = float10; + } + + @JsonProperty("textBlock1") + public String getTextBlock1() { + return textBlock1; + } + + @JsonProperty("textBlock1") + public void setTextBlock1(String textBlock1) { + this.textBlock1 = textBlock1; + } + + @JsonProperty("textBlock2") + public String getTextBlock2() { + return textBlock2; + } + + @JsonProperty("textBlock2") + public void setTextBlock2(String textBlock2) { + this.textBlock2 = textBlock2; + } + + @JsonProperty("textBlock3") + public String getTextBlock3() { + return textBlock3; + } + + @JsonProperty("textBlock3") + public void setTextBlock3(String textBlock3) { + this.textBlock3 = textBlock3; + } + + @JsonProperty("textBlock4") + public String getTextBlock4() { + return textBlock4; + } + + @JsonProperty("textBlock4") + public void setTextBlock4(String textBlock4) { + this.textBlock4 = textBlock4; + } + + @JsonProperty("textBlock5") + public String getTextBlock5() { + return textBlock5; + } + + @JsonProperty("textBlock5") + public void setTextBlock5(String textBlock5) { + this.textBlock5 = textBlock5; + } + + @JsonProperty("date1") + public DateTime getDate1() { + return date1; + } + + @JsonProperty("date1") + public void setDate1(DateTime date1) { + this.date1 = date1; + } + + @JsonProperty("date2") + public DateTime getDate2() { + return date2; + } + + @JsonProperty("date2") + public void setDate2(DateTime date2) { + this.date2 = date2; + } + + @JsonProperty("date3") + public DateTime getDate3() { + return date3; + } + + @JsonProperty("date3") + public void setDate3(DateTime date3) { + this.date3 = date3; + } + + @JsonProperty("date4") + public DateTime getDate4() { + return date4; + } + + @JsonProperty("date4") + public void setDate4(DateTime date4) { + this.date4 = date4; + } + + @JsonProperty("date5") + public DateTime getDate5() { + return date5; + } + + @JsonProperty("date5") + public void setDate5(DateTime date5) { + this.date5 = date5; + } + + @JsonProperty("date6") + public DateTime getDate6() { + return date6; + } + + @JsonProperty("date6") + public void setDate6(DateTime date6) { + this.date6 = date6; + } + + @JsonProperty("date7") + public DateTime getDate7() { + return date7; + } + + @JsonProperty("date7") + public void setDate7(DateTime date7) { + this.date7 = date7; + } + + @JsonProperty("date8") + public DateTime getDate8() { + return date8; + } + + @JsonProperty("date8") + public void setDate8(DateTime date8) { + this.date8 = date8; + } + + @JsonProperty("date9") + public DateTime getDate9() { + return date9; + } + + @JsonProperty("date9") + public void setDate9(DateTime date9) { + this.date9 = date9; + } + + @JsonProperty("date10") + public DateTime getDate10() { + return date10; + } + + @JsonProperty("date10") + public void setDate10(DateTime date10) { + this.date10 = date10; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + CustomObjectInstance that = (CustomObjectInstance) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (text1 != null ? !text1.equals(that.text1) : that.text1 != null) return false; + if (text2 != null ? !text2.equals(that.text2) : that.text2 != null) return false; + if (text3 != null ? !text3.equals(that.text3) : that.text3 != null) return false; + if (text4 != null ? !text4.equals(that.text4) : that.text4 != null) return false; + if (text5 != null ? !text5.equals(that.text5) : that.text5 != null) return false; + if (text6 != null ? !text6.equals(that.text6) : that.text6 != null) return false; + if (text7 != null ? !text7.equals(that.text7) : that.text7 != null) return false; + if (text8 != null ? !text8.equals(that.text8) : that.text8 != null) return false; + if (text9 != null ? !text9.equals(that.text9) : that.text9 != null) return false; + if (text10 != null ? !text10.equals(that.text10) : that.text10 != null) return false; + if (text11 != null ? !text11.equals(that.text11) : that.text11 != null) return false; + if (text12 != null ? !text12.equals(that.text12) : that.text12 != null) return false; + if (text13 != null ? !text13.equals(that.text13) : that.text13 != null) return false; + if (text14 != null ? !text14.equals(that.text14) : that.text14 != null) return false; + if (text15 != null ? !text15.equals(that.text15) : that.text15 != null) return false; + if (text16 != null ? !text16.equals(that.text16) : that.text16 != null) return false; + if (text17 != null ? !text17.equals(that.text17) : that.text17 != null) return false; + if (text18 != null ? !text18.equals(that.text18) : that.text18 != null) return false; + if (text19 != null ? !text19.equals(that.text19) : that.text19 != null) return false; + if (text20 != null ? !text20.equals(that.text20) : that.text20 != null) return false; + if (int1 != null ? !int1.equals(that.int1) : that.int1 != null) return false; + if (int2 != null ? !int2.equals(that.int2) : that.int2 != null) return false; + if (int3 != null ? !int3.equals(that.int3) : that.int3 != null) return false; + if (int4 != null ? !int4.equals(that.int4) : that.int4 != null) return false; + if (int5 != null ? !int5.equals(that.int5) : that.int5 != null) return false; + if (int6 != null ? !int6.equals(that.int6) : that.int6 != null) return false; + if (int7 != null ? !int7.equals(that.int7) : that.int7 != null) return false; + if (int8 != null ? !int8.equals(that.int8) : that.int8 != null) return false; + if (int9 != null ? !int9.equals(that.int9) : that.int9 != null) return false; + if (int10 != null ? !int10.equals(that.int10) : that.int10 != null) return false; + if (float1 != null ? !float1.equals(that.float1) : that.float1 != null) return false; + if (float2 != null ? !float2.equals(that.float2) : that.float2 != null) return false; + if (float3 != null ? !float3.equals(that.float3) : that.float3 != null) return false; + if (float4 != null ? !float4.equals(that.float4) : that.float4 != null) return false; + if (float5 != null ? !float5.equals(that.float5) : that.float5 != null) return false; + if (float6 != null ? !float6.equals(that.float6) : that.float6 != null) return false; + if (float7 != null ? !float7.equals(that.float7) : that.float7 != null) return false; + if (float8 != null ? !float8.equals(that.float8) : that.float8 != null) return false; + if (float9 != null ? !float9.equals(that.float9) : that.float9 != null) return false; + if (float10 != null ? !float10.equals(that.float10) : that.float10 != null) return false; + if (textBlock1 != null ? !textBlock1.equals(that.textBlock1) : that.textBlock1 != null) return false; + if (textBlock2 != null ? !textBlock2.equals(that.textBlock2) : that.textBlock2 != null) return false; + if (textBlock3 != null ? !textBlock3.equals(that.textBlock3) : that.textBlock3 != null) return false; + if (textBlock4 != null ? !textBlock4.equals(that.textBlock4) : that.textBlock4 != null) return false; + if (textBlock5 != null ? !textBlock5.equals(that.textBlock5) : that.textBlock5 != null) return false; + if (date1 != null ? !date1.equals(that.date1) : that.date1 != null) return false; + if (date2 != null ? !date2.equals(that.date2) : that.date2 != null) return false; + if (date3 != null ? !date3.equals(that.date3) : that.date3 != null) return false; + if (date4 != null ? !date4.equals(that.date4) : that.date4 != null) return false; + if (date5 != null ? !date5.equals(that.date5) : that.date5 != null) return false; + if (date6 != null ? !date6.equals(that.date6) : that.date6 != null) return false; + if (date7 != null ? !date7.equals(that.date7) : that.date7 != null) return false; + if (date8 != null ? !date8.equals(that.date8) : that.date8 != null) return false; + if (date9 != null ? !date9.equals(that.date9) : that.date9 != null) return false; + if (date10 != null ? !date10.equals(that.date10) : that.date10 != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + return !(dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null); + + } + + @Override + public int hashCode() { + int result = id != null ? id.hashCode() : 0; + result = 31 * result + (text1 != null ? text1.hashCode() : 0); + result = 31 * result + (text2 != null ? text2.hashCode() : 0); + result = 31 * result + (text3 != null ? text3.hashCode() : 0); + result = 31 * result + (text4 != null ? text4.hashCode() : 0); + result = 31 * result + (text5 != null ? text5.hashCode() : 0); + result = 31 * result + (text6 != null ? text6.hashCode() : 0); + result = 31 * result + (text7 != null ? text7.hashCode() : 0); + result = 31 * result + (text8 != null ? text8.hashCode() : 0); + result = 31 * result + (text9 != null ? text9.hashCode() : 0); + result = 31 * result + (text10 != null ? text10.hashCode() : 0); + result = 31 * result + (text11 != null ? text11.hashCode() : 0); + result = 31 * result + (text12 != null ? text12.hashCode() : 0); + result = 31 * result + (text13 != null ? text13.hashCode() : 0); + result = 31 * result + (text14 != null ? text14.hashCode() : 0); + result = 31 * result + (text15 != null ? text15.hashCode() : 0); + result = 31 * result + (text16 != null ? text16.hashCode() : 0); + result = 31 * result + (text17 != null ? text17.hashCode() : 0); + result = 31 * result + (text18 != null ? text18.hashCode() : 0); + result = 31 * result + (text19 != null ? text19.hashCode() : 0); + result = 31 * result + (text20 != null ? text20.hashCode() : 0); + result = 31 * result + (int1 != null ? int1.hashCode() : 0); + result = 31 * result + (int2 != null ? int2.hashCode() : 0); + result = 31 * result + (int3 != null ? int3.hashCode() : 0); + result = 31 * result + (int4 != null ? int4.hashCode() : 0); + result = 31 * result + (int5 != null ? int5.hashCode() : 0); + result = 31 * result + (int6 != null ? int6.hashCode() : 0); + result = 31 * result + (int7 != null ? int7.hashCode() : 0); + result = 31 * result + (int8 != null ? int8.hashCode() : 0); + result = 31 * result + (int9 != null ? int9.hashCode() : 0); + result = 31 * result + (int10 != null ? int10.hashCode() : 0); + result = 31 * result + (float1 != null ? float1.hashCode() : 0); + result = 31 * result + (float2 != null ? float2.hashCode() : 0); + result = 31 * result + (float3 != null ? float3.hashCode() : 0); + result = 31 * result + (float4 != null ? float4.hashCode() : 0); + result = 31 * result + (float5 != null ? float5.hashCode() : 0); + result = 31 * result + (float6 != null ? float6.hashCode() : 0); + result = 31 * result + (float7 != null ? float7.hashCode() : 0); + result = 31 * result + (float8 != null ? float8.hashCode() : 0); + result = 31 * result + (float9 != null ? float9.hashCode() : 0); + result = 31 * result + (float10 != null ? float10.hashCode() : 0); + result = 31 * result + (textBlock1 != null ? textBlock1.hashCode() : 0); + result = 31 * result + (textBlock2 != null ? textBlock2.hashCode() : 0); + result = 31 * result + (textBlock3 != null ? textBlock3.hashCode() : 0); + result = 31 * result + (textBlock4 != null ? textBlock4.hashCode() : 0); + result = 31 * result + (textBlock5 != null ? textBlock5.hashCode() : 0); + result = 31 * result + (date1 != null ? date1.hashCode() : 0); + result = 31 * result + (date2 != null ? date2.hashCode() : 0); + result = 31 * result + (date3 != null ? date3.hashCode() : 0); + result = 31 * result + (date4 != null ? date4.hashCode() : 0); + result = 31 * result + (date5 != null ? date5.hashCode() : 0); + result = 31 * result + (date6 != null ? date6.hashCode() : 0); + result = 31 * result + (date7 != null ? date7.hashCode() : 0); + result = 31 * result + (date8 != null ? date8.hashCode() : 0); + result = 31 * result + (date9 != null ? date9.hashCode() : 0); + result = 31 * result + (date10 != null ? date10.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id="); + sb.append(id); + } + if(text1 != null){ + sb.append(lbc + "text1="); + sb.append(text1); + } + if(text2 != null){ + sb.append(lbc + "text2="); + sb.append(text2); + } + if(text3 != null){ + sb.append(lbc + "text3="); + sb.append(text3); + } + if(text4 != null){ + sb.append(lbc + "text4="); + sb.append(text4); + } + if(text5 != null){ + sb.append(lbc + "text5="); + sb.append(text5); + } + if(text6 != null){ + sb.append(lbc + "text6="); + sb.append(text6); + } + if(text7 != null){ + sb.append(lbc + "text7="); + sb.append(text7); + } + if(text8 != null){ + sb.append(lbc + "text8="); + sb.append(text8); + } + if(text9 != null){ + sb.append(lbc + "text9="); + sb.append(text9); + } + if(text10 != null){ + sb.append(lbc + "text10="); + sb.append(text10); + } + if(text11 != null){ + sb.append(lbc + "text11="); + sb.append(text11); + } + if(text12 != null){ + sb.append(lbc + "text12="); + sb.append(text12); + } + if(text13 != null){ + sb.append(lbc + "text13="); + sb.append(text13); + } + if(text14 != null){ + sb.append(lbc + "text14="); + sb.append(text14); + } + if(text15 != null){ + sb.append(lbc + "text15="); + sb.append(text15); + } + if(text16 != null){ + sb.append(lbc + "text16="); + sb.append(text16); + } + if(text17 != null){ + sb.append(lbc + "text17="); + sb.append(text17); + } + if(text18 != null){ + sb.append(lbc + "text18="); + sb.append(text18); + } + if(text19 != null){ + sb.append(lbc + "text19="); + sb.append(text19); + } + if(text20 != null){ + sb.append(lbc + "text20="); + sb.append(text20); + } + if(int1 != null){ + sb.append(lbc + "int1="); + sb.append(int1); + } + if(int2 != null){ + sb.append(lbc + "int2="); + sb.append(int2); + } + if(int3 != null){ + sb.append(lbc + "int3="); + sb.append(int3); + } + if(int4 != null){ + sb.append(lbc + "int4="); + sb.append(int4); + } + if(int5 != null){ + sb.append(lbc + "int5="); + sb.append(int5); + } + if(int6 != null){ + sb.append(lbc + "int6="); + sb.append(int6); + } + if(int7 != null){ + sb.append(lbc + "int7="); + sb.append(int7); + } + if(int8 != null){ + sb.append(lbc + "int8="); + sb.append(int8); + } + if(int9 != null){ + sb.append(lbc + "int9="); + sb.append(int9); + } + if(int10 != null){ + sb.append(lbc + "int10="); + sb.append(int10); + } + if(float1 != null){ + sb.append(lbc + "float1="); + sb.append(float1); + } + if(float2 != null){ + sb.append(lbc + "float2="); + sb.append(float2); + } + if(float3 != null){ + sb.append(lbc + "float3="); + sb.append(float3); + } + if(float4 != null){ + sb.append(lbc + "float4="); + sb.append(float4); + } + if(float5 != null){ + sb.append(lbc + "float5="); + sb.append(float5); + } + if(float6 != null){ + sb.append(lbc + "float6="); + sb.append(float6); + } + if(float7 != null){ + sb.append(lbc + "float7="); + sb.append(float7); + } + if(float8 != null){ + sb.append(lbc + "float8="); + sb.append(float8); + } + if(float9 != null){ + sb.append(lbc + "float9="); + sb.append(float9); + } + if(float10 != null){ + sb.append(lbc + "float10="); + sb.append(float10); + } + if(textBlock1 != null){ + sb.append(lbc + "textBlock1="); + sb.append(textBlock1); + } + if(textBlock2 != null){ + sb.append(lbc + "textBlock2="); + sb.append(textBlock2); + } + if(textBlock3 != null){ + sb.append(lbc + "textBlock3="); + sb.append(textBlock3); + } + if(textBlock4 != null){ + sb.append(lbc + "textBlock4="); + sb.append(textBlock4); + } + if(textBlock5 != null){ + sb.append(lbc + "textBlock5="); + sb.append(textBlock5); + } + if(date1 != null){ + sb.append(lbc + "date1="); + sb.append(date1); + } + if(date2 != null){ + sb.append(lbc + "date2="); + sb.append(date2); + } + if(date3 != null){ + sb.append(lbc + "date3="); + sb.append(date3); + } + if(date4 != null){ + sb.append(lbc + "date4="); + sb.append(date4); + } + if(date5 != null){ + sb.append(lbc + "date5="); + sb.append(date5); + } + if(date6 != null){ + sb.append(lbc + "date6="); + sb.append(date6); + } + if(date7 != null){ + sb.append(lbc + "date7="); + sb.append(date7); + } + if(date8 != null){ + sb.append(lbc + "date8="); + sb.append(date8); + } + if(date9 != null){ + sb.append(lbc + "date9="); + sb.append(date9); + } + if(date10 != null){ + sb.append(lbc + "date10="); + sb.append(date10); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded="); + sb.append(dateAdded); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified="); + sb.append(dateLastModified); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("id="); + sb.append(id); + sb.append(", text1="); + sb.append(text1); + sb.append(", text2="); + sb.append(text2); + sb.append(", text3="); + sb.append(text3); + sb.append(", text4="); + sb.append(text4); + sb.append(", text5="); + sb.append(text5); + sb.append(", text6="); + sb.append(text6); + sb.append(", text7="); + sb.append(text7); + sb.append(", text8="); + sb.append(text8); + sb.append(", text9="); + sb.append(text9); + sb.append(", text10="); + sb.append(text10); + sb.append(", text11="); + sb.append(text11); + sb.append(", text12="); + sb.append(text12); + sb.append(", text13="); + sb.append(text13); + sb.append(", text14="); + sb.append(text14); + sb.append(", text15="); + sb.append(text15); + sb.append(", text16="); + sb.append(text16); + sb.append(", text17="); + sb.append(text17); + sb.append(", text18="); + sb.append(text18); + sb.append(", text19="); + sb.append(text19); + sb.append(", text20="); + sb.append(text20); + sb.append(", int1="); + sb.append(int1); + sb.append(", int2="); + sb.append(int2); + sb.append(", int3="); + sb.append(int3); + sb.append(", int4="); + sb.append(int4); + sb.append(", int5="); + sb.append(int5); + sb.append(", int6="); + sb.append(int6); + sb.append(", int7="); + sb.append(int7); + sb.append(", int8="); + sb.append(int8); + sb.append(", int9="); + sb.append(int9); + sb.append(", int10="); + sb.append(int10); + sb.append(", float1="); + sb.append(float1); + sb.append(", float2="); + sb.append(float2); + sb.append(", float3="); + sb.append(float3); + sb.append(", float4="); + sb.append(float4); + sb.append(", float5="); + sb.append(float5); + sb.append(", float6="); + sb.append(float6); + sb.append(", float7="); + sb.append(float7); + sb.append(", float8="); + sb.append(float8); + sb.append(", float9="); + sb.append(float9); + sb.append(", float10="); + sb.append(float10); + sb.append(", textBlock1="); + sb.append(textBlock1); + sb.append(", textBlock2="); + sb.append(textBlock2); + sb.append(", textBlock3="); + sb.append(textBlock3); + sb.append(", textBlock4="); + sb.append(textBlock4); + sb.append(", textBlock5="); + sb.append(textBlock5); + sb.append(", date1="); + sb.append(date1); + sb.append(", date2="); + sb.append(date2); + sb.append(", date3="); + sb.append(date3); + sb.append(", date4="); + sb.append(date4); + sb.append(", date5="); + sb.append(date5); + sb.append(", date6="); + sb.append(date6); + sb.append(", date7="); + sb.append(date7); + sb.append(", date8="); + sb.append(date8); + sb.append(", date9="); + sb.append(date9); + sb.append(", date10="); + sb.append(date10); + sb.append(", dateAdded="); + sb.append(dateAdded); + sb.append(", dateLastModified="); + sb.append(dateLastModified); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java index 1ccb85fc..3acfa286 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Appointment.java @@ -1,948 +1,949 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.bullhornsdk.data.validation.BullhornUUID; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "appointmentUUID", "guests", "candidateReference", "childAppointments", "clientContactReference", - "communicationMethod", "dateAdded", "dateBegin", "dateEnd", "dateLastModified", "description", "isAllDay", "isDeleted", - "isPrivate", "jobOrder", "lead", "location", "migrateGUID", "notificationMinutes", "opportunity", "owner", "parentAppointment", "placement", - "recurrenceDayBits", "recurrenceFrequency", "recurrenceMax", "recurrenceMonthBits", "recurrenceStyle", "recurrenceType", - "showTimeAs", "subject", "timeZoneID", "type" }) -public class Appointment extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, - DateLastModifiedEntity, EditHistoryEntity, AssociationEntity { - private Integer id; - - @BullhornUUID - private String appointmentUUID; - - private OneToMany guests; - - private Candidate candidateReference; - - private OneToManyLinkedId childAppointments; - - private ClientContact clientContactReference; - - @JsonIgnore - @Size(max = 30) - private String communicationMethod; - - private DateTime dateAdded; - - private DateTime dateBegin; - - private DateTime dateEnd; - - private DateTime dateLastModified; - - private String description; - - private Boolean isAllDay; - - private Boolean isDeleted; - - private Boolean isPrivate; - - private JobOrder jobOrder; - - private Lead lead; - - @JsonIgnore - @Size(max = 100) - private String location; - - private Object migrateGUID; - - private Integer notificationMinutes; - - private Opportunity opportunity; - - private Person owner; - - private Appointment parentAppointment; - - private Placement placement; - - private Integer recurrenceDayBits; - - private Integer recurrenceFrequency; - - private Integer recurrenceMax; - - private Integer recurrenceMonthBits; - - @Size(max = 10) - private String recurrenceStyle; - - @Size(max = 1) - private String recurrenceType; - - private String showTimeAs; - - @Size(max = 100) - private String subject; - - private String timeZoneID; - - @JsonIgnore - @Size(max = 30) - private String type; - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - public Appointment() { - super(); - - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public Appointment instantiateForInsert() { - Appointment entity = new Appointment(); - entity.setCommunicationMethod("Phone"); - entity.setDateBegin(new DateTime()); - entity.setDateEnd(new DateTime()); - entity.setDescription("Test"); - entity.setIsDeleted(Boolean.FALSE); - entity.setIsPrivate(Boolean.FALSE); - entity.setNotificationMinutes(0); - entity.setSubject("Test"); - entity.setType("Test"); - return entity; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("appointmentUUID") - public String getAppointmentUUID() { - return appointmentUUID; - } - - @JsonProperty("appointmentUUID") - public void setAppointmentUUID(String appointmentUUID) { - this.appointmentUUID = appointmentUUID; - } - - @JsonIgnore - public OneToMany getGuests() { - return guests; - } - - @ReadOnly - @JsonProperty("guests") - public void setGuests(OneToMany guests) { - this.guests = guests; - } - - @JsonProperty("candidateReference") - public Candidate getCandidateReference() { - return candidateReference; - } - - @JsonProperty("candidateReference") - public void setCandidateReference(Candidate candidateReference) { - this.candidateReference = candidateReference; - } - - @JsonIgnore - public OneToManyLinkedId getChildAppointments() { - return childAppointments; - } - - @JsonProperty("childAppointments") - public void setChildAppointments(OneToManyLinkedId childAppointments) { - this.childAppointments = childAppointments; - } - - @JsonProperty("clientContactReference") - public ClientContact getClientContactReference() { - return clientContactReference; - } - - @JsonProperty("clientContactReference") - public void setClientContactReference(ClientContact clientContactReference) { - this.clientContactReference = clientContactReference; - } - - @JsonProperty("communicationMethod") - public String getCommunicationMethod() { - return communicationMethod; - } - - @JsonIgnore - public void setCommunicationMethod(String communicationMethod) { - this.communicationMethod = communicationMethod; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateBegin") - public DateTime getDateBegin() { - return dateBegin; - } - - @JsonProperty("dateBegin") - public void setDateBegin(DateTime dateBegin) { - this.dateBegin = dateBegin; - } - - @JsonProperty("dateEnd") - public DateTime getDateEnd() { - return dateEnd; - } - - @JsonProperty("dateEnd") - public void setDateEnd(DateTime dateEnd) { - this.dateEnd = dateEnd; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonProperty("description") - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("isAllDay") - public Boolean getIsAllDay() { - return isAllDay; - } - - @JsonProperty("isAllDay") - public void setIsAllDay(Boolean isAllDay) { - this.isAllDay = isAllDay; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isPrivate") - public Boolean getIsPrivate() { - return isPrivate; - } - - @JsonProperty("isPrivate") - public void setIsPrivate(Boolean isPrivate) { - this.isPrivate = isPrivate; - } - - @JsonProperty("jobOrder") - public JobOrder getJobOrder() { - return jobOrder; - } - - @JsonProperty("jobOrder") - public void setJobOrder(JobOrder jobOrder) { - this.jobOrder = jobOrder; - } - - @JsonProperty("lead") - public Lead getLead() { - return lead; - } - - @JsonProperty("lead") - public void setLead(Lead lead) { - this.lead = lead; - } - - @JsonProperty("location") - public String getLocation() { - return location; - } - - @JsonIgnore - public void setLocation(String location) { - this.location = location; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonProperty("migrateGUID") - public void setMigrateGUID(Object migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("notificationMinutes") - public Integer getNotificationMinutes() { - return notificationMinutes; - } - - @JsonProperty("notificationMinutes") - public void setNotificationMinutes(Integer notificationMinutes) { - this.notificationMinutes = notificationMinutes; - } - - @JsonProperty("owner") - public Person getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(Person owner) { - this.owner = owner; - } - - @JsonProperty("parentAppointment") - public Appointment getParentAppointment() { - return parentAppointment; - } - - @JsonProperty("parentAppointment") - public void setParentAppointment(Appointment parentAppointment) { - this.parentAppointment = parentAppointment; - } - - @JsonProperty("placement") - public Placement getPlacement() { - return placement; - } - - @JsonProperty("placement") - public void setPlacement(Placement placement) { - this.placement = placement; - } - - @JsonProperty("recurrenceDayBits") - public Integer getRecurrenceDayBits() { - return recurrenceDayBits; - } - - @JsonProperty("recurrenceDayBits") - public void setRecurrenceDayBits(Integer recurrenceDayBits) { - this.recurrenceDayBits = recurrenceDayBits; - } - - @JsonProperty("recurrenceFrequency") - public Integer getRecurrenceFrequency() { - return recurrenceFrequency; - } - - @JsonProperty("recurrenceFrequency") - public void setRecurrenceFrequency(Integer recurrenceFrequency) { - this.recurrenceFrequency = recurrenceFrequency; - } - - @JsonProperty("recurrenceMax") - public Integer getRecurrenceMax() { - return recurrenceMax; - } - - @JsonProperty("recurrenceMax") - public void setRecurrenceMax(Integer recurrenceMax) { - this.recurrenceMax = recurrenceMax; - } - - @JsonProperty("recurrenceMonthBits") - public Integer getRecurrenceMonthBits() { - return recurrenceMonthBits; - } - - @JsonProperty("recurrenceMonthBits") - public void setRecurrenceMonthBits(Integer recurrenceMonthBits) { - this.recurrenceMonthBits = recurrenceMonthBits; - } - - @JsonProperty("recurrenceStyle") - public String getRecurrenceStyle() { - return recurrenceStyle; - } - - @JsonProperty("recurrenceStyle") - public void setRecurrenceStyle(String recurrenceStyle) { - this.recurrenceStyle = recurrenceStyle; - } - - @JsonProperty("recurrenceType") - public String getRecurrenceType() { - return recurrenceType; - } - - @JsonProperty("recurrenceType") - public void setRecurrenceType(String recurrenceType) { - this.recurrenceType = recurrenceType; - } - - @JsonProperty("showTimeAs") - public String getShowTimeAs() { - return showTimeAs; - } - - @JsonProperty("showTimeAs") - public void setShowTimeAs(String showTimeAs) { - this.showTimeAs = showTimeAs; - } - - @JsonProperty("subject") - public String getSubject() { - return subject; - } - - @JsonProperty("subject") - public void setSubject(String subject) { - this.subject = subject; - } - - @JsonProperty("timeZoneID") - public String getTimeZoneID() { - return timeZoneID; - } - - @JsonProperty("timeZoneID") - public void setTimeZoneID(String timeZoneID) { - this.timeZoneID = timeZoneID; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("opportunity") - public Opportunity getOpportunity() { - return opportunity; - } - - @JsonProperty("opportunity") - public void setOpportunity(Opportunity opportunity) { - this.opportunity = opportunity; - } - - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - Appointment that = (Appointment) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (appointmentUUID != null ? !appointmentUUID.equals(that.appointmentUUID) : that.appointmentUUID != null) - return false; - if (guests != null ? !guests.equals(that.guests) : that.guests != null) return false; - if (candidateReference != null ? !candidateReference.equals(that.candidateReference) : that.candidateReference != null) - return false; - if (childAppointments != null ? !childAppointments.equals(that.childAppointments) : that.childAppointments != null) - return false; - if (clientContactReference != null ? !clientContactReference.equals(that.clientContactReference) : that.clientContactReference != null) - return false; - if (communicationMethod != null ? !communicationMethod.equals(that.communicationMethod) : that.communicationMethod != null) - return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateBegin != null ? !dateBegin.equals(that.dateBegin) : that.dateBegin != null) return false; - if (dateEnd != null ? !dateEnd.equals(that.dateEnd) : that.dateEnd != null) return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (description != null ? !description.equals(that.description) : that.description != null) return false; - if (isAllDay != null ? !isAllDay.equals(that.isAllDay) : that.isAllDay != null) return false; - if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; - if (isPrivate != null ? !isPrivate.equals(that.isPrivate) : that.isPrivate != null) return false; - if (jobOrder != null ? !jobOrder.equals(that.jobOrder) : that.jobOrder != null) return false; - if (lead != null ? !lead.equals(that.lead) : that.lead != null) return false; - if (location != null ? !location.equals(that.location) : that.location != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; - if (notificationMinutes != null ? !notificationMinutes.equals(that.notificationMinutes) : that.notificationMinutes != null) - return false; - if (opportunity != null ? !opportunity.equals(that.opportunity) : that.opportunity != null) return false; - if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; - if (parentAppointment != null ? !parentAppointment.equals(that.parentAppointment) : that.parentAppointment != null) - return false; - if (placement != null ? !placement.equals(that.placement) : that.placement != null) return false; - if (recurrenceDayBits != null ? !recurrenceDayBits.equals(that.recurrenceDayBits) : that.recurrenceDayBits != null) - return false; - if (recurrenceFrequency != null ? !recurrenceFrequency.equals(that.recurrenceFrequency) : that.recurrenceFrequency != null) - return false; - if (recurrenceMax != null ? !recurrenceMax.equals(that.recurrenceMax) : that.recurrenceMax != null) - return false; - if (recurrenceMonthBits != null ? !recurrenceMonthBits.equals(that.recurrenceMonthBits) : that.recurrenceMonthBits != null) - return false; - if (recurrenceStyle != null ? !recurrenceStyle.equals(that.recurrenceStyle) : that.recurrenceStyle != null) - return false; - if (recurrenceType != null ? !recurrenceType.equals(that.recurrenceType) : that.recurrenceType != null) - return false; - if (showTimeAs != null ? !showTimeAs.equals(that.showTimeAs) : that.showTimeAs != null) return false; - if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false; - if (timeZoneID != null ? !timeZoneID.equals(that.timeZoneID) : that.timeZoneID != null) return false; - return !(type != null ? !type.equals(that.type) : that.type != null); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("Appointment {\nid="); - builder.append(id); - builder.append(", \nappointmentUUID="); - builder.append(appointmentUUID); - builder.append(", \nguests="); - builder.append(guests); - builder.append(", \ncandidateReference="); - builder.append(candidateReference); - builder.append(", \nchildAppointments="); - builder.append(childAppointments); - builder.append(", \nclientContactReference="); - builder.append(clientContactReference); - builder.append(", \ncommunicationMethod="); - builder.append(communicationMethod); - builder.append(", \ndateAdded="); - builder.append(dateAdded); - builder.append(", \ndateBegin="); - builder.append(dateBegin); - builder.append(", \ndateEnd="); - builder.append(dateEnd); - builder.append(", \ndateLastModified="); - builder.append(dateLastModified); - builder.append(", \ndescription="); - builder.append(description); - builder.append(", \nisAllDay="); - builder.append(isAllDay); - builder.append(", \nisDeleted="); - builder.append(isDeleted); - builder.append(", \nisPrivate="); - builder.append(isPrivate); - builder.append(", \njobOrder="); - builder.append(jobOrder); - builder.append(", \nlocation="); - builder.append(location); - builder.append(", \nmigrateGUID="); - builder.append(migrateGUID); - builder.append(", \nnotificationMinutes="); - builder.append(notificationMinutes); - builder.append(", \nowner="); - builder.append(owner); - builder.append(", \nparentAppointment="); - builder.append(parentAppointment); - builder.append(", \nplacement="); - builder.append(placement); - builder.append(", \nrecurrenceDayBits="); - builder.append(recurrenceDayBits); - builder.append(", \nrecurrenceFrequency="); - builder.append(recurrenceFrequency); - builder.append(", \nrecurrenceMax="); - builder.append(recurrenceMax); - builder.append(", \nrecurrenceMonthBits="); - builder.append(recurrenceMonthBits); - builder.append(", \nrecurrenceStyle="); - builder.append(recurrenceStyle); - builder.append(", \nrecurrenceType="); - builder.append(recurrenceType); - builder.append(", \nshowTimeAs="); - builder.append(showTimeAs); - builder.append(", \nsubject="); - builder.append(subject); - builder.append(", \ntimeZoneID="); - builder.append(timeZoneID); - builder.append(", \ntype="); - builder.append(type); - builder.append(", \nopportunity="); - builder.append(opportunity); - builder.append(", \nadditionalProperties="); - builder.append(this.getAdditionalProperties()); - builder.append("\n}"); - return builder.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - StringBuilder builder = new StringBuilder().append("Appointment { "); - if(includeLineBreaks) - builder.append(" { "); - if(id != null){ - builder.append("id="); - builder.append(id); - } - if(appointmentUUID != null){ - builder.append(lbc + "appointmentUUID="); - builder.append(appointmentUUID); - } - if(guests != null){ - builder.append(lbc + "guests="); - builder.append(guests.toStringNonNull(includeLineBreaks)); - } - if(candidateReference != null){ - builder.append(lbc + "candidateReference="); - builder.append(candidateReference.toStringNonNull(includeLineBreaks)); - } - if(childAppointments != null){ - builder.append(lbc + "childAppointments="); - builder.append(childAppointments.toStringNonNull(includeLineBreaks)); - } - if(clientContactReference != null){ - builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference.toStringNonNull(includeLineBreaks)); - } - if(communicationMethod != null){ - builder.append(lbc + "communicationMethod="); - builder.append(communicationMethod); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(dateBegin != null){ - builder.append(lbc + "dateBegin="); - builder.append(dateBegin); - } - if(dateEnd != null){ - builder.append(lbc + "dateEnd="); - builder.append(dateEnd); - } - if(dateLastModified != null){ - builder.append(lbc + "dateLastModified="); - builder.append(dateLastModified); - } - if(description != null){ - builder.append(lbc + "description="); - builder.append(description); - } - if(isAllDay != null){ - builder.append(lbc + "isAllDay="); - builder.append(isAllDay); - } - if(isDeleted != null){ - builder.append(lbc + "isDeleted="); - builder.append(isDeleted); - } - if(isPrivate != null){ - builder.append(lbc + "isPrivate="); - builder.append(isPrivate); - } - if(jobOrder != null){ - builder.append(lbc + "jobOrder="); - builder.append(jobOrder.toStringNonNull(includeLineBreaks)); - } - if(location != null){ - builder.append(lbc + "location="); - builder.append(location); - } - if(migrateGUID != null){ - builder.append(lbc + "migrateGUID="); - builder.append(migrateGUID); - } - if(notificationMinutes != null){ - builder.append(lbc + "notificationMinutes="); - builder.append(notificationMinutes); - } - if(owner != null){ - builder.append(lbc + "owner="); - builder.append(owner.toStringNonNull(includeLineBreaks)); - } - if(parentAppointment != null){ - builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment.toStringNonNull(includeLineBreaks)); - } - if(placement != null){ - builder.append(lbc + "placement="); - builder.append(placement.toStringNonNull(includeLineBreaks)); - } - if(recurrenceDayBits != null){ - builder.append(lbc + "recurrenceDayBits="); - builder.append(recurrenceDayBits); - } - if(recurrenceFrequency != null){ - builder.append(lbc + "recurrenceFrequency="); - builder.append(recurrenceFrequency); - } - if(recurrenceMax != null){ - builder.append(lbc + "recurrenceMax="); - builder.append(recurrenceMax); - } - if(recurrenceMonthBits != null){ - builder.append(lbc + "recurrenceMonthBits="); - builder.append(recurrenceMonthBits); - } - if(recurrenceStyle != null){ - builder.append(lbc + "recurrenceStyle="); - builder.append(recurrenceStyle); - } - if(recurrenceType != null){ - builder.append(lbc + "recurrenceType="); - builder.append(recurrenceType); - } - if(showTimeAs != null){ - builder.append(lbc + "showTimeAs="); - builder.append(showTimeAs); - } - if(subject != null){ - builder.append(lbc + "subject="); - builder.append(subject); - } - if(timeZoneID != null){ - builder.append(lbc + "timeZoneID="); - builder.append(timeZoneID); - } - if(type != null){ - builder.append(lbc + "type="); - builder.append(type); - } - if(opportunity != null){ - builder.append(lbc + "opportunity="); - builder.append(opportunity.toStringNonNull(includeLineBreaks)); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - if(includeLineBreaks) - builder.append("\n"); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder builder = new StringBuilder(); - builder.append(getClass() + " { "); - if(id != null){ - builder.append("id=").append(id); - } - if(appointmentUUID != null){ - builder.append(lbc + "appointmentUUID="); - builder.append(appointmentUUID); - } - if(guests != null){ - builder.append(lbc + "guests="); - builder.append(guests.toStringNonNull()); - } - if(candidateReference != null){ - builder.append(lbc + "candidateReference="); - builder.append(candidateReference.toStringNonNull()); - } - if(childAppointments != null){ - builder.append(lbc + "childAppointments="); - builder.append(childAppointments.toStringNonNull()); - } - if(clientContactReference != null){ - builder.append(lbc + "clientContactReference="); - builder.append(clientContactReference.toStringNonNull()); - } - if(communicationMethod != null){ - builder.append(lbc + "communicationMethod="); - builder.append(communicationMethod); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(dateBegin != null){ - builder.append(lbc + "dateBegin="); - builder.append(dateBegin); - } - if(dateEnd != null){ - builder.append(lbc + "dateEnd="); - builder.append(dateEnd); - } - if(dateLastModified != null){ - builder.append(lbc + "dateLastModified="); - builder.append(dateLastModified); - } - if(description != null){ - builder.append(lbc + "description="); - builder.append(description); - } - if(isAllDay != null){ - builder.append(lbc + "isAllDay="); - builder.append(isAllDay); - } - if(isDeleted != null){ - builder.append(lbc + "isDeleted="); - builder.append(isDeleted); - } - if(isPrivate != null){ - builder.append(lbc + "isPrivate="); - builder.append(isPrivate); - } - if(jobOrder != null){ - builder.append(lbc + "jobOrder="); - builder.append(jobOrder.toStringNonNull()); - } - if(location != null){ - builder.append(lbc + "location="); - builder.append(location); - } - if(migrateGUID != null){ - builder.append(lbc + "migrateGUID="); - builder.append(migrateGUID); - } - if(notificationMinutes != null){ - builder.append(lbc + "notificationMinutes="); - builder.append(notificationMinutes); - } - if(owner != null){ - builder.append(lbc + "owner="); - builder.append(owner.toStringNonNull()); - } - if(parentAppointment != null){ - builder.append(lbc + "parentAppointment="); - builder.append(parentAppointment.toStringNonNull()); - } - if(placement != null){ - builder.append(lbc + "placement="); - builder.append(placement.toStringNonNull()); - } - if(recurrenceDayBits != null){ - builder.append(lbc + "recurrenceDayBits="); - builder.append(recurrenceDayBits); - } - if(recurrenceFrequency != null){ - builder.append(lbc + "recurrenceFrequency="); - builder.append(recurrenceFrequency); - } - if(recurrenceMax != null){ - builder.append(lbc + "recurrenceMax="); - builder.append(recurrenceMax); - } - if(recurrenceMonthBits != null){ - builder.append(lbc + "recurrenceMonthBits="); - builder.append(recurrenceMonthBits); - } - if(recurrenceStyle != null){ - builder.append(lbc + "recurrenceStyle="); - builder.append(recurrenceStyle); - } - if(recurrenceType != null){ - builder.append(lbc + "recurrenceType="); - builder.append(recurrenceType); - } - if(showTimeAs != null){ - builder.append(lbc + "showTimeAs="); - builder.append(showTimeAs); - } - if(subject != null){ - builder.append(lbc + "subject="); - builder.append(subject); - } - if(timeZoneID != null){ - builder.append(lbc + "timeZoneID="); - builder.append(timeZoneID); - } - if(type != null){ - builder.append(lbc + "type="); - builder.append(type); - } - if(opportunity != null){ - builder.append(lbc + "opportunity="); - builder.append(opportunity.toStringNonNull()); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - - builder.append(lbc + "}"); - return builder.toString(); - } - - @Override - public int hashCode() { - int result = id != null ? id.hashCode() : 0; - result = 31 * result + (appointmentUUID != null ? appointmentUUID.hashCode() : 0); - result = 31 * result + (guests != null ? guests.hashCode() : 0); - result = 31 * result + (candidateReference != null ? candidateReference.hashCode() : 0); - result = 31 * result + (childAppointments != null ? childAppointments.hashCode() : 0); - result = 31 * result + (clientContactReference != null ? clientContactReference.hashCode() : 0); - result = 31 * result + (communicationMethod != null ? communicationMethod.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateBegin != null ? dateBegin.hashCode() : 0); - result = 31 * result + (dateEnd != null ? dateEnd.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (isAllDay != null ? isAllDay.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isPrivate != null ? isPrivate.hashCode() : 0); - result = 31 * result + (jobOrder != null ? jobOrder.hashCode() : 0); - result = 31 * result + (lead != null ? lead.hashCode() : 0); - result = 31 * result + (location != null ? location.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (notificationMinutes != null ? notificationMinutes.hashCode() : 0); - result = 31 * result + (opportunity != null ? opportunity.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (parentAppointment != null ? parentAppointment.hashCode() : 0); - result = 31 * result + (placement != null ? placement.hashCode() : 0); - result = 31 * result + (recurrenceDayBits != null ? recurrenceDayBits.hashCode() : 0); - result = 31 * result + (recurrenceFrequency != null ? recurrenceFrequency.hashCode() : 0); - result = 31 * result + (recurrenceMax != null ? recurrenceMax.hashCode() : 0); - result = 31 * result + (recurrenceMonthBits != null ? recurrenceMonthBits.hashCode() : 0); - result = 31 * result + (recurrenceStyle != null ? recurrenceStyle.hashCode() : 0); - result = 31 * result + (recurrenceType != null ? recurrenceType.hashCode() : 0); - result = 31 * result + (showTimeAs != null ? showTimeAs.hashCode() : 0); - result = 31 * result + (subject != null ? subject.hashCode() : 0); - result = 31 * result + (timeZoneID != null ? timeZoneID.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - return result; - } - - - -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.bullhornsdk.data.validation.BullhornUUID; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "appointmentUUID", "guests", "candidateReference", "childAppointments", "clientContactReference", + "communicationMethod", "dateAdded", "dateBegin", "dateEnd", "dateLastModified", "description", "isAllDay", "isDeleted", + "isPrivate", "jobOrder", "lead", "location", "migrateGUID", "notificationMinutes", "opportunity", "owner", "parentAppointment", "placement", + "recurrenceDayBits", "recurrenceFrequency", "recurrenceMax", "recurrenceMonthBits", "recurrenceStyle", "recurrenceType", + "showTimeAs", "subject", "timeZoneID", "type" }) +public class Appointment extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, + DateLastModifiedEntity, EditHistoryEntity, AssociationEntity { + private Integer id; + + @BullhornUUID + private String appointmentUUID; + + private OneToMany guests; + + private Candidate candidateReference; + + private OneToManyLinkedId childAppointments; + + private ClientContact clientContactReference; + + @JsonIgnore + @Size(max = 30) + private String communicationMethod; + + private DateTime dateAdded; + + private DateTime dateBegin; + + private DateTime dateEnd; + + private DateTime dateLastModified; + + private String description; + + private Boolean isAllDay; + + private Boolean isDeleted; + + private Boolean isPrivate; + + private JobOrder jobOrder; + + private Lead lead; + + @JsonIgnore + @Size(max = 100) + private String location; + + private Object migrateGUID; + + private Integer notificationMinutes; + + private Opportunity opportunity; + + private Person owner; + + private Appointment parentAppointment; + + private Placement placement; + + private Integer recurrenceDayBits; + + private Integer recurrenceFrequency; + + private Integer recurrenceMax; + + private Integer recurrenceMonthBits; + + @Size(max = 10) + private String recurrenceStyle; + + @Size(max = 1) + private String recurrenceType; + + private String showTimeAs; + + @Size(max = 100) + private String subject; + + private String timeZoneID; + + @JsonIgnore + @Size(max = 30) + private String type; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + public Appointment() { + super(); + + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public Appointment instantiateForInsert() { + Appointment entity = new Appointment(); + entity.setCommunicationMethod("Phone"); + entity.setDateBegin(new DateTime()); + entity.setDateEnd(new DateTime()); + entity.setDescription("Test"); + entity.setIsDeleted(Boolean.FALSE); + entity.setIsPrivate(Boolean.FALSE); + entity.setNotificationMinutes(0); + entity.setSubject("Test"); + entity.setType("Test"); + return entity; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("appointmentUUID") + public String getAppointmentUUID() { + return appointmentUUID; + } + + @JsonProperty("appointmentUUID") + public void setAppointmentUUID(String appointmentUUID) { + this.appointmentUUID = appointmentUUID; + } + + @JsonIgnore + public OneToMany getGuests() { + return guests; + } + + @ReadOnly + @JsonProperty("guests") + public void setGuests(OneToMany guests) { + this.guests = guests; + } + + @JsonProperty("candidateReference") + public Candidate getCandidateReference() { + return candidateReference; + } + + @JsonProperty("candidateReference") + public void setCandidateReference(Candidate candidateReference) { + this.candidateReference = candidateReference; + } + + @JsonIgnore + public OneToManyLinkedId getChildAppointments() { + return childAppointments; + } + + @JsonProperty("childAppointments") + public void setChildAppointments(OneToManyLinkedId childAppointments) { + this.childAppointments = childAppointments; + } + + @JsonProperty("clientContactReference") + public ClientContact getClientContactReference() { + return clientContactReference; + } + + @JsonProperty("clientContactReference") + public void setClientContactReference(ClientContact clientContactReference) { + this.clientContactReference = clientContactReference; + } + + @JsonProperty("communicationMethod") + public String getCommunicationMethod() { + return communicationMethod; + } + + @JsonIgnore + public void setCommunicationMethod(String communicationMethod) { + this.communicationMethod = communicationMethod; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateBegin") + public DateTime getDateBegin() { + return dateBegin; + } + + @JsonProperty("dateBegin") + public void setDateBegin(DateTime dateBegin) { + this.dateBegin = dateBegin; + } + + @JsonProperty("dateEnd") + public DateTime getDateEnd() { + return dateEnd; + } + + @JsonProperty("dateEnd") + public void setDateEnd(DateTime dateEnd) { + this.dateEnd = dateEnd; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("isAllDay") + public Boolean getIsAllDay() { + return isAllDay; + } + + @JsonProperty("isAllDay") + public void setIsAllDay(Boolean isAllDay) { + this.isAllDay = isAllDay; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isPrivate") + public Boolean getIsPrivate() { + return isPrivate; + } + + @JsonProperty("isPrivate") + public void setIsPrivate(Boolean isPrivate) { + this.isPrivate = isPrivate; + } + + @JsonProperty("jobOrder") + public JobOrder getJobOrder() { + return jobOrder; + } + + @JsonProperty("jobOrder") + public void setJobOrder(JobOrder jobOrder) { + this.jobOrder = jobOrder; + } + + @JsonProperty("lead") + public Lead getLead() { + return lead; + } + + @JsonProperty("lead") + public void setLead(Lead lead) { + this.lead = lead; + } + + @JsonProperty("location") + public String getLocation() { + return location; + } + + @JsonIgnore + public void setLocation(String location) { + this.location = location; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonProperty("migrateGUID") + public void setMigrateGUID(Object migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("notificationMinutes") + public Integer getNotificationMinutes() { + return notificationMinutes; + } + + @JsonProperty("notificationMinutes") + public void setNotificationMinutes(Integer notificationMinutes) { + this.notificationMinutes = notificationMinutes; + } + + @JsonProperty("owner") + public Person getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(Person owner) { + this.owner = owner; + } + + @JsonProperty("parentAppointment") + public Appointment getParentAppointment() { + return parentAppointment; + } + + @JsonProperty("parentAppointment") + public void setParentAppointment(Appointment parentAppointment) { + this.parentAppointment = parentAppointment; + } + + @JsonProperty("placement") + public Placement getPlacement() { + return placement; + } + + @JsonProperty("placement") + public void setPlacement(Placement placement) { + this.placement = placement; + } + + @JsonProperty("recurrenceDayBits") + public Integer getRecurrenceDayBits() { + return recurrenceDayBits; + } + + @JsonProperty("recurrenceDayBits") + public void setRecurrenceDayBits(Integer recurrenceDayBits) { + this.recurrenceDayBits = recurrenceDayBits; + } + + @JsonProperty("recurrenceFrequency") + public Integer getRecurrenceFrequency() { + return recurrenceFrequency; + } + + @JsonProperty("recurrenceFrequency") + public void setRecurrenceFrequency(Integer recurrenceFrequency) { + this.recurrenceFrequency = recurrenceFrequency; + } + + @JsonProperty("recurrenceMax") + public Integer getRecurrenceMax() { + return recurrenceMax; + } + + @JsonProperty("recurrenceMax") + public void setRecurrenceMax(Integer recurrenceMax) { + this.recurrenceMax = recurrenceMax; + } + + @JsonProperty("recurrenceMonthBits") + public Integer getRecurrenceMonthBits() { + return recurrenceMonthBits; + } + + @JsonProperty("recurrenceMonthBits") + public void setRecurrenceMonthBits(Integer recurrenceMonthBits) { + this.recurrenceMonthBits = recurrenceMonthBits; + } + + @JsonProperty("recurrenceStyle") + public String getRecurrenceStyle() { + return recurrenceStyle; + } + + @JsonProperty("recurrenceStyle") + public void setRecurrenceStyle(String recurrenceStyle) { + this.recurrenceStyle = recurrenceStyle; + } + + @JsonProperty("recurrenceType") + public String getRecurrenceType() { + return recurrenceType; + } + + @JsonProperty("recurrenceType") + public void setRecurrenceType(String recurrenceType) { + this.recurrenceType = recurrenceType; + } + + @JsonProperty("showTimeAs") + public String getShowTimeAs() { + return showTimeAs; + } + + @JsonProperty("showTimeAs") + public void setShowTimeAs(String showTimeAs) { + this.showTimeAs = showTimeAs; + } + + @JsonProperty("subject") + public String getSubject() { + return subject; + } + + @JsonProperty("subject") + public void setSubject(String subject) { + this.subject = subject; + } + + @JsonProperty("timeZoneID") + public String getTimeZoneID() { + return timeZoneID; + } + + @JsonProperty("timeZoneID") + public void setTimeZoneID(String timeZoneID) { + this.timeZoneID = timeZoneID; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("opportunity") + public Opportunity getOpportunity() { + return opportunity; + } + + @JsonProperty("opportunity") + public void setOpportunity(Opportunity opportunity) { + this.opportunity = opportunity; + } + + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Appointment that = (Appointment) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (appointmentUUID != null ? !appointmentUUID.equals(that.appointmentUUID) : that.appointmentUUID != null) + return false; + if (guests != null ? !guests.equals(that.guests) : that.guests != null) return false; + if (candidateReference != null ? !candidateReference.equals(that.candidateReference) : that.candidateReference != null) + return false; + if (childAppointments != null ? !childAppointments.equals(that.childAppointments) : that.childAppointments != null) + return false; + if (clientContactReference != null ? !clientContactReference.equals(that.clientContactReference) : that.clientContactReference != null) + return false; + if (communicationMethod != null ? !communicationMethod.equals(that.communicationMethod) : that.communicationMethod != null) + return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateBegin != null ? !dateBegin.equals(that.dateBegin) : that.dateBegin != null) return false; + if (dateEnd != null ? !dateEnd.equals(that.dateEnd) : that.dateEnd != null) return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (description != null ? !description.equals(that.description) : that.description != null) return false; + if (isAllDay != null ? !isAllDay.equals(that.isAllDay) : that.isAllDay != null) return false; + if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; + if (isPrivate != null ? !isPrivate.equals(that.isPrivate) : that.isPrivate != null) return false; + if (jobOrder != null ? !jobOrder.equals(that.jobOrder) : that.jobOrder != null) return false; + if (lead != null ? !lead.equals(that.lead) : that.lead != null) return false; + if (location != null ? !location.equals(that.location) : that.location != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; + if (notificationMinutes != null ? !notificationMinutes.equals(that.notificationMinutes) : that.notificationMinutes != null) + return false; + if (opportunity != null ? !opportunity.equals(that.opportunity) : that.opportunity != null) return false; + if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; + if (parentAppointment != null ? !parentAppointment.equals(that.parentAppointment) : that.parentAppointment != null) + return false; + if (placement != null ? !placement.equals(that.placement) : that.placement != null) return false; + if (recurrenceDayBits != null ? !recurrenceDayBits.equals(that.recurrenceDayBits) : that.recurrenceDayBits != null) + return false; + if (recurrenceFrequency != null ? !recurrenceFrequency.equals(that.recurrenceFrequency) : that.recurrenceFrequency != null) + return false; + if (recurrenceMax != null ? !recurrenceMax.equals(that.recurrenceMax) : that.recurrenceMax != null) + return false; + if (recurrenceMonthBits != null ? !recurrenceMonthBits.equals(that.recurrenceMonthBits) : that.recurrenceMonthBits != null) + return false; + if (recurrenceStyle != null ? !recurrenceStyle.equals(that.recurrenceStyle) : that.recurrenceStyle != null) + return false; + if (recurrenceType != null ? !recurrenceType.equals(that.recurrenceType) : that.recurrenceType != null) + return false; + if (showTimeAs != null ? !showTimeAs.equals(that.showTimeAs) : that.showTimeAs != null) return false; + if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false; + if (timeZoneID != null ? !timeZoneID.equals(that.timeZoneID) : that.timeZoneID != null) return false; + return !(type != null ? !type.equals(that.type) : that.type != null); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append("Appointment {\nid="); + builder.append(id); + builder.append(", \nappointmentUUID="); + builder.append(appointmentUUID); + builder.append(", \nguests="); + builder.append(guests); + builder.append(", \ncandidateReference="); + builder.append(candidateReference); + builder.append(", \nchildAppointments="); + builder.append(childAppointments); + builder.append(", \nclientContactReference="); + builder.append(clientContactReference); + builder.append(", \ncommunicationMethod="); + builder.append(communicationMethod); + builder.append(", \ndateAdded="); + builder.append(dateAdded); + builder.append(", \ndateBegin="); + builder.append(dateBegin); + builder.append(", \ndateEnd="); + builder.append(dateEnd); + builder.append(", \ndateLastModified="); + builder.append(dateLastModified); + builder.append(", \ndescription="); + builder.append(description); + builder.append(", \nisAllDay="); + builder.append(isAllDay); + builder.append(", \nisDeleted="); + builder.append(isDeleted); + builder.append(", \nisPrivate="); + builder.append(isPrivate); + builder.append(", \njobOrder="); + builder.append(jobOrder); + builder.append(", \nlocation="); + builder.append(location); + builder.append(", \nmigrateGUID="); + builder.append(migrateGUID); + builder.append(", \nnotificationMinutes="); + builder.append(notificationMinutes); + builder.append(", \nowner="); + builder.append(owner); + builder.append(", \nparentAppointment="); + builder.append(parentAppointment); + builder.append(", \nplacement="); + builder.append(placement); + builder.append(", \nrecurrenceDayBits="); + builder.append(recurrenceDayBits); + builder.append(", \nrecurrenceFrequency="); + builder.append(recurrenceFrequency); + builder.append(", \nrecurrenceMax="); + builder.append(recurrenceMax); + builder.append(", \nrecurrenceMonthBits="); + builder.append(recurrenceMonthBits); + builder.append(", \nrecurrenceStyle="); + builder.append(recurrenceStyle); + builder.append(", \nrecurrenceType="); + builder.append(recurrenceType); + builder.append(", \nshowTimeAs="); + builder.append(showTimeAs); + builder.append(", \nsubject="); + builder.append(subject); + builder.append(", \ntimeZoneID="); + builder.append(timeZoneID); + builder.append(", \ntype="); + builder.append(type); + builder.append(", \nopportunity="); + builder.append(opportunity); + builder.append(", \nadditionalProperties="); + builder.append(this.getAdditionalProperties()); + builder.append("\n}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append("id="); + builder.append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests.toStringNonNull(includeLineBreaks)); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference.toStringNonNull(includeLineBreaks)); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments.toStringNonNull(includeLineBreaks)); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference.toStringNonNull(includeLineBreaks)); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder.toStringNonNull(includeLineBreaks)); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner.toStringNonNull(includeLineBreaks)); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment.toStringNonNull(includeLineBreaks)); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement.toStringNonNull(includeLineBreaks)); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity.toStringNonNull(includeLineBreaks)); + } + builder.append(super.toStringNonNull(includeLineBreaks)); + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + builder.append("id=").append(id); + } + if(appointmentUUID != null){ + builder.append(lbc + "appointmentUUID="); + builder.append(appointmentUUID); + } + if(guests != null){ + builder.append(lbc + "guests="); + builder.append(guests.toStringNonNull()); + } + if(candidateReference != null){ + builder.append(lbc + "candidateReference="); + builder.append(candidateReference.toStringNonNull()); + } + if(childAppointments != null){ + builder.append(lbc + "childAppointments="); + builder.append(childAppointments.toStringNonNull()); + } + if(clientContactReference != null){ + builder.append(lbc + "clientContactReference="); + builder.append(clientContactReference.toStringNonNull()); + } + if(communicationMethod != null){ + builder.append(lbc + "communicationMethod="); + builder.append(communicationMethod); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(dateBegin != null){ + builder.append(lbc + "dateBegin="); + builder.append(dateBegin); + } + if(dateEnd != null){ + builder.append(lbc + "dateEnd="); + builder.append(dateEnd); + } + if(dateLastModified != null){ + builder.append(lbc + "dateLastModified="); + builder.append(dateLastModified); + } + if(description != null){ + builder.append(lbc + "description="); + builder.append(description); + } + if(isAllDay != null){ + builder.append(lbc + "isAllDay="); + builder.append(isAllDay); + } + if(isDeleted != null){ + builder.append(lbc + "isDeleted="); + builder.append(isDeleted); + } + if(isPrivate != null){ + builder.append(lbc + "isPrivate="); + builder.append(isPrivate); + } + if(jobOrder != null){ + builder.append(lbc + "jobOrder="); + builder.append(jobOrder.toStringNonNull()); + } + if(location != null){ + builder.append(lbc + "location="); + builder.append(location); + } + if(migrateGUID != null){ + builder.append(lbc + "migrateGUID="); + builder.append(migrateGUID); + } + if(notificationMinutes != null){ + builder.append(lbc + "notificationMinutes="); + builder.append(notificationMinutes); + } + if(owner != null){ + builder.append(lbc + "owner="); + builder.append(owner.toStringNonNull()); + } + if(parentAppointment != null){ + builder.append(lbc + "parentAppointment="); + builder.append(parentAppointment.toStringNonNull()); + } + if(placement != null){ + builder.append(lbc + "placement="); + builder.append(placement.toStringNonNull()); + } + if(recurrenceDayBits != null){ + builder.append(lbc + "recurrenceDayBits="); + builder.append(recurrenceDayBits); + } + if(recurrenceFrequency != null){ + builder.append(lbc + "recurrenceFrequency="); + builder.append(recurrenceFrequency); + } + if(recurrenceMax != null){ + builder.append(lbc + "recurrenceMax="); + builder.append(recurrenceMax); + } + if(recurrenceMonthBits != null){ + builder.append(lbc + "recurrenceMonthBits="); + builder.append(recurrenceMonthBits); + } + if(recurrenceStyle != null){ + builder.append(lbc + "recurrenceStyle="); + builder.append(recurrenceStyle); + } + if(recurrenceType != null){ + builder.append(lbc + "recurrenceType="); + builder.append(recurrenceType); + } + if(showTimeAs != null){ + builder.append(lbc + "showTimeAs="); + builder.append(showTimeAs); + } + if(subject != null){ + builder.append(lbc + "subject="); + builder.append(subject); + } + if(timeZoneID != null){ + builder.append(lbc + "timeZoneID="); + builder.append(timeZoneID); + } + if(type != null){ + builder.append(lbc + "type="); + builder.append(type); + } + if(opportunity != null){ + builder.append(lbc + "opportunity="); + builder.append(opportunity.toStringNonNull()); + } + builder.append(super.toStringNonNull()); + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + + builder.append(lbc + "}"); + return builder.toString(); + } + + @Override + public int hashCode() { + int result = id != null ? id.hashCode() : 0; + result = 31 * result + (appointmentUUID != null ? appointmentUUID.hashCode() : 0); + result = 31 * result + (guests != null ? guests.hashCode() : 0); + result = 31 * result + (candidateReference != null ? candidateReference.hashCode() : 0); + result = 31 * result + (childAppointments != null ? childAppointments.hashCode() : 0); + result = 31 * result + (clientContactReference != null ? clientContactReference.hashCode() : 0); + result = 31 * result + (communicationMethod != null ? communicationMethod.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateBegin != null ? dateBegin.hashCode() : 0); + result = 31 * result + (dateEnd != null ? dateEnd.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (isAllDay != null ? isAllDay.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isPrivate != null ? isPrivate.hashCode() : 0); + result = 31 * result + (jobOrder != null ? jobOrder.hashCode() : 0); + result = 31 * result + (lead != null ? lead.hashCode() : 0); + result = 31 * result + (location != null ? location.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (notificationMinutes != null ? notificationMinutes.hashCode() : 0); + result = 31 * result + (opportunity != null ? opportunity.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (parentAppointment != null ? parentAppointment.hashCode() : 0); + result = 31 * result + (placement != null ? placement.hashCode() : 0); + result = 31 * result + (recurrenceDayBits != null ? recurrenceDayBits.hashCode() : 0); + result = 31 * result + (recurrenceFrequency != null ? recurrenceFrequency.hashCode() : 0); + result = 31 * result + (recurrenceMax != null ? recurrenceMax.hashCode() : 0); + result = 31 * result + (recurrenceMonthBits != null ? recurrenceMonthBits.hashCode() : 0); + result = 31 * result + (recurrenceStyle != null ? recurrenceStyle.hashCode() : 0); + result = 31 * result + (recurrenceType != null ? recurrenceType.hashCode() : 0); + result = 31 * result + (showTimeAs != null ? showTimeAs.hashCode() : 0); + result = 31 * result + (subject != null ? subject.hashCode() : 0); + result = 31 * result + (timeZoneID != null ? timeZoneID.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + return result; + } + + + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java index 68e95562..05b1ec8c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java @@ -1,1155 +1,1040 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import org.joda.time.DateTime; - -import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.BaseCustomFields; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -import java.math.BigDecimal; - -/** - * Created by john.sullivan on 10/7/2017. - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({"id", "name", "isDeleted", "parentBranch", "externalID", "dateAdded", "customText1", "customText2", "customText3", - "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customText10", "customTextBlock1", - "customTextBlock2", "customTextBlock3", "customDate1", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", - "customFloat1", "customFloat2", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customInt1", "customInt2", "customInt3", - "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customInt10", "ancestors", "descendants", "corporateUsers"}) -public class Branch extends BaseCustomFields implements AllRecordsEntity, CreateEntity, UpdateEntity, QueryEntity, SoftDeleteEntity, AssociationEntity { - - private Integer id; - - private String name; - - private Boolean isDeleted; - - private Branch parentBranch; - - private String externalID; - - private DateTime dateAdded; - - private String customText1; - - private String customText2; - - private String customText3; - - private String customText4; - - private String customText5; - - private String customText6; - - private String customText7; - - private String customText8; - - private String customText9; - - private String customText10; - - private String customTextBlock1; - - private String customTextBlock2; - - private String customTextBlock3; - - private DateTime customDate1; - - private DateTime customDate2; - - private DateTime customDate3; - - private DateTime customDate4; - - private DateTime customDate5; - - private DateTime customDate6; - - private BigDecimal customFloat1; - - private BigDecimal customFloat2; - - private BigDecimal customFloat3; - - private BigDecimal customFloat4; - - private BigDecimal customFloat5; - - private BigDecimal customFloat6; - - private Integer customInt1; - - private Integer customInt2; - - private Integer customInt3; - - private Integer customInt4; - - private Integer customInt5; - - private Integer customInt6; - - private Integer customInt7; - - private Integer customInt8; - - private Integer customInt9; - - private Integer customInt10; - - private OneToMany ancestors; - - private OneToMany descendants; - - private OneToMany corporateUsers; - - @JsonProperty("id") - @Override - public Integer getId() { - return id; - } - - @JsonProperty("id") - @Override - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @JsonProperty("isDeleted") - @Override - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("parentBranch") - public Branch getParentBranch() { - return parentBranch; - } - - @JsonProperty("parentBranch") - public void setParentBranch(Branch parentBranch) { - this.parentBranch = parentBranch; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonProperty("externalID") - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("customText1") - public String getCustomText1() { - return customText1; - } - - @JsonProperty("customText1") - public void setCustomText1(String customText1) { - this.customText1 = customText1; - } - - @JsonProperty("customText2") - public String getCustomText2() { - return customText2; - } - - @JsonProperty("customText2") - public void setCustomText2(String customText2) { - this.customText2 = customText2; - } - - @JsonProperty("customText3") - public String getCustomText3() { - return customText3; - } - - @JsonProperty("customText3") - public void setCustomText3(String customText3) { - this.customText3 = customText3; - } - - @JsonProperty("customText4") - public String getCustomText4() { - return customText4; - } - - @JsonProperty("customText4") - public void setCustomText4(String customText4) { - this.customText4 = customText4; - } - - @JsonProperty("customText5") - public String getCustomText5() { - return customText5; - } - - @JsonProperty("customText5") - public void setCustomText5(String customText5) { - this.customText5 = customText5; - } - - @JsonProperty("customText6") - public String getCustomText6() { - return customText6; - } - - @JsonProperty("customText6") - public void setCustomText6(String customText6) { - this.customText6 = customText6; - } - - @JsonProperty("customText7") - public String getCustomText7() { - return customText7; - } - - @JsonProperty("customText7") - public void setCustomText7(String customText7) { - this.customText7 = customText7; - } - - @JsonProperty("customText8") - public String getCustomText8() { - return customText8; - } - - @JsonProperty("customText8") - public void setCustomText8(String customText8) { - this.customText8 = customText8; - } - - @JsonProperty("customText9") - public String getCustomText9() { - return customText9; - } - - @JsonProperty("customText9") - public void setCustomText9(String customText9) { - this.customText9 = customText9; - } - - @JsonProperty("customText10") - public String getCustomText10() { - return customText10; - } - - @JsonProperty("customText10") - public void setCustomText10(String customText10) { - this.customText10 = customText10; - } - - @JsonProperty("customTextBlock1") - public String getCustomTextBlock1() { - return customTextBlock1; - } - - @JsonProperty("customTextBlock1") - public void setCustomTextBlock1(String customTextBlock1) { - this.customTextBlock1 = customTextBlock1; - } - - @JsonProperty("customTextBlock2") - public String getCustomTextBlock2() { - return customTextBlock2; - } - - @JsonProperty("customTextBlock2") - public void setCustomTextBlock2(String customTextBlock2) { - this.customTextBlock2 = customTextBlock2; - } - - @JsonProperty("customTextBlock3") - public String getCustomTextBlock3() { - return customTextBlock3; - } - - @JsonProperty("customTextBlock3") - public void setCustomTextBlock3(String customTextBlock3) { - this.customTextBlock3 = customTextBlock3; - } - - @JsonProperty("customDate1") - public DateTime getCustomDate1() { - return customDate1; - } - - @JsonProperty("customDate1") - public void setCustomDate1(DateTime customDate1) { - this.customDate1 = customDate1; - } - - @JsonProperty("customDate2") - public DateTime getCustomDate2() { - return customDate2; - } - - @JsonProperty("customDate2") - public void setCustomDate2(DateTime customDate2) { - this.customDate2 = customDate2; - } - - @JsonProperty("customDate3") - public DateTime getCustomDate3() { - return customDate3; - } - - @JsonProperty("customDate3") - public void setCustomDate3(DateTime customDate3) { - this.customDate3 = customDate3; - } - - @JsonProperty("customDate4") - public DateTime getCustomDate4() { - return customDate4; - } - - @JsonProperty("customDate4") - public void setCustomDate4(DateTime customDate4) { - this.customDate4 = customDate4; - } - - @JsonProperty("customDate5") - public DateTime getCustomDate5() { - return customDate5; - } - - @JsonProperty("customDate5") - public void setCustomDate5(DateTime customDate5) { - this.customDate5 = customDate5; - } - - @JsonProperty("customDate6") - public DateTime getCustomDate6() { - return customDate6; - } - - @JsonProperty("customDate6") - public void setCustomDate6(DateTime customDate6) { - this.customDate6 = customDate6; - } - - @JsonProperty("customFloat1") - public BigDecimal getCustomFloat1() { - return customFloat1; - } - - @JsonProperty("customFloat1") - public void setCustomFloat1(BigDecimal customFloat1) { - this.customFloat1 = customFloat1; - } - - @JsonProperty("customFloat2") - public BigDecimal getCustomFloat2() { - return customFloat2; - } - - @JsonProperty("customFloat2") - public void setCustomFloat2(BigDecimal customFloat2) { - this.customFloat2 = customFloat2; - } - - @JsonProperty("customFloat3") - public BigDecimal getCustomFloat3() { - return customFloat3; - } - - @JsonProperty("customFloat3") - public void setCustomFloat3(BigDecimal customFloat3) { - this.customFloat3 = customFloat3; - } - - @JsonProperty("customFloat4") - public BigDecimal getCustomFloat4() { - return customFloat4; - } - - @JsonProperty("customFloat4") - public void setCustomFloat4(BigDecimal customFloat4) { - this.customFloat4 = customFloat4; - } - - @JsonProperty("customFloat5") - public BigDecimal getCustomFloat5() { - return customFloat5; - } - - @JsonProperty("customFloat5") - public void setCustomFloat5(BigDecimal customFloat5) { - this.customFloat5 = customFloat5; - } - - @JsonProperty("customFloat6") - public BigDecimal getCustomFloat6() { - return customFloat6; - } - - @JsonProperty("customFloat6") - public void setCustomFloat6(BigDecimal customFloat6) { - this.customFloat6 = customFloat6; - } - - @JsonProperty("customInt1") - public Integer getCustomInt1() { - return customInt1; - } - - @JsonProperty("customInt1") - public void setCustomInt1(Integer customInt1) { - this.customInt1 = customInt1; - } - - @JsonProperty("customInt2") - public Integer getCustomInt2() { - return customInt2; - } - - @JsonProperty("customInt2") - public void setCustomInt2(Integer customInt2) { - this.customInt2 = customInt2; - } - - @JsonProperty("customInt3") - public Integer getCustomInt3() { - return customInt3; - } - - @JsonProperty("customInt3") - public void setCustomInt3(Integer customInt3) { - this.customInt3 = customInt3; - } - - @JsonProperty("customInt4") - public Integer getCustomInt4() { - return customInt4; - } - - @JsonProperty("customInt4") - public void setCustomInt4(Integer customInt4) { - this.customInt4 = customInt4; - } - - @JsonProperty("customInt5") - public Integer getCustomInt5() { - return customInt5; - } - - @JsonProperty("customInt5") - public void setCustomInt5(Integer customInt5) { - this.customInt5 = customInt5; - } - - @JsonProperty("customInt6") - public Integer getCustomInt6() { - return customInt6; - } - - @JsonProperty("customInt6") - public void setCustomInt6(Integer customInt6) { - this.customInt6 = customInt6; - } - - @JsonProperty("customInt7") - public Integer getCustomInt7() { - return customInt7; - } - - @JsonProperty("customInt7") - public void setCustomInt7(Integer customInt7) { - this.customInt7 = customInt7; - } - - @JsonProperty("customInt8") - public Integer getCustomInt8() { - return customInt8; - } - - @JsonProperty("customInt8") - public void setCustomInt8(Integer customInt8) { - this.customInt8 = customInt8; - } - - @JsonProperty("customInt9") - public Integer getCustomInt9() { - return customInt9; - } - - @JsonProperty("customInt9") - public void setCustomInt9(Integer customInt9) { - this.customInt9 = customInt9; - } - - @JsonProperty("customInt10") - public Integer getCustomInt10() { - return customInt10; - } - - @JsonProperty("customInt10") - public void setCustomInt10(Integer customInt10) { - this.customInt10 = customInt10; - } - - @JsonProperty("ancestors") - public OneToMany getAncestors() { - return ancestors; - } - - @JsonProperty("ancestors") - @ReadOnly - public void setAncestors(OneToMany ancestors) { - this.ancestors = ancestors; - } - - @JsonProperty("descendants") - public OneToMany getDescendants() { - return descendants; - } - - @JsonProperty("descendants") - @ReadOnly - public void setDescendants(OneToMany descendants) { - this.descendants = descendants; - } - - @JsonProperty("corporateUsers") - public OneToMany getCorporateUsers() { - return corporateUsers; - } - - @JsonProperty("corporateUsers") - @ReadOnly - public void setCorporateUsers(OneToMany corporateUsers) { - this.corporateUsers = corporateUsers; - } - - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof Branch)) return false; - if (!super.equals(o)) return false; - - Branch branch = (Branch) o; - - if (id != null ? !id.equals(branch.id) : branch.id != null) return false; - if (name != null ? !name.equals(branch.name) : branch.name != null) return false; - if (isDeleted != null ? !isDeleted.equals(branch.isDeleted) : branch.isDeleted != null) return false; - if (parentBranch != null ? !parentBranch.equals(branch.parentBranch) : branch.parentBranch != null) - return false; - if (externalID != null ? !externalID.equals(branch.externalID) : branch.externalID != null) return false; - if (dateAdded != null ? !dateAdded.equals(branch.dateAdded) : branch.dateAdded != null) return false; - if (customText1 != null ? !customText1.equals(branch.customText1) : branch.customText1 != null) return false; - if (customText2 != null ? !customText2.equals(branch.customText2) : branch.customText2 != null) return false; - if (customText3 != null ? !customText3.equals(branch.customText3) : branch.customText3 != null) return false; - if (customText4 != null ? !customText4.equals(branch.customText4) : branch.customText4 != null) return false; - if (customText5 != null ? !customText5.equals(branch.customText5) : branch.customText5 != null) return false; - if (customText6 != null ? !customText6.equals(branch.customText6) : branch.customText6 != null) return false; - if (customText7 != null ? !customText7.equals(branch.customText7) : branch.customText7 != null) return false; - if (customText8 != null ? !customText8.equals(branch.customText8) : branch.customText8 != null) return false; - if (customText9 != null ? !customText9.equals(branch.customText9) : branch.customText9 != null) return false; - if (customText10 != null ? !customText10.equals(branch.customText10) : branch.customText10 != null) - return false; - if (customTextBlock1 != null ? !customTextBlock1.equals(branch.customTextBlock1) : branch.customTextBlock1 != null) - return false; - if (customTextBlock2 != null ? !customTextBlock2.equals(branch.customTextBlock2) : branch.customTextBlock2 != null) - return false; - if (customTextBlock3 != null ? !customTextBlock3.equals(branch.customTextBlock3) : branch.customTextBlock3 != null) - return false; - if (customDate1 != null ? !customDate1.equals(branch.customDate1) : branch.customDate1 != null) return false; - if (customDate2 != null ? !customDate2.equals(branch.customDate2) : branch.customDate2 != null) return false; - if (customDate3 != null ? !customDate3.equals(branch.customDate3) : branch.customDate3 != null) return false; - if (customDate4 != null ? !customDate4.equals(branch.customDate4) : branch.customDate4 != null) return false; - if (customDate5 != null ? !customDate5.equals(branch.customDate5) : branch.customDate5 != null) return false; - if (customDate6 != null ? !customDate6.equals(branch.customDate6) : branch.customDate6 != null) return false; - if (customFloat1 != null ? !customFloat1.equals(branch.customFloat1) : branch.customFloat1 != null) - return false; - if (customFloat2 != null ? !customFloat2.equals(branch.customFloat2) : branch.customFloat2 != null) - return false; - if (customFloat3 != null ? !customFloat3.equals(branch.customFloat3) : branch.customFloat3 != null) - return false; - if (customFloat4 != null ? !customFloat4.equals(branch.customFloat4) : branch.customFloat4 != null) - return false; - if (customFloat5 != null ? !customFloat5.equals(branch.customFloat5) : branch.customFloat5 != null) - return false; - if (customFloat6 != null ? !customFloat6.equals(branch.customFloat6) : branch.customFloat6 != null) - return false; - if (customInt1 != null ? !customInt1.equals(branch.customInt1) : branch.customInt1 != null) return false; - if (customInt2 != null ? !customInt2.equals(branch.customInt2) : branch.customInt2 != null) return false; - if (customInt3 != null ? !customInt3.equals(branch.customInt3) : branch.customInt3 != null) return false; - if (customInt4 != null ? !customInt4.equals(branch.customInt4) : branch.customInt4 != null) return false; - if (customInt5 != null ? !customInt5.equals(branch.customInt5) : branch.customInt5 != null) return false; - if (customInt6 != null ? !customInt6.equals(branch.customInt6) : branch.customInt6 != null) return false; - if (customInt7 != null ? !customInt7.equals(branch.customInt7) : branch.customInt7 != null) return false; - if (customInt8 != null ? !customInt8.equals(branch.customInt8) : branch.customInt8 != null) return false; - if (customInt9 != null ? !customInt9.equals(branch.customInt9) : branch.customInt9 != null) return false; - if (customInt10 != null ? !customInt10.equals(branch.customInt10) : branch.customInt10 != null) return false; - if (ancestors != null ? !ancestors.equals(branch.ancestors) : branch.ancestors != null) return false; - if (descendants != null ? !descendants.equals(branch.descendants) : branch.descendants != null) return false; - return corporateUsers != null ? corporateUsers.equals(branch.corporateUsers) : branch.corporateUsers == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (parentBranch != null ? parentBranch.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (customText1 != null ? customText1.hashCode() : 0); - result = 31 * result + (customText2 != null ? customText2.hashCode() : 0); - result = 31 * result + (customText3 != null ? customText3.hashCode() : 0); - result = 31 * result + (customText4 != null ? customText4.hashCode() : 0); - result = 31 * result + (customText5 != null ? customText5.hashCode() : 0); - result = 31 * result + (customText6 != null ? customText6.hashCode() : 0); - result = 31 * result + (customText7 != null ? customText7.hashCode() : 0); - result = 31 * result + (customText8 != null ? customText8.hashCode() : 0); - result = 31 * result + (customText9 != null ? customText9.hashCode() : 0); - result = 31 * result + (customText10 != null ? customText10.hashCode() : 0); - result = 31 * result + (customTextBlock1 != null ? customTextBlock1.hashCode() : 0); - result = 31 * result + (customTextBlock2 != null ? customTextBlock2.hashCode() : 0); - result = 31 * result + (customTextBlock3 != null ? customTextBlock3.hashCode() : 0); - result = 31 * result + (customDate1 != null ? customDate1.hashCode() : 0); - result = 31 * result + (customDate2 != null ? customDate2.hashCode() : 0); - result = 31 * result + (customDate3 != null ? customDate3.hashCode() : 0); - result = 31 * result + (customDate4 != null ? customDate4.hashCode() : 0); - result = 31 * result + (customDate5 != null ? customDate5.hashCode() : 0); - result = 31 * result + (customDate6 != null ? customDate6.hashCode() : 0); - result = 31 * result + (customFloat1 != null ? customFloat1.hashCode() : 0); - result = 31 * result + (customFloat2 != null ? customFloat2.hashCode() : 0); - result = 31 * result + (customFloat3 != null ? customFloat3.hashCode() : 0); - result = 31 * result + (customFloat4 != null ? customFloat4.hashCode() : 0); - result = 31 * result + (customFloat5 != null ? customFloat5.hashCode() : 0); - result = 31 * result + (customFloat6 != null ? customFloat6.hashCode() : 0); - result = 31 * result + (customInt1 != null ? customInt1.hashCode() : 0); - result = 31 * result + (customInt2 != null ? customInt2.hashCode() : 0); - result = 31 * result + (customInt3 != null ? customInt3.hashCode() : 0); - result = 31 * result + (customInt4 != null ? customInt4.hashCode() : 0); - result = 31 * result + (customInt5 != null ? customInt5.hashCode() : 0); - result = 31 * result + (customInt6 != null ? customInt6.hashCode() : 0); - result = 31 * result + (customInt7 != null ? customInt7.hashCode() : 0); - result = 31 * result + (customInt8 != null ? customInt8.hashCode() : 0); - result = 31 * result + (customInt9 != null ? customInt9.hashCode() : 0); - result = 31 * result + (customInt10 != null ? customInt10.hashCode() : 0); - result = 31 * result + (ancestors != null ? ancestors.hashCode() : 0); - result = 31 * result + (descendants != null ? descendants.hashCode() : 0); - result = 31 * result + (corporateUsers != null ? corporateUsers.hashCode() : 0); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder sb = new StringBuilder(getClass().getName()); - sb.append(" { "); - if(id != null){ - sb.append(lbc + " id="); - sb.append(id); - } - if(name != null){ - sb.append(lbc + " name="); - sb.append(name); - } - if(isDeleted != null){ - sb.append(lbc + " isDeleted="); - sb.append(isDeleted); - } - if(parentBranch != null){ - sb.append(lbc + " parentBranch="); - sb.append(parentBranch.toStringNonNull()); - } - if(externalID != null){ - sb.append(lbc + " externalID="); - sb.append(externalID); - } - if(dateAdded != null){ - sb.append(lbc + " dateAdded="); - sb.append(dateAdded); - } - if(customText1 != null){ - sb.append(lbc + " customText1="); - sb.append(customText1); - } - if(customText2 != null){ - sb.append(lbc + " customText2="); - sb.append(customText2); - } - if(customText3 != null){ - sb.append(lbc + " customText3="); - sb.append(customText3); - } - if(customText4 != null){ - sb.append(lbc + " customText4="); - sb.append(customText4); - } - if(customText5 != null){ - sb.append(lbc + " customText5="); - sb.append(customText5); - } - if(customText6 != null){ - sb.append(lbc + " customText6="); - sb.append(customText6); - } - if(customText7 != null){ - sb.append(lbc + " customText7="); - sb.append(customText7); - } - if(customText8 != null){ - sb.append(lbc + " customText8="); - sb.append(customText8); - } - if(customText9 != null){ - sb.append(lbc + " customText9="); - sb.append(customText9); - } - if(customText10 != null){ - sb.append(lbc + " customText10="); - sb.append(customText10); - } - if(customTextBlock1 != null){ - sb.append(lbc + " customTextBlock1="); - sb.append(customTextBlock1); - } - if(customTextBlock2 != null){ - sb.append(lbc + " customTextBlock2="); - sb.append(customTextBlock2); - } - if(customTextBlock3 != null){ - sb.append(lbc + " customTextBlock3="); - sb.append(customTextBlock3); - } - if(customDate1 != null){ - sb.append(lbc + " customDate1="); - sb.append(customDate1); - } - if(customDate2 != null){ - sb.append(lbc + " customDate2="); - sb.append(customDate2); - } - if(customDate3 != null){ - sb.append(lbc + " customDate3="); - sb.append(customDate3); - } - if(customDate4 != null){ - sb.append(lbc + " customDate4="); - sb.append(customDate4); - } - if(customDate5 != null){ - sb.append(lbc + " customDate5="); - sb.append(customDate5); - } - if(customDate6 != null){ - sb.append(lbc + " customDate6="); - sb.append(customDate6); - } - if(customFloat1 != null){ - sb.append(lbc + " customFloat1="); - sb.append(customFloat1); - } - if(customFloat2 != null){ - sb.append(lbc + " customFloat2="); - sb.append(customFloat2); - } - if(customFloat3 != null){ - sb.append(lbc + " customFloat3="); - sb.append(customFloat3); - } - if(customFloat4 != null){ - sb.append(lbc + " customFloat4="); - sb.append(customFloat4); - } - if(customFloat5 != null){ - sb.append(lbc + " customFloat5="); - sb.append(customFloat5); - } - if(customFloat6 != null){ - sb.append(lbc + " customFloat6="); - sb.append(customFloat6); - } - if(customInt1 != null){ - sb.append(lbc + " customInt1="); - sb.append(customInt1); - } - if(customInt2 != null){ - sb.append(lbc + " customInt2="); - sb.append(customInt2); - } - if(customInt3 != null){ - sb.append(lbc + " customInt3="); - sb.append(customInt3); - } - if(customInt4 != null){ - sb.append(lbc + " customInt4="); - sb.append(customInt4); - } - if(customInt5 != null){ - sb.append(lbc + " customInt5="); - sb.append(customInt5); - } - if(customInt6 != null){ - sb.append(lbc + " customInt6="); - sb.append(customInt6); - } - if(customInt7 != null){ - sb.append(lbc + " customInt7="); - sb.append(customInt7); - } - if(customInt8 != null){ - sb.append(lbc + " customInt8="); - sb.append(customInt8); - } - if(customInt9 != null){ - sb.append(lbc + " customInt9="); - sb.append(customInt9); - } - if(customInt10 != null){ - sb.append(lbc + " customInt10="); - sb.append(customInt10); - } - if(ancestors != null){ - sb.append(lbc + " ancestors="); - sb.append(ancestors.toStringNonNull()); - } - if(descendants != null){ - sb.append(lbc + " descendants="); - sb.append(descendants.toStringNonNull()); - } - if(corporateUsers != null){ - sb.append(lbc + " corporateUsers="); - sb.append(corporateUsers.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = lbc + " "; - StringBuilder sb =new StringBuilder(getClass().getName()); - sb.append(" { "); - if(includeLineBreaks) - sb.append("\n"); - if(id != null){ - sb.append(lbc + " id="); - sb.append(id); - } - if(name != null){ - sb.append(lbc + " name="); - sb.append(name); - } - if(isDeleted != null){ - sb.append(lbc + " isDeleted="); - sb.append(isDeleted); - } - if(parentBranch != null){ - sb.append(lbc + " parentBranch="); - sb.append(parentBranch.toStringNonNull(includeLineBreaks)); - } - if(externalID != null){ - sb.append(lbc + " externalID="); - sb.append(externalID); - } - if(dateAdded != null){ - sb.append(lbc + " dateAdded="); - sb.append(dateAdded); - } - if(customText1 != null){ - sb.append(lbc + " customText1="); - sb.append(customText1); - } - if(customText2 != null){ - sb.append(lbc + " customText2="); - sb.append(customText2); - } - if(customText3 != null){ - sb.append(lbc + " customText3="); - sb.append(customText3); - } - if(customText4 != null){ - sb.append(lbc + " customText4="); - sb.append(customText4); - } - if(customText5 != null){ - sb.append(lbc + " customText5="); - sb.append(customText5); - } - if(customText6 != null){ - sb.append(lbc + " customText6="); - sb.append(customText6); - } - if(customText7 != null){ - sb.append(lbc + " customText7="); - sb.append(customText7); - } - if(customText8 != null){ - sb.append(lbc + " customText8="); - sb.append(customText8); - } - if(customText9 != null){ - sb.append(lbc + " customText9="); - sb.append(customText9); - } - if(customText10 != null){ - sb.append(lbc + " customText10="); - sb.append(customText10); - } - if(customTextBlock1 != null){ - sb.append(lbc + " customTextBlock1="); - sb.append(customTextBlock1); - } - if(customTextBlock2 != null){ - sb.append(lbc + " customTextBlock2="); - sb.append(customTextBlock2); - } - if(customTextBlock3 != null){ - sb.append(lbc + " customTextBlock3="); - sb.append(customTextBlock3); - } - if(customDate1 != null){ - sb.append(lbc + " customDate1="); - sb.append(customDate1); - } - if(customDate2 != null){ - sb.append(lbc + " customDate2="); - sb.append(customDate2); - } - if(customDate3 != null){ - sb.append(lbc + " customDate3="); - sb.append(customDate3); - } - if(customDate4 != null){ - sb.append(lbc + " customDate4="); - sb.append(customDate4); - } - if(customDate5 != null){ - sb.append(lbc + " customDate5="); - sb.append(customDate5); - } - if(customDate6 != null){ - sb.append(lbc + " customDate6="); - sb.append(customDate6); - } - if(customFloat1 != null){ - sb.append(lbc + " customFloat1="); - sb.append(customFloat1); - } - if(customFloat2 != null){ - sb.append(lbc + " customFloat2="); - sb.append(customFloat2); - } - if(customFloat3 != null){ - sb.append(lbc + " customFloat3="); - sb.append(customFloat3); - } - if(customFloat4 != null){ - sb.append(lbc + " customFloat4="); - sb.append(customFloat4); - } - if(customFloat5 != null){ - sb.append(lbc + " customFloat5="); - sb.append(customFloat5); - } - if(customFloat6 != null){ - sb.append(lbc + " customFloat6="); - sb.append(customFloat6); - } - if(customInt1 != null){ - sb.append(lbc + " customInt1="); - sb.append(customInt1); - } - if(customInt2 != null){ - sb.append(lbc + " customInt2="); - sb.append(customInt2); - } - if(customInt3 != null){ - sb.append(lbc + " customInt3="); - sb.append(customInt3); - } - if(customInt4 != null){ - sb.append(lbc + " customInt4="); - sb.append(customInt4); - } - if(customInt5 != null){ - sb.append(lbc + " customInt5="); - sb.append(customInt5); - } - if(customInt6 != null){ - sb.append(lbc + " customInt6="); - sb.append(customInt6); - } - if(customInt7 != null){ - sb.append(lbc + " customInt7="); - sb.append(customInt7); - } - if(customInt8 != null){ - sb.append(lbc + " customInt8="); - sb.append(customInt8); - } - if(customInt9 != null){ - sb.append(lbc + " customInt9="); - sb.append(customInt9); - } - if(customInt10 != null){ - sb.append(lbc + " customInt10="); - sb.append(customInt10); - } - if(ancestors != null){ - sb.append(lbc + " ancestors="); - sb.append(ancestors.toStringNonNull(includeLineBreaks)); - } - if(descendants != null){ - sb.append(lbc + " descendants="); - sb.append(descendants.toStringNonNull(includeLineBreaks)); - } - if(corporateUsers != null){ - sb.append(lbc + " corporateUsers="); - sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - StringBuilder sb =new StringBuilder(getClass().getName()); - sb.append(" { "); - sb.append("\n id="); - sb.append(id); - sb.append(",\n name="); - sb.append(name); - sb.append(",\n isDeleted="); - sb.append(isDeleted); - sb.append(",\n parentBranch="); - sb.append(parentBranch); - sb.append(",\n externalID="); - sb.append(externalID); - sb.append(",\n dateAdded="); - sb.append(dateAdded); - sb.append(",\n customText1="); - sb.append(customText1); - sb.append(",\n customText2="); - sb.append(customText2); - sb.append(",\n customText3="); - sb.append(customText3); - sb.append(",\n customText4="); - sb.append(customText4); - sb.append(",\n customText5="); - sb.append(customText5); - sb.append(",\n customText6="); - sb.append(customText6); - sb.append(",\n customText7="); - sb.append(customText7); - sb.append(",\n customText8="); - sb.append(customText8); - sb.append(",\n customText9="); - sb.append(customText9); - sb.append(",\n customText10="); - sb.append(customText10); - sb.append(",\n customTextBlock1="); - sb.append(customTextBlock1); - sb.append(",\n customTextBlock2="); - sb.append(customTextBlock2); - sb.append(",\n customTextBlock3="); - sb.append(customTextBlock3); - sb.append(",\n customDate1="); - sb.append(customDate1); - sb.append(",\n customDate2="); - sb.append(customDate2); - sb.append(",\n customDate3="); - sb.append(customDate3); - sb.append(",\n customDate4="); - sb.append(customDate4); - sb.append(",\n customDate5="); - sb.append(customDate5); - sb.append(",\n customDate6="); - sb.append(customDate6); - sb.append(",\n customFloat1="); - sb.append(customFloat1); - sb.append(",\n customFloat2="); - sb.append(customFloat2); - sb.append(",\n customFloat3="); - sb.append(customFloat3); - sb.append(",\n customFloat4="); - sb.append(customFloat4); - sb.append(",\n customFloat5="); - sb.append(customFloat5); - sb.append(",\n customFloat6="); - sb.append(customFloat6); - sb.append(",\n customInt1="); - sb.append(customInt1); - sb.append(",\n customInt2="); - sb.append(customInt2); - sb.append(",\n customInt3="); - sb.append(customInt3); - sb.append(",\n customInt4="); - sb.append(customInt4); - sb.append(",\n customInt5="); - sb.append(customInt5); - sb.append(",\n customInt6="); - sb.append(customInt6); - sb.append(",\n customInt7="); - sb.append(customInt7); - sb.append(",\n customInt8="); - sb.append(customInt8); - sb.append(",\n customInt9="); - sb.append(customInt9); - sb.append(",\n customInt10="); - sb.append(customInt10); - sb.append(",\n ancestors="); - sb.append(ancestors); - sb.append(",\n descendants="); - sb.append(descendants); - sb.append(",\n corporateUsers="); - sb.append(corporateUsers); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import org.joda.time.DateTime; + +import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.BaseCustomFields; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; + +/** + * Created by john.sullivan on 10/7/2017. + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "name", "isDeleted", "parentBranch", "externalID", "dateAdded", "customText1", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customText10", "customTextBlock1", + "customTextBlock2", "customTextBlock3", "customDate1", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customFloat1", "customFloat2", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customInt1", "customInt2", "customInt3", + "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customInt10", "ancestors", "descendants", "corporateUsers"}) +public class Branch extends BaseCustomFields implements AllRecordsEntity, CreateEntity, UpdateEntity, QueryEntity, SoftDeleteEntity, AssociationEntity { + + private Integer id; + + private String name; + + private Boolean isDeleted; + + private Branch parentBranch; + + private String externalID; + + private DateTime dateAdded; + + + private String customText6; + + private String customText7; + + private String customText8; + + private String customText9; + + private String customText10; + + private String customTextBlock1; + + private String customTextBlock2; + + private String customTextBlock3; + + private DateTime customDate1; + + private DateTime customDate2; + + private DateTime customDate3; + + private DateTime customDate4; + + private DateTime customDate5; + + private DateTime customDate6; + + private BigDecimal customFloat1; + + private BigDecimal customFloat2; + + private BigDecimal customFloat3; + + private BigDecimal customFloat4; + + private BigDecimal customFloat5; + + private BigDecimal customFloat6; + + private Integer customInt1; + + private Integer customInt2; + + private Integer customInt3; + + private Integer customInt4; + + private Integer customInt5; + + private Integer customInt6; + + private Integer customInt7; + + private Integer customInt8; + + private Integer customInt9; + + private Integer customInt10; + + private OneToMany ancestors; + + private OneToMany descendants; + + private OneToMany corporateUsers; + + @JsonProperty("id") + @Override + public Integer getId() { + return id; + } + + @JsonProperty("id") + @Override + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @JsonProperty("isDeleted") + @Override + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("parentBranch") + public Branch getParentBranch() { + return parentBranch; + } + + @JsonProperty("parentBranch") + public void setParentBranch(Branch parentBranch) { + this.parentBranch = parentBranch; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonProperty("externalID") + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("customText6") + public String getCustomText6() { + return customText6; + } + + @JsonProperty("customText6") + public void setCustomText6(String customText6) { + this.customText6 = customText6; + } + + @JsonProperty("customText7") + public String getCustomText7() { + return customText7; + } + + @JsonProperty("customText7") + public void setCustomText7(String customText7) { + this.customText7 = customText7; + } + + @JsonProperty("customText8") + public String getCustomText8() { + return customText8; + } + + @JsonProperty("customText8") + public void setCustomText8(String customText8) { + this.customText8 = customText8; + } + + @JsonProperty("customText9") + public String getCustomText9() { + return customText9; + } + + @JsonProperty("customText9") + public void setCustomText9(String customText9) { + this.customText9 = customText9; + } + + @JsonProperty("customText10") + public String getCustomText10() { + return customText10; + } + + @JsonProperty("customText10") + public void setCustomText10(String customText10) { + this.customText10 = customText10; + } + + @JsonProperty("customTextBlock1") + public String getCustomTextBlock1() { + return customTextBlock1; + } + + @JsonProperty("customTextBlock1") + public void setCustomTextBlock1(String customTextBlock1) { + this.customTextBlock1 = customTextBlock1; + } + + @JsonProperty("customTextBlock2") + public String getCustomTextBlock2() { + return customTextBlock2; + } + + @JsonProperty("customTextBlock2") + public void setCustomTextBlock2(String customTextBlock2) { + this.customTextBlock2 = customTextBlock2; + } + + @JsonProperty("customTextBlock3") + public String getCustomTextBlock3() { + return customTextBlock3; + } + + @JsonProperty("customTextBlock3") + public void setCustomTextBlock3(String customTextBlock3) { + this.customTextBlock3 = customTextBlock3; + } + + @JsonProperty("customDate1") + public DateTime getCustomDate1() { + return customDate1; + } + + @JsonProperty("customDate1") + public void setCustomDate1(DateTime customDate1) { + this.customDate1 = customDate1; + } + + @JsonProperty("customDate2") + public DateTime getCustomDate2() { + return customDate2; + } + + @JsonProperty("customDate2") + public void setCustomDate2(DateTime customDate2) { + this.customDate2 = customDate2; + } + + @JsonProperty("customDate3") + public DateTime getCustomDate3() { + return customDate3; + } + + @JsonProperty("customDate3") + public void setCustomDate3(DateTime customDate3) { + this.customDate3 = customDate3; + } + + @JsonProperty("customDate4") + public DateTime getCustomDate4() { + return customDate4; + } + + @JsonProperty("customDate4") + public void setCustomDate4(DateTime customDate4) { + this.customDate4 = customDate4; + } + + @JsonProperty("customDate5") + public DateTime getCustomDate5() { + return customDate5; + } + + @JsonProperty("customDate5") + public void setCustomDate5(DateTime customDate5) { + this.customDate5 = customDate5; + } + + @JsonProperty("customDate6") + public DateTime getCustomDate6() { + return customDate6; + } + + @JsonProperty("customDate6") + public void setCustomDate6(DateTime customDate6) { + this.customDate6 = customDate6; + } + + @JsonProperty("customFloat1") + public BigDecimal getCustomFloat1() { + return customFloat1; + } + + @JsonProperty("customFloat1") + public void setCustomFloat1(BigDecimal customFloat1) { + this.customFloat1 = customFloat1; + } + + @JsonProperty("customFloat2") + public BigDecimal getCustomFloat2() { + return customFloat2; + } + + @JsonProperty("customFloat2") + public void setCustomFloat2(BigDecimal customFloat2) { + this.customFloat2 = customFloat2; + } + + @JsonProperty("customFloat3") + public BigDecimal getCustomFloat3() { + return customFloat3; + } + + @JsonProperty("customFloat3") + public void setCustomFloat3(BigDecimal customFloat3) { + this.customFloat3 = customFloat3; + } + + @JsonProperty("customFloat4") + public BigDecimal getCustomFloat4() { + return customFloat4; + } + + @JsonProperty("customFloat4") + public void setCustomFloat4(BigDecimal customFloat4) { + this.customFloat4 = customFloat4; + } + + @JsonProperty("customFloat5") + public BigDecimal getCustomFloat5() { + return customFloat5; + } + + @JsonProperty("customFloat5") + public void setCustomFloat5(BigDecimal customFloat5) { + this.customFloat5 = customFloat5; + } + + @JsonProperty("customFloat6") + public BigDecimal getCustomFloat6() { + return customFloat6; + } + + @JsonProperty("customFloat6") + public void setCustomFloat6(BigDecimal customFloat6) { + this.customFloat6 = customFloat6; + } + + @JsonProperty("customInt1") + public Integer getCustomInt1() { + return customInt1; + } + + @JsonProperty("customInt1") + public void setCustomInt1(Integer customInt1) { + this.customInt1 = customInt1; + } + + @JsonProperty("customInt2") + public Integer getCustomInt2() { + return customInt2; + } + + @JsonProperty("customInt2") + public void setCustomInt2(Integer customInt2) { + this.customInt2 = customInt2; + } + + @JsonProperty("customInt3") + public Integer getCustomInt3() { + return customInt3; + } + + @JsonProperty("customInt3") + public void setCustomInt3(Integer customInt3) { + this.customInt3 = customInt3; + } + + @JsonProperty("customInt4") + public Integer getCustomInt4() { + return customInt4; + } + + @JsonProperty("customInt4") + public void setCustomInt4(Integer customInt4) { + this.customInt4 = customInt4; + } + + @JsonProperty("customInt5") + public Integer getCustomInt5() { + return customInt5; + } + + @JsonProperty("customInt5") + public void setCustomInt5(Integer customInt5) { + this.customInt5 = customInt5; + } + + @JsonProperty("customInt6") + public Integer getCustomInt6() { + return customInt6; + } + + @JsonProperty("customInt6") + public void setCustomInt6(Integer customInt6) { + this.customInt6 = customInt6; + } + + @JsonProperty("customInt7") + public Integer getCustomInt7() { + return customInt7; + } + + @JsonProperty("customInt7") + public void setCustomInt7(Integer customInt7) { + this.customInt7 = customInt7; + } + + @JsonProperty("customInt8") + public Integer getCustomInt8() { + return customInt8; + } + + @JsonProperty("customInt8") + public void setCustomInt8(Integer customInt8) { + this.customInt8 = customInt8; + } + + @JsonProperty("customInt9") + public Integer getCustomInt9() { + return customInt9; + } + + @JsonProperty("customInt9") + public void setCustomInt9(Integer customInt9) { + this.customInt9 = customInt9; + } + + @JsonProperty("customInt10") + public Integer getCustomInt10() { + return customInt10; + } + + @JsonProperty("customInt10") + public void setCustomInt10(Integer customInt10) { + this.customInt10 = customInt10; + } + + @JsonProperty("ancestors") + public OneToMany getAncestors() { + return ancestors; + } + + @JsonProperty("ancestors") + @ReadOnly + public void setAncestors(OneToMany ancestors) { + this.ancestors = ancestors; + } + + @JsonProperty("descendants") + public OneToMany getDescendants() { + return descendants; + } + + @JsonProperty("descendants") + @ReadOnly + public void setDescendants(OneToMany descendants) { + this.descendants = descendants; + } + + @JsonProperty("corporateUsers") + public OneToMany getCorporateUsers() { + return corporateUsers; + } + + @JsonProperty("corporateUsers") + @ReadOnly + public void setCorporateUsers(OneToMany corporateUsers) { + this.corporateUsers = corporateUsers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (!(o instanceof Branch)) return false; + if (!super.equals(o)) return false; + + Branch branch = (Branch) o; + + if (id != null ? !id.equals(branch.id) : branch.id != null) return false; + if (name != null ? !name.equals(branch.name) : branch.name != null) return false; + if (isDeleted != null ? !isDeleted.equals(branch.isDeleted) : branch.isDeleted != null) return false; + if (parentBranch != null ? !parentBranch.equals(branch.parentBranch) : branch.parentBranch != null) + return false; + if (externalID != null ? !externalID.equals(branch.externalID) : branch.externalID != null) return false; + if (dateAdded != null ? !dateAdded.equals(branch.dateAdded) : branch.dateAdded != null) return false; + if (customText6 != null ? !customText6.equals(branch.customText6) : branch.customText6 != null) return false; + if (customText7 != null ? !customText7.equals(branch.customText7) : branch.customText7 != null) return false; + if (customText8 != null ? !customText8.equals(branch.customText8) : branch.customText8 != null) return false; + if (customText9 != null ? !customText9.equals(branch.customText9) : branch.customText9 != null) return false; + if (customText10 != null ? !customText10.equals(branch.customText10) : branch.customText10 != null) + return false; + if (customTextBlock1 != null ? !customTextBlock1.equals(branch.customTextBlock1) : branch.customTextBlock1 != null) + return false; + if (customTextBlock2 != null ? !customTextBlock2.equals(branch.customTextBlock2) : branch.customTextBlock2 != null) + return false; + if (customTextBlock3 != null ? !customTextBlock3.equals(branch.customTextBlock3) : branch.customTextBlock3 != null) + return false; + if (customDate1 != null ? !customDate1.equals(branch.customDate1) : branch.customDate1 != null) return false; + if (customDate2 != null ? !customDate2.equals(branch.customDate2) : branch.customDate2 != null) return false; + if (customDate3 != null ? !customDate3.equals(branch.customDate3) : branch.customDate3 != null) return false; + if (customDate4 != null ? !customDate4.equals(branch.customDate4) : branch.customDate4 != null) return false; + if (customDate5 != null ? !customDate5.equals(branch.customDate5) : branch.customDate5 != null) return false; + if (customDate6 != null ? !customDate6.equals(branch.customDate6) : branch.customDate6 != null) return false; + if (customFloat1 != null ? !customFloat1.equals(branch.customFloat1) : branch.customFloat1 != null) + return false; + if (customFloat2 != null ? !customFloat2.equals(branch.customFloat2) : branch.customFloat2 != null) + return false; + if (customFloat3 != null ? !customFloat3.equals(branch.customFloat3) : branch.customFloat3 != null) + return false; + if (customFloat4 != null ? !customFloat4.equals(branch.customFloat4) : branch.customFloat4 != null) + return false; + if (customFloat5 != null ? !customFloat5.equals(branch.customFloat5) : branch.customFloat5 != null) + return false; + if (customFloat6 != null ? !customFloat6.equals(branch.customFloat6) : branch.customFloat6 != null) + return false; + if (customInt1 != null ? !customInt1.equals(branch.customInt1) : branch.customInt1 != null) return false; + if (customInt2 != null ? !customInt2.equals(branch.customInt2) : branch.customInt2 != null) return false; + if (customInt3 != null ? !customInt3.equals(branch.customInt3) : branch.customInt3 != null) return false; + if (customInt4 != null ? !customInt4.equals(branch.customInt4) : branch.customInt4 != null) return false; + if (customInt5 != null ? !customInt5.equals(branch.customInt5) : branch.customInt5 != null) return false; + if (customInt6 != null ? !customInt6.equals(branch.customInt6) : branch.customInt6 != null) return false; + if (customInt7 != null ? !customInt7.equals(branch.customInt7) : branch.customInt7 != null) return false; + if (customInt8 != null ? !customInt8.equals(branch.customInt8) : branch.customInt8 != null) return false; + if (customInt9 != null ? !customInt9.equals(branch.customInt9) : branch.customInt9 != null) return false; + if (customInt10 != null ? !customInt10.equals(branch.customInt10) : branch.customInt10 != null) return false; + if (ancestors != null ? !ancestors.equals(branch.ancestors) : branch.ancestors != null) return false; + if (descendants != null ? !descendants.equals(branch.descendants) : branch.descendants != null) return false; + return corporateUsers != null ? corporateUsers.equals(branch.corporateUsers) : branch.corporateUsers == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (parentBranch != null ? parentBranch.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (customText6 != null ? customText6.hashCode() : 0); + result = 31 * result + (customText7 != null ? customText7.hashCode() : 0); + result = 31 * result + (customText8 != null ? customText8.hashCode() : 0); + result = 31 * result + (customText9 != null ? customText9.hashCode() : 0); + result = 31 * result + (customText10 != null ? customText10.hashCode() : 0); + result = 31 * result + (customTextBlock1 != null ? customTextBlock1.hashCode() : 0); + result = 31 * result + (customTextBlock2 != null ? customTextBlock2.hashCode() : 0); + result = 31 * result + (customTextBlock3 != null ? customTextBlock3.hashCode() : 0); + result = 31 * result + (customDate1 != null ? customDate1.hashCode() : 0); + result = 31 * result + (customDate2 != null ? customDate2.hashCode() : 0); + result = 31 * result + (customDate3 != null ? customDate3.hashCode() : 0); + result = 31 * result + (customDate4 != null ? customDate4.hashCode() : 0); + result = 31 * result + (customDate5 != null ? customDate5.hashCode() : 0); + result = 31 * result + (customDate6 != null ? customDate6.hashCode() : 0); + result = 31 * result + (customFloat1 != null ? customFloat1.hashCode() : 0); + result = 31 * result + (customFloat2 != null ? customFloat2.hashCode() : 0); + result = 31 * result + (customFloat3 != null ? customFloat3.hashCode() : 0); + result = 31 * result + (customFloat4 != null ? customFloat4.hashCode() : 0); + result = 31 * result + (customFloat5 != null ? customFloat5.hashCode() : 0); + result = 31 * result + (customFloat6 != null ? customFloat6.hashCode() : 0); + result = 31 * result + (customInt1 != null ? customInt1.hashCode() : 0); + result = 31 * result + (customInt2 != null ? customInt2.hashCode() : 0); + result = 31 * result + (customInt3 != null ? customInt3.hashCode() : 0); + result = 31 * result + (customInt4 != null ? customInt4.hashCode() : 0); + result = 31 * result + (customInt5 != null ? customInt5.hashCode() : 0); + result = 31 * result + (customInt6 != null ? customInt6.hashCode() : 0); + result = 31 * result + (customInt7 != null ? customInt7.hashCode() : 0); + result = 31 * result + (customInt8 != null ? customInt8.hashCode() : 0); + result = 31 * result + (customInt9 != null ? customInt9.hashCode() : 0); + result = 31 * result + (customInt10 != null ? customInt10.hashCode() : 0); + result = 31 * result + (ancestors != null ? ancestors.hashCode() : 0); + result = 31 * result + (descendants != null ? descendants.hashCode() : 0); + result = 31 * result + (corporateUsers != null ? corporateUsers.hashCode() : 0); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder sb = new StringBuilder(getClass().getSimpleName()); + sb.append(" { "); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull()); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + sb.append(super.toStringNonNull()); + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull()); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull()); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder sb =new StringBuilder(getClass().getSimpleName()); + sb.append(" { "); + if(includeLineBreaks) + sb.append("\n"); + if(id != null){ + sb.append(lbc + " id="); + sb.append(id); + } + if(name != null){ + sb.append(lbc + " name="); + sb.append(name); + } + if(isDeleted != null){ + sb.append(lbc + " isDeleted="); + sb.append(isDeleted); + } + if(parentBranch != null){ + sb.append(lbc + " parentBranch="); + sb.append(parentBranch.toStringNonNull(includeLineBreaks)); + } + if(externalID != null){ + sb.append(lbc + " externalID="); + sb.append(externalID); + } + if(dateAdded != null){ + sb.append(lbc + " dateAdded="); + sb.append(dateAdded); + } + sb.append(super.toStringNonNull(includeLineBreaks)); + if(customText6 != null){ + sb.append(lbc + " customText6="); + sb.append(customText6); + } + if(customText7 != null){ + sb.append(lbc + " customText7="); + sb.append(customText7); + } + if(customText8 != null){ + sb.append(lbc + " customText8="); + sb.append(customText8); + } + if(customText9 != null){ + sb.append(lbc + " customText9="); + sb.append(customText9); + } + if(customText10 != null){ + sb.append(lbc + " customText10="); + sb.append(customText10); + } + if(customTextBlock1 != null){ + sb.append(lbc + " customTextBlock1="); + sb.append(customTextBlock1); + } + if(customTextBlock2 != null){ + sb.append(lbc + " customTextBlock2="); + sb.append(customTextBlock2); + } + if(customTextBlock3 != null){ + sb.append(lbc + " customTextBlock3="); + sb.append(customTextBlock3); + } + if(customDate1 != null){ + sb.append(lbc + " customDate1="); + sb.append(customDate1); + } + if(customDate2 != null){ + sb.append(lbc + " customDate2="); + sb.append(customDate2); + } + if(customDate3 != null){ + sb.append(lbc + " customDate3="); + sb.append(customDate3); + } + if(customDate4 != null){ + sb.append(lbc + " customDate4="); + sb.append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + " customDate5="); + sb.append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + " customDate6="); + sb.append(customDate6); + } + if(customFloat1 != null){ + sb.append(lbc + " customFloat1="); + sb.append(customFloat1); + } + if(customFloat2 != null){ + sb.append(lbc + " customFloat2="); + sb.append(customFloat2); + } + if(customFloat3 != null){ + sb.append(lbc + " customFloat3="); + sb.append(customFloat3); + } + if(customFloat4 != null){ + sb.append(lbc + " customFloat4="); + sb.append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + " customFloat5="); + sb.append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + " customFloat6="); + sb.append(customFloat6); + } + if(customInt1 != null){ + sb.append(lbc + " customInt1="); + sb.append(customInt1); + } + if(customInt2 != null){ + sb.append(lbc + " customInt2="); + sb.append(customInt2); + } + if(customInt3 != null){ + sb.append(lbc + " customInt3="); + sb.append(customInt3); + } + if(customInt4 != null){ + sb.append(lbc + " customInt4="); + sb.append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + " customInt5="); + sb.append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + " customInt6="); + sb.append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + " customInt7="); + sb.append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + " customInt8="); + sb.append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + " customInt9="); + sb.append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + " customInt10="); + sb.append(customInt10); + } + if(ancestors != null){ + sb.append(lbc + " ancestors="); + sb.append(ancestors.toStringNonNull(includeLineBreaks)); + } + if(descendants != null){ + sb.append(lbc + " descendants="); + sb.append(descendants.toStringNonNull(includeLineBreaks)); + } + if(corporateUsers != null){ + sb.append(lbc + " corporateUsers="); + sb.append(corporateUsers.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + StringBuilder sb =new StringBuilder(getClass().getSimpleName()); + sb.append(" { "); + sb.append("\n id="); + sb.append(id); + sb.append(",\n name="); + sb.append(name); + sb.append(",\n isDeleted="); + sb.append(isDeleted); + sb.append(",\n parentBranch="); + sb.append(parentBranch); + sb.append(",\n externalID="); + sb.append(externalID); + sb.append(",\n dateAdded="); + sb.append(dateAdded); + sb.append(",\n customText1="); + sb.append(super.toString()); + sb.append(",\n customText6="); + sb.append(customText6); + sb.append(",\n customText7="); + sb.append(customText7); + sb.append(",\n customText8="); + sb.append(customText8); + sb.append(",\n customText9="); + sb.append(customText9); + sb.append(",\n customText10="); + sb.append(customText10); + sb.append(",\n customTextBlock1="); + sb.append(customTextBlock1); + sb.append(",\n customTextBlock2="); + sb.append(customTextBlock2); + sb.append(",\n customTextBlock3="); + sb.append(customTextBlock3); + sb.append(",\n customDate1="); + sb.append(customDate1); + sb.append(",\n customDate2="); + sb.append(customDate2); + sb.append(",\n customDate3="); + sb.append(customDate3); + sb.append(",\n customDate4="); + sb.append(customDate4); + sb.append(",\n customDate5="); + sb.append(customDate5); + sb.append(",\n customDate6="); + sb.append(customDate6); + sb.append(",\n customFloat1="); + sb.append(customFloat1); + sb.append(",\n customFloat2="); + sb.append(customFloat2); + sb.append(",\n customFloat3="); + sb.append(customFloat3); + sb.append(",\n customFloat4="); + sb.append(customFloat4); + sb.append(",\n customFloat5="); + sb.append(customFloat5); + sb.append(",\n customFloat6="); + sb.append(customFloat6); + sb.append(",\n customInt1="); + sb.append(customInt1); + sb.append(",\n customInt2="); + sb.append(customInt2); + sb.append(",\n customInt3="); + sb.append(customInt3); + sb.append(",\n customInt4="); + sb.append(customInt4); + sb.append(",\n customInt5="); + sb.append(customInt5); + sb.append(",\n customInt6="); + sb.append(customInt6); + sb.append(",\n customInt7="); + sb.append(customInt7); + sb.append(",\n customInt8="); + sb.append(customInt8); + sb.append(",\n customInt9="); + sb.append(customInt9); + sb.append(",\n customInt10="); + sb.append(customInt10); + sb.append(",\n ancestors="); + sb.append(ancestors); + sb.append(",\n descendants="); + sb.append(descendants); + sb.append(",\n corporateUsers="); + sb.append(corporateUsers); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java index b626a012..90d107a3 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/BusinessSector.java @@ -1,168 +1,168 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import javax.validation.constraints.Size; - -import org.joda.time.DateTime; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "dateAdded", "name" }) -public class BusinessSector extends AbstractEntity implements QueryEntity, AllRecordsEntity { - - private Integer id; - - private DateTime dateAdded; - - @Size(max = 100) - private String name; - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((dateAdded == null) ? 0 : dateAdded.hashCode()); - result = prime * result + ((id == null) ? 0 : id.hashCode()); - result = prime * result + ((name == null) ? 0 : name.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - BusinessSector other = (BusinessSector) obj; - if (dateAdded == null) { - if (other.dateAdded != null) - return false; - } else if (!dateAdded.isEqual(other.dateAdded)) - return false; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - return true; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - if(id != null){ - builder.append(lbc + "id="); - builder.append(id); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(name != null){ - builder.append(lbc + "name="); - builder.append(name); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - builder.append("}"); - return builder.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - if(includeLineBreaks) - builder.append("\n"); - if(id != null){ - builder.append(lbc + "id="); - builder.append(id); - } - if(dateAdded != null){ - builder.append(lbc + "dateAdded="); - builder.append(dateAdded); - } - if(name != null){ - builder.append(lbc + "name="); - builder.append(name); - } - if(this.getAdditionalProperties() != null){ - builder.append(lbc + "additionalProperties="); - builder.append(this.getAdditionalProperties()); - } - if(includeLineBreaks) - builder.append("\n"); - builder.append("}"); - return builder.toString(); - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(getClass().getName()); - builder.append(" {"); - builder.append("\nid="); - builder.append(id); - builder.append(", \ndateAdded="); - builder.append(dateAdded); - builder.append(", \nname="); - builder.append(name); - builder.append(", \nadditionalProperties="); - builder.append(this.getAdditionalProperties()); - builder.append("\n}"); - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.core.standard; + +import javax.validation.constraints.Size; + +import org.joda.time.DateTime; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.AllRecordsEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "dateAdded", "name" }) +public class BusinessSector extends AbstractEntity implements QueryEntity, AllRecordsEntity { + + private Integer id; + + private DateTime dateAdded; + + @Size(max = 100) + private String name; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((dateAdded == null) ? 0 : dateAdded.hashCode()); + result = prime * result + ((id == null) ? 0 : id.hashCode()); + result = prime * result + ((name == null) ? 0 : name.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + BusinessSector other = (BusinessSector) obj; + if (dateAdded == null) { + if (other.dateAdded != null) + return false; + } else if (!dateAdded.isEqual(other.dateAdded)) + return false; + if (id == null) { + if (other.id != null) + return false; + } else if (!id.equals(other.id)) + return false; + if (name == null) { + if (other.name != null) + return false; + } else if (!name.equals(other.name)) + return false; + return true; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); + builder.append(" {"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + builder.append("}"); + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); + builder.append(" {"); + if(includeLineBreaks) + builder.append("\n"); + if(id != null){ + builder.append(lbc + "id="); + builder.append(id); + } + if(dateAdded != null){ + builder.append(lbc + "dateAdded="); + builder.append(dateAdded); + } + if(name != null){ + builder.append(lbc + "name="); + builder.append(name); + } + if(this.getAdditionalProperties() != null){ + builder.append(lbc + "additionalProperties="); + builder.append(this.getAdditionalProperties()); + } + if(includeLineBreaks) + builder.append("\n"); + builder.append("}"); + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(getClass().getSimpleName()); + builder.append(" {"); + builder.append("\nid="); + builder.append(id); + builder.append(", \ndateAdded="); + builder.append(dateAdded); + builder.append(", \nname="); + builder.append(name); + builder.append(", \nadditionalProperties="); + builder.append(this.getAdditionalProperties()); + builder.append("\n}"); + return builder.toString(); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java index 3f166357..9a1739e9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java @@ -1,3358 +1,3360 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import java.math.BigDecimal; - -import javax.validation.constraints.Size; - -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsF; -import org.hibernate.validator.constraints.Email; -import org.joda.time.DateTime; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.response.file.standard.StandardFileAttachment; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "canEnterTime", "categories", "category", "certificationList", "certifications", - "clientCorporationBlackList", "clientCorporationWhiteList", "comments", "companyName", "companyURL", "customDate1", "customDate10", - "customDate11", "customDate12", "customDate13","customDate2", "customDate3", "customDate4", "customDate5", "customDate6", "customDate7", - "customDate8", "customDate9", "customFloat1", "customFloat10", "customFloat11","customFloat12", "customFloat13", "customFloat14", "customFloat15", - "customFloat16", "customFloat17", "customFloat18", "customFloat19", "customFloat2", "customFloat20", "customFloat21", "customFloat22", - "customFloat23", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customFloat7", "customFloat8", "customFloat9", - "customInt1", "customInt10", "customInt11", "customInt12", "customInt13", "customInt14", "customInt15", "customInt16", - "customInt17", "customInt18", "customInt19", "customInt2", "customInt20", "customInt21", "customInt22", "customInt23", - "customInt3", "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customText1", - "customText10", "customText11", "customText12", "customText13", "customText14", "customText15", "customText16", "customText17", - "customText18", "customText19", "customText2", "customText20", "customText21", "customText22", "customText23", - "customText24", "customText25", "customText26", "customText27", "customText28", "customText29", "customText3", "customText30", - "customText31", "customText32", "customText33", "customText34", "customText35", "customText36", "customText37", "customText38", - "customText39", "customText4", "customText40", "customText5", "customText6", - "customText7", "customText8", "customText9", "customTextBlock1", "customTextBlock10", "customTextBlock2", "customTextBlock3", - "customTextBlock4", "customTextBlock5", "customTextBlock6", "customTextBlock7", "customTextBlock8", "customTextBlock9", - "dateAdded", "dateAvailable", "dateAvailableEnd", "dateI9Expiration", "dateLastComment", "dateLastModified", "dateNextCall", - "dateOfBirth", "dayRate", "dayRateLow", "degreeList", "description", "desiredLocations", "disability", "educationDegree", - "educations", "email", "email2", "email3", "employeeType", "employmentPreference", "customEncryptedText1", "customEncryptedText2", - "customEncryptedText3", "customEncryptedText4", "customEncryptedText5", "customEncryptedText6", "customEncryptedText7", "customEncryptedText8", - "customEncryptedText9", "customEncryptedText10", "ethnicity", "experience", "externalID", "fax", - "fax2", "fax3", "federalAddtionalWitholdingsAmount", "federalExemptions", "federalFilingStatus", "fileAttachments", "firstName", - "gender", "hourlyRate", "hourlyRateLow", "i9OnFile", "isAnonymized", "isDayLightSavings", "isDeleted", "isEditable", "isLockedOut", "interviews", - "lastName", "linkedPerson", "leads", "localAddtionalWitholdingsAmount", "localExemptions", "localFilingStatus", "localTaxCode", - "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", "namePrefix", "nameSuffix", "nickName", "notes", "numCategories", - "numOwners", "occupation", "owner", "pager", "paperWorkOnFile", "password", "phone", "phone2", "phone3", "placements", - "preferredContact", "primarySkills", "recentClientList", "referredBy", "referredByPerson", "references", "salary", "salaryLow", - "secondaryAddress", "secondaryOwners", "secondarySkills", "sendouts", "skillSet", "smsOptIn", "source", "specialties", - "submissions", "ssn", "stateAddtionalWitholdingsAmount", "stateExemptions", "stateFilingStatus", "status", "tasks", "taxID", - "taxState", "tearsheets", "timeZoneOffsetEST", "travelLimit", "type", "username", "veteran", "webResponses", "willRelocate", "workAuthorized", - "workHistories", "workPhone", "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", - "customObject7s", "customObject8s", "customObject9s", "customObject10s" }) -public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, - AssociationEntity, DateLastModifiedEntity, EditHistoryEntity { - - private BigDecimal luceneScore; - - private Integer id; - - private Address address; - - private Branch branch; - - private OneToMany businessSectors; - - private Boolean canEnterTime; - - private OneToMany categories; - - private Category category; - - private OneToMany certificationList; - - @JsonIgnore - private String certifications; - - private OneToMany clientCorporationBlackList; - - private OneToMany clientCorporationWhiteList; - - @JsonIgnore - private String comments; - - @JsonIgnore - @Size(max = 100) - private String companyName; - - @JsonIgnore - @Size(max = 100) - private String companyURL; - - private DateTime dateAdded; - - private DateTime dateAvailable; - - private DateTime dateAvailableEnd; - - private DateTime dateI9Expiration; - - private DateTime dateLastComment; - - private DateTime dateLastModified; - - private DateTime dateNextCall; - - private DateTime dateOfBirth; - - private BigDecimal dayRate; - - private BigDecimal dayRateLow; - - @JsonIgnore - private String degreeList; - - @JsonIgnore - private String description; - - @JsonIgnore - private String desiredLocations; - - @JsonIgnore - @Size(max = 1) - private String disability; - - @JsonIgnore - private String educationDegree; - - private OneToMany educations; - - @JsonIgnore - @Email - @Size(max = 100) - private String email; - - @JsonIgnore - @Email - @Size(max = 100) - private String email2; - - @JsonIgnore - @Email - @Size(max = 100) - private String email3; - - @JsonIgnore - @Size(max = 30) - private String employeeType; - - @JsonIgnore - @Size(max = 200) - private String employmentPreference; - - @JsonIgnore - @Size(max = 50) - private String ethnicity; - - private Integer experience; - - @JsonIgnore - @Size(max = 50) - private String externalID; - - @JsonIgnore - @Size(max = 20) - private String fax; - - @JsonIgnore - @Size(max = 20) - private String fax2; - - @JsonIgnore - @Size(max = 20) - private String fax3; - - private BigDecimal federalAddtionalWitholdingsAmount; - - private Integer federalExemptions; - - @JsonIgnore - private String federalFilingStatus; - - private OneToMany fileAttachments; - - @JsonIgnore - @Size(max = 50) - private String firstName; - - @JsonIgnore - @Size(max = 6) - private String gender; - - private BigDecimal hourlyRate; - - private BigDecimal hourlyRateLow; - - private OneToMany interviews; - - private Integer i9OnFile; - - private Boolean isDayLightSavings; - - private Boolean isDeleted; - - private Boolean isEditable; - - private Boolean isLockedOut; - - private Boolean isAnonymized; - - @JsonIgnore - @Size(max = 50) - private String lastName; - - private Person linkedPerson; - - private OneToMany leads; - - private BigDecimal localAddtionalWitholdingsAmount; - - private Integer localExemptions; - - @JsonIgnore - private String localFilingStatus; - - @JsonIgnore - private String localTaxCode; - - private Boolean massMailOptOut; - - @JsonIgnore - @Size(max = 50) - private String middleName; - - private Object migrateGUID; - - @JsonIgnore - @Size(max = 20) - private String mobile; - - @JsonIgnore - private String name; - - @JsonIgnore - @Size(max = 5) - private String namePrefix; - - @JsonIgnore - @Size(max = 5) - private String nameSuffix; - - @JsonIgnore - private String nickName; - - private OneToMany notes; - - private Integer numCategories; - - private Integer numOwners; - - @JsonIgnore - @Size(max = 50) - private String occupation; - - private CorporateUser owner; - - @JsonIgnore - @Size(max = 20) - private String pager; - - @JsonIgnore - private String paperWorkOnFile; - - @JsonIgnore - private String password; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - @Size(max = 20) - private String phone2; - - @JsonIgnore - @Size(max = 20) - private String phone3; - - private OneToMany placements; - - @JsonIgnore - @Size(max = 15) - private String preferredContact; - - private OneToMany primarySkills; - - @JsonIgnore - private String recentClientList; - - @JsonIgnore - @Size(max = 50) - private String referredBy; - - private Person referredByPerson; - - private OneToMany references; - - private BigDecimal salary; - - private BigDecimal salaryLow; - - private Address secondaryAddress; - - private OneToMany secondaryOwners; - - private OneToMany secondarySkills; - - private OneToMany sendouts; - - @JsonIgnore - private String skillSet; - - private Boolean smsOptIn; - - @JsonIgnore - private String source; - - private OneToMany specialties; - - @JsonIgnore - @Size(max = 18) - private String ssn; - - private BigDecimal stateAddtionalWitholdingsAmount; - - private Integer stateExemptions; - - @JsonIgnore - private String stateFilingStatus; - - @JsonIgnore - @Size(max = 100) - private String status; - - private OneToMany submissions; - - private OneToMany tasks; - - @JsonIgnore - @Size(max = 18) - private String taxID; - - @JsonIgnore - private String taxState; - - private OneToMany tearsheets; - - private Integer timeZoneOffsetEST; - - private Integer travelLimit; - - @JsonIgnore - @Size(max = 100) - private String type; - - @JsonIgnore - private String username; - - @JsonIgnore - @Size(max = 1) - private String veteran; - - private OneToMany webResponses; - - private Boolean willRelocate; - - private Boolean workAuthorized; - - private OneToMany workHistories; - - @JsonIgnore - @Size(max = 20) - private String workPhone; - - @JsonIgnore - private String customEncryptedText1; - - @JsonIgnore - private String customEncryptedText2; - - @JsonIgnore - private String customEncryptedText3; - - @JsonIgnore - private String customEncryptedText4; - - @JsonIgnore - private String customEncryptedText5; - - @JsonIgnore - private String customEncryptedText6; - - @JsonIgnore - private String customEncryptedText7; - - @JsonIgnore - private String customEncryptedText8; - - @JsonIgnore - private String customEncryptedText9; - - @JsonIgnore - private String customEncryptedText10; - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - public Candidate() { - super(); - } - - public Candidate(Integer id) { - super(); - this.id = id; - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public Candidate instantiateForInsert() { - Candidate entity = new Candidate(); - entity.setCategory(new Category(512973)); - entity.setComments("New lead candidate"); - entity.setEmployeeType("W2"); - entity.setIsDeleted(Boolean.FALSE); - entity.setIsEditable(Boolean.TRUE); - entity.setPreferredContact("Email"); - entity.setStatus("New Lead"); - entity.setOwner(new CorporateUser(1)); - entity.setName(""); - entity.setFirstName(""); - entity.setLastName(""); - entity.setUsername(new DateTime().toString()); - entity.setPassword("secret"); - return entity; - } - - public static void setRequiredFieldsForInsert(Candidate candidate) { - if (candidate.getCategory() == null) { - candidate.setCategory(new Category(512973)); - } - if (candidate.getComments() == null) { - candidate.setComments("New lead candidate"); - } - if (candidate.getEmployeeType() == null) { - candidate.setEmployeeType("W2"); - } - if (candidate.getIsDeleted() == null) { - candidate.setIsDeleted(Boolean.FALSE); - } - if (candidate.getIsEditable() == null) { - candidate.setIsEditable(Boolean.FALSE); - } - if (candidate.getPreferredContact() == null) { - candidate.setPreferredContact("Email"); - } - if (candidate.getStatus() == null) { - candidate.setStatus("New Lead"); - } - if (candidate.getOwner() == null) { - candidate.setOwner(new CorporateUser(1)); - } - if (candidate.getUsername() == null) { - candidate.setUsername(new DateTime().toString()); - } - if (candidate.getPassword() == null) { - candidate.setPassword("secret"); - } - - if (candidate.getName() == null) { - if (candidate.getFirstName() != null && candidate.getLastName() != null) { - candidate.setName(candidate.getFirstName() + " " + candidate.getLastName()); - } else { - candidate.setName(""); - } - } - - } - - @JsonIgnore - public BigDecimal getLuceneScore() { - return luceneScore; - } - - @JsonProperty("_score") - public void setLuceneScore(BigDecimal luceneScore) { - this.luceneScore = luceneScore; - } - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonIgnore - public OneToMany getBusinessSectors() { - return businessSectors; - } - - @JsonProperty("businessSectors") - public void setBusinessSectors(OneToMany businessSectors) { - this.businessSectors = businessSectors; - } - - @JsonProperty("canEnterTime") - public Boolean getCanEnterTime() { - return canEnterTime; - } - - @JsonProperty("canEnterTime") - public void setCanEnterTime(Boolean canEnterTime) { - this.canEnterTime = canEnterTime; - } - - @JsonIgnore - public OneToMany getCategories() { - return categories; - } - - @JsonProperty("categories") - public void setCategories(OneToMany categories) { - this.categories = categories; - } - - @JsonProperty("category") - public Category getCategory() { - return category; - } - - @JsonProperty("category") - public void setCategory(Category category) { - this.category = category; - } - - @JsonIgnore - public OneToMany getCertificationList() { - return certificationList; - } - - @ReadOnly - @JsonProperty("certificationList") - public void setCertificationList(OneToMany certificationList) { - this.certificationList = certificationList; - } - - @JsonProperty("certifications") - public String getCertifications() { - return certifications; - } - - @JsonIgnore - public void setCertifications(String certifications) { - this.certifications = certifications; - } - - @JsonProperty("clientCorporationBlackList") - public OneToMany getClientCorporationBlackList() { - return clientCorporationBlackList; - } - - @ReadOnly - @JsonProperty("clientCorporationBlackList") - public void setClientCorporationBlackList(OneToMany clientCorporationBlackList) { - this.clientCorporationBlackList = clientCorporationBlackList; - } - - @JsonProperty("clientCorporationWhiteList") - public OneToMany getClientCorporationWhiteList() { - return clientCorporationWhiteList; - } - - @ReadOnly - @JsonProperty("clientCorporationWhiteList") - public void setClientCorporationWhiteList(OneToMany clientCorporationWhiteList) { - this.clientCorporationWhiteList = clientCorporationWhiteList; - } - - @JsonProperty("comments") - public String getComments() { - return comments; - } - - @JsonIgnore - public void setComments(String comments) { - this.comments = comments; - } - - @JsonProperty("companyName") - public String getCompanyName() { - return companyName; - } - - @JsonIgnore - public void setCompanyName(String companyName) { - this.companyName = companyName; - } - - @JsonProperty("companyURL") - public String getCompanyURL() { - return companyURL; - } - - @JsonIgnore - public void setCompanyURL(String companyURL) { - this.companyURL = companyURL; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateAvailable") - public DateTime getDateAvailable() { - return dateAvailable; - } - - @JsonProperty("dateAvailable") - public void setDateAvailable(DateTime dateAvailable) { - this.dateAvailable = dateAvailable; - } - - @JsonProperty("dateAvailableEnd") - public DateTime getDateAvailableEnd() { - return dateAvailableEnd; - } - - @JsonProperty("dateAvailableEnd") - public void setDateAvailableEnd(DateTime dateAvailableEnd) { - this.dateAvailableEnd = dateAvailableEnd; - } - - @JsonProperty("dateI9Expiration") - public DateTime getDateI9Expiration() { - return dateI9Expiration; - } - - @JsonProperty("dateI9Expiration") - public void setDateI9Expiration(DateTime dateI9Expiration) { - this.dateI9Expiration = dateI9Expiration; - } - - @JsonProperty("dateLastComment") - public DateTime getDateLastComment() { - return dateLastComment; - } - - @ReadOnly - @JsonProperty("dateLastComment") - public void setDateLastComment(DateTime dateLastComment) { - this.dateLastComment = dateLastComment; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - - @JsonProperty("dateNextCall") - public DateTime getDateNextCall() { - return dateNextCall; - } - - @JsonProperty("dateNextCall") - public void setDateNextCall(DateTime dateNextCall) { - this.dateNextCall = dateNextCall; - } - - @JsonProperty("dateOfBirth") - public DateTime getDateOfBirth() { - return dateOfBirth; - } - - @JsonProperty("dateOfBirth") - public void setDateOfBirth(DateTime dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - @JsonProperty("dayRate") - public BigDecimal getDayRate() { - return dayRate; - } - - @JsonProperty("dayRate") - public void setDayRate(BigDecimal dayRate) { - this.dayRate = dayRate; - } - - @JsonProperty("dayRateLow") - public BigDecimal getDayRateLow() { - return dayRateLow; - } - - @JsonProperty("dayRateLow") - public void setDayRateLow(BigDecimal dayRateLow) { - this.dayRateLow = dayRateLow; - } - - @JsonProperty("degreeList") - public String getDegreeList() { - return degreeList; - } - - @JsonIgnore - public void setDegreeList(String degreeList) { - this.degreeList = degreeList; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonIgnore - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("desiredLocations") - public String getDesiredLocations() { - return desiredLocations; - } - - @JsonIgnore - public void setDesiredLocations(String desiredLocations) { - this.desiredLocations = desiredLocations; - } - - @JsonProperty("disability") - public String getDisability() { - return disability; - } - - @JsonIgnore - public void setDisability(String disability) { - this.disability = disability; - } - - @JsonProperty("educationDegree") - public String getEducationDegree() { - return educationDegree; - } - - @JsonIgnore - public void setEducationDegree(String educationDegree) { - this.educationDegree = educationDegree; - } - - @JsonProperty("educations") - public OneToMany getEducations() { - return educations; - } - - @ReadOnly - @JsonProperty("educations") - public void setEducations(OneToMany educations) { - this.educations = educations; - } - - @JsonProperty("email") - public String getEmail() { - return email; - } - - @JsonIgnore - public void setEmail(String email) { - this.email = email; - } - - @JsonProperty("email2") - public String getEmail2() { - return email2; - } - - @JsonIgnore - public void setEmail2(String email2) { - this.email2 = email2; - } - - @JsonProperty("email3") - public String getEmail3() { - return email3; - } - - @JsonIgnore - public void setEmail3(String email3) { - this.email3 = email3; - } - - @JsonProperty("employeeType") - public String getEmployeeType() { - return employeeType; - } - - @JsonIgnore - public void setEmployeeType(String employeeType) { - this.employeeType = employeeType; - } - - @JsonProperty("employmentPreference") - public String getEmploymentPreference() { - return employmentPreference; - } - - @JsonIgnore - public void setEmploymentPreference(String employmentPreference) { - this.employmentPreference = employmentPreference; - } - - @JsonProperty("ethnicity") - public String getEthnicity() { - return ethnicity; - } - - @JsonIgnore - public void setEthnicity(String ethnicity) { - this.ethnicity = ethnicity; - } - - @JsonProperty("experience") - public Integer getExperience() { - return experience; - } - - @JsonProperty("experience") - public void setExperience(Integer experience) { - this.experience = experience; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonIgnore - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("fax2") - public String getFax2() { - return fax2; - } - - @JsonIgnore - public void setFax2(String fax2) { - this.fax2 = fax2; - } - - @JsonProperty("fax3") - public String getFax3() { - return fax3; - } - - @JsonIgnore - public void setFax3(String fax3) { - this.fax3 = fax3; - } - - @JsonProperty("federalAddtionalWitholdingsAmount") - public BigDecimal getFederalAddtionalWitholdingsAmount() { - return federalAddtionalWitholdingsAmount; - } - - @JsonProperty("federalAddtionalWitholdingsAmount") - public void setFederalAddtionalWitholdingsAmount(BigDecimal federalAddtionalWitholdingsAmount) { - this.federalAddtionalWitholdingsAmount = federalAddtionalWitholdingsAmount; - } - - @JsonProperty("federalExemptions") - public Integer getFederalExemptions() { - return federalExemptions; - } - - @JsonProperty("federalExemptions") - public void setFederalExemptions(Integer federalExemptions) { - this.federalExemptions = federalExemptions; - } - - @JsonProperty("federalFilingStatus") - public String getFederalFilingStatus() { - return federalFilingStatus; - } - - @JsonIgnore - public void setFederalFilingStatus(String federalFilingStatus) { - this.federalFilingStatus = federalFilingStatus; - } - - @JsonProperty("fileAttachments") - public OneToMany getFileAttachments() { - return fileAttachments; - } - - @ReadOnly - @JsonProperty("fileAttachments") - public void setFileAttachments(OneToMany fileAttachments) { - this.fileAttachments = fileAttachments; - } - - @JsonProperty("firstName") - public String getFirstName() { - return firstName; - } - - @JsonIgnore - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - @JsonProperty("gender") - public String getGender() { - return gender; - } - - @JsonIgnore - public void setGender(String gender) { - this.gender = gender; - } - - @JsonProperty("hourlyRate") - public BigDecimal getHourlyRate() { - return hourlyRate; - } - - @JsonProperty("hourlyRate") - public void setHourlyRate(BigDecimal hourlyRate) { - this.hourlyRate = hourlyRate; - } - - @JsonProperty("hourlyRateLow") - public BigDecimal getHourlyRateLow() { - return hourlyRateLow; - } - - @JsonProperty("hourlyRateLow") - public void setHourlyRateLow(BigDecimal hourlyRateLow) { - this.hourlyRateLow = hourlyRateLow; - } - - @JsonProperty("interviews") - public OneToMany getInterviews() { - return interviews; - } - - @ReadOnly - @JsonProperty("interviews") - public void setInterviews(OneToMany interviews) { - this.interviews = interviews; - } - - @JsonProperty("i9OnFile") - public Integer getI9OnFile() { - return i9OnFile; - } - - @JsonProperty("i9OnFile") - public void setI9OnFile(Integer i9OnFile) { - this.i9OnFile = i9OnFile; - } - - @JsonProperty("isDayLightSavings") - public Boolean getIsDayLightSavings() { - return isDayLightSavings; - } - - @JsonProperty("isDayLightSavings") - public void setIsDayLightSavings(Boolean isDayLightSavings) { - this.isDayLightSavings = isDayLightSavings; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isEditable") - public Boolean getIsEditable() { - return isEditable; - } - - @JsonProperty("isEditable") - public void setIsEditable(Boolean isEditable) { - this.isEditable = isEditable; - } - - @JsonProperty("isLockedOut") - public Boolean getIsLockedOut() { - return isLockedOut; - } - - @JsonProperty("isLockedOut") - public void setIsLockedOut(Boolean isLockedOut) { - this.isLockedOut = isLockedOut; - } - - @JsonProperty("isAnonymized") - public Boolean getIsAnonymized() { - return isAnonymized; - } - - @JsonProperty("isAnonymized") - public void setIsAnonymized(Boolean isAnonymized) { - this.isAnonymized = isAnonymized; - } - - @JsonProperty("lastName") - public String getLastName() { - return lastName; - } - - @JsonIgnore - public void setLastName(String lastName) { - this.lastName = lastName; - } - - @JsonProperty("linkedPerson") - public Person getLinkedPerson() { - return linkedPerson; - } - - @JsonProperty("linkedPerson") - public void setLinkedPerson(Person linkedPerson) { - this.linkedPerson = linkedPerson; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("localAddtionalWitholdingsAmount") - public BigDecimal getLocalAddtionalWitholdingsAmount() { - return localAddtionalWitholdingsAmount; - } - - @JsonProperty("localAddtionalWitholdingsAmount") - public void setLocalAddtionalWitholdingsAmount(BigDecimal localAddtionalWitholdingsAmount) { - this.localAddtionalWitholdingsAmount = localAddtionalWitholdingsAmount; - } - - @JsonProperty("localExemptions") - public Integer getLocalExemptions() { - return localExemptions; - } - - @JsonProperty("localExemptions") - public void setLocalExemptions(Integer localExemptions) { - this.localExemptions = localExemptions; - } - - @JsonProperty("localFilingStatus") - public String getLocalFilingStatus() { - return localFilingStatus; - } - - @JsonIgnore - public void setLocalFilingStatus(String localFilingStatus) { - this.localFilingStatus = localFilingStatus; - } - - @JsonProperty("localTaxCode") - public String getLocalTaxCode() { - return localTaxCode; - } - - @JsonIgnore - public void setLocalTaxCode(String localTaxCode) { - this.localTaxCode = localTaxCode; - } - - @JsonProperty("massMailOptOut") - public Boolean getMassMailOptOut() { - return massMailOptOut; - } - - @JsonProperty("massMailOptOut") - public void setMassMailOptOut(Boolean massMailOptOut) { - this.massMailOptOut = massMailOptOut; - } - - @JsonProperty("middleName") - public String getMiddleName() { - return middleName; - } - - @JsonIgnore - public void setMiddleName(String middleName) { - this.middleName = middleName; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonProperty("migrateGUID") - public void setMigrateGUID(Object migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("mobile") - public String getMobile() { - return mobile; - } - - @JsonIgnore - public void setMobile(String mobile) { - this.mobile = mobile; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("namePrefix") - public String getNamePrefix() { - return namePrefix; - } - - @JsonIgnore - public void setNamePrefix(String namePrefix) { - this.namePrefix = namePrefix; - } - - @JsonProperty("nameSuffix") - public String getNameSuffix() { - return nameSuffix; - } - - @JsonIgnore - public void setNameSuffix(String nameSuffix) { - this.nameSuffix = nameSuffix; - } - - @JsonProperty("nickName") - public String getNickName() { - return nickName; - } - - @JsonIgnore - public void setNickName(String nickName) { - this.nickName = nickName; - } - - @JsonProperty("notes") - public OneToMany getNotes() { - return notes; - } - - @ReadOnly - @JsonProperty("notes") - public void setNotes(OneToMany notes) { - this.notes = notes; - } - - @JsonProperty("numCategories") - public Integer getNumCategories() { - return numCategories; - } - - @JsonProperty("numCategories") - public void setNumCategories(Integer numCategories) { - this.numCategories = numCategories; - } - - @JsonProperty("numOwners") - public Integer getNumOwners() { - return numOwners; - } - - @JsonProperty("numOwners") - public void setNumOwners(Integer numOwners) { - this.numOwners = numOwners; - } - - @JsonProperty("occupation") - public String getOccupation() { - return occupation; - } - - @JsonIgnore - public void setOccupation(String occupation) { - this.occupation = occupation; - } - - @JsonProperty("owner") - public CorporateUser getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(CorporateUser owner) { - this.owner = owner; - } - - @JsonProperty("pager") - public String getPager() { - return pager; - } - - @JsonIgnore - public void setPager(String pager) { - this.pager = pager; - } - - @JsonProperty("paperWorkOnFile") - public String getPaperWorkOnFile() { - return paperWorkOnFile; - } - - @JsonIgnore - public void setPaperWorkOnFile(String paperWorkOnFile) { - this.paperWorkOnFile = paperWorkOnFile; - } - - @JsonProperty("password") - public String getPassword() { - return password; - } - - @JsonProperty("password") - public void setPassword(String password) { - this.password = password; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("phone2") - public String getPhone2() { - return phone2; - } - - @JsonIgnore - public void setPhone2(String phone2) { - this.phone2 = phone2; - } - - @JsonProperty("phone3") - public String getPhone3() { - return phone3; - } - - @JsonIgnore - public void setPhone3(String phone3) { - this.phone3 = phone3; - } - - @JsonProperty("placements") - public OneToMany getPlacements() { - return placements; - } - - @ReadOnly - @JsonProperty("placements") - public void setPlacements(OneToMany placements) { - this.placements = placements; - } - - @JsonProperty("preferredContact") - public String getPreferredContact() { - return preferredContact; - } - - @JsonIgnore - public void setPreferredContact(String preferredContact) { - this.preferredContact = preferredContact; - } - - @JsonIgnore - public OneToMany getPrimarySkills() { - return primarySkills; - } - - @JsonProperty("primarySkills") - public void setPrimarySkills(OneToMany primarySkills) { - this.primarySkills = primarySkills; - } - - @JsonProperty("recentClientList") - public String getRecentClientList() { - return recentClientList; - } - - @JsonIgnore - public void setRecentClientList(String recentClientList) { - this.recentClientList = recentClientList; - } - - @JsonProperty("referredBy") - public String getReferredBy() { - return referredBy; - } - - @JsonIgnore - public void setReferredBy(String referredBy) { - this.referredBy = referredBy; - } - - @JsonProperty("referredByPerson") - public Person getReferredByPerson() { - return referredByPerson; - } - - @JsonProperty("referredByPerson") - public void setReferredByPerson(Person referredByPerson) { - this.referredByPerson = referredByPerson; - } - - @JsonProperty("references") - public OneToMany getReferences() { - return references; - } - - @ReadOnly - @JsonProperty("references") - public void setReferences(OneToMany references) { - this.references = references; - } - - @JsonProperty("salary") - public BigDecimal getSalary() { - return salary; - } - - @JsonProperty("salary") - public void setSalary(BigDecimal salary) { - this.salary = salary; - } - - @JsonProperty("salaryLow") - public BigDecimal getSalaryLow() { - return salaryLow; - } - - @JsonProperty("salaryLow") - public void setSalaryLow(BigDecimal salaryLow) { - this.salaryLow = salaryLow; - } - - @JsonProperty("secondaryAddress") - public Address getSecondaryAddress() { - return secondaryAddress; - } - - @JsonProperty("secondaryAddress") - public void setSecondaryAddress(Address secondaryAddress) { - this.secondaryAddress = secondaryAddress; - } - - @JsonIgnore - public OneToMany getSecondaryOwners() { - return secondaryOwners; - } - - @JsonProperty("secondaryOwners") - public void setSecondaryOwners(OneToMany secondaryOwners) { - this.secondaryOwners = secondaryOwners; - } - - @JsonIgnore - public OneToMany getSecondarySkills() { - return secondarySkills; - } - - @JsonProperty("secondarySkills") - public void setSecondarySkills(OneToMany secondarySkills) { - this.secondarySkills = secondarySkills; - } - - @JsonProperty("sendouts") - public OneToMany getSendouts() { - return sendouts; - } - - @ReadOnly - @JsonProperty("sendouts") - public void setSendouts(OneToMany sendouts) { - this.sendouts = sendouts; - } - - @JsonProperty("skillSet") - public String getSkillSet() { - return skillSet; - } - - @JsonIgnore - public void setSkillSet(String skillSet) { - this.skillSet = skillSet; - } - - @JsonProperty("smsOptIn") - public Boolean getSmsOptIn() { - return smsOptIn; - } - - @JsonProperty("smsOptIn") - public void setSmsOptIn(Boolean smsOptIn) { - this.smsOptIn = smsOptIn; - } - - @JsonProperty("source") - public String getSource() { - return source; - } - - @JsonIgnore - public void setSource(String source) { - this.source = source; - } - - @JsonIgnore - public OneToMany getSpecialties() { - return specialties; - } - - @JsonProperty("specialties") - public void setSpecialties(OneToMany specialties) { - this.specialties = specialties; - } - - @JsonProperty("ssn") - public String getSsn() { - return ssn; - } - - @JsonProperty("ssn") - public void setSsn(String ssn) { - this.ssn = ssn; - } - - @JsonProperty("stateAddtionalWitholdingsAmount") - public BigDecimal getStateAddtionalWitholdingsAmount() { - return stateAddtionalWitholdingsAmount; - } - - @JsonProperty("stateAddtionalWitholdingsAmount") - public void setStateAddtionalWitholdingsAmount(BigDecimal stateAddtionalWitholdingsAmount) { - this.stateAddtionalWitholdingsAmount = stateAddtionalWitholdingsAmount; - } - - @JsonProperty("stateExemptions") - public Integer getStateExemptions() { - return stateExemptions; - } - - @JsonProperty("stateExemptions") - public void setStateExemptions(Integer stateExemptions) { - this.stateExemptions = stateExemptions; - } - - @JsonProperty("stateFilingStatus") - public String getStateFilingStatus() { - return stateFilingStatus; - } - - @JsonIgnore - public void setStateFilingStatus(String stateFilingStatus) { - this.stateFilingStatus = stateFilingStatus; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("submissions") - public OneToMany getSubmissions() { - return submissions; - } - - @ReadOnly - @JsonProperty("submissions") - public void setSubmissions(OneToMany submissions) { - this.submissions = submissions; - } - - @JsonProperty("tasks") - public OneToMany getTasks() { - return tasks; - } - - @ReadOnly - @JsonProperty("tasks") - public void setTasks(OneToMany tasks) { - this.tasks = tasks; - } - - @JsonProperty("taxID") - public String getTaxID() { - return taxID; - } - - @JsonIgnore - public void setTaxID(String taxID) { - this.taxID = taxID; - } - - @JsonProperty("taxState") - public String getTaxState() { - return taxState; - } - - @JsonIgnore - public void setTaxState(String taxState) { - this.taxState = taxState; - } - - @JsonProperty("tearsheets") - public OneToMany getTearsheets() { - return tearsheets; - } - - @JsonProperty("tearsheets") - public void setTearsheets(OneToMany tearsheets) { - this.tearsheets = tearsheets; - } - - @JsonProperty("timeZoneOffsetEST") - public Integer getTimeZoneOffsetEST() { - return timeZoneOffsetEST; - } - - @JsonProperty("timeZoneOffsetEST") - public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { - this.timeZoneOffsetEST = timeZoneOffsetEST; - } - - @JsonProperty("travelLimit") - public Integer getTravelLimit() { - return travelLimit; - } - - @JsonProperty("travelLimit") - public void setTravelLimit(Integer travelLimit) { - this.travelLimit = travelLimit; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("username") - public String getUsername() { - return username; - } - - @JsonIgnore - public void setUsername(String username) { - this.username = username; - } - - @JsonProperty("veteran") - public String getVeteran() { - return veteran; - } - - @JsonIgnore - public void setVeteran(String veteran) { - this.veteran = veteran; - } - - @JsonProperty("webResponses") - public OneToMany getWebResponses() { - return webResponses; - } - - @ReadOnly - @JsonProperty("webResponses") - public void setWebResponses(OneToMany webResponses) { - this.webResponses = webResponses; - } - - @JsonProperty("willRelocate") - public Boolean getWillRelocate() { - return willRelocate; - } - - @JsonProperty("willRelocate") - public void setWillRelocate(Boolean willRelocate) { - this.willRelocate = willRelocate; - } - - @JsonProperty("workAuthorized") - public Boolean getWorkAuthorized() { - return workAuthorized; - } - - @JsonProperty("workAuthorized") - public void setWorkAuthorized(Boolean workAuthorized) { - this.workAuthorized = workAuthorized; - } - - @JsonProperty("workHistories") - public OneToMany getWorkHistories() { - return workHistories; - } - - @ReadOnly - @JsonProperty("workHistories") - public void setWorkHistories(OneToMany workHistories) { - this.workHistories = workHistories; - } - - @JsonProperty("workPhone") - public String getWorkPhone() { - return workPhone; - } - - @JsonIgnore - public void setWorkPhone(String workPhone) { - this.workPhone = workPhone; - } - - @JsonProperty("customEncryptedText1") - public String getCustomEncryptedText1() { - return customEncryptedText1; - } - - @JsonProperty("customEncryptedText1") - @JsonIgnore - public void setCustomEncryptedText1(String customEncryptedText1) { - this.customEncryptedText1 = customEncryptedText1; - } - - @JsonProperty("customEncryptedText2") - public String getCustomEncryptedText2() { - return customEncryptedText2; - } - - @JsonProperty("customEncryptedText2") - @JsonIgnore - public void setCustomEncryptedText2(String customEncryptedText2) { - this.customEncryptedText2 = customEncryptedText2; - } - - @JsonProperty("customEncryptedText3") - public String getCustomEncryptedText3() { - return customEncryptedText3; - } - - @JsonProperty("customEncryptedText3") - @JsonIgnore - public void setCustomEncryptedText3(String customEncryptedText3) { - this.customEncryptedText3 = customEncryptedText3; - } - - @JsonProperty("customEncryptedText4") - public String getCustomEncryptedText4() { - return customEncryptedText4; - } - - @JsonProperty("customEncryptedText4") - @JsonIgnore - public void setCustomEncryptedText4(String customEncryptedText4) { - this.customEncryptedText4 = customEncryptedText4; - } - - @JsonProperty("customEncryptedText5") - public String getCustomEncryptedText5() { - return customEncryptedText5; - } - - @JsonProperty("customEncryptedText5") - @JsonIgnore - public void setCustomEncryptedText5(String customEncryptedText5) { - this.customEncryptedText5 = customEncryptedText5; - } - - @JsonProperty("customEncryptedText6") - public String getCustomEncryptedText6() { - return customEncryptedText6; - } - - @JsonProperty("customEncryptedText6") - @JsonIgnore - public void setCustomEncryptedText6(String customEncryptedText6) { - this.customEncryptedText6 = customEncryptedText6; - } - - @JsonProperty("customEncryptedText7") - public String getCustomEncryptedText7() { - return customEncryptedText7; - } - - @JsonProperty("customEncryptedText7") - @JsonIgnore - public void setCustomEncryptedText7(String customEncryptedText7) { - this.customEncryptedText7 = customEncryptedText7; - } - - @JsonProperty("customEncryptedText8") - public String getCustomEncryptedText8() { - return customEncryptedText8; - } - - @JsonProperty("customEncryptedText8") - @JsonIgnore - public void setCustomEncryptedText8(String customEncryptedText8) { - this.customEncryptedText8 = customEncryptedText8; - } - - @JsonProperty("customEncryptedText9") - public String getCustomEncryptedText9() { - return customEncryptedText9; - } - - @JsonProperty("customEncryptedText9") - @JsonIgnore - public void setCustomEncryptedText9(String customEncryptedText9) { - this.customEncryptedText9 = customEncryptedText9; - } - - @JsonProperty("customEncryptedText10") - public String getCustomEncryptedText10() { - return customEncryptedText10; - } - - @JsonProperty("customEncryptedText10") - @JsonIgnore - public void setCustomEncryptedText10(String customEncryptedText10) { - this.customEncryptedText10 = customEncryptedText10; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - Candidate candidate = (Candidate) o; - - if (luceneScore != null ? !luceneScore.equals(candidate.luceneScore) : candidate.luceneScore != null) - return false; - if (id != null ? !id.equals(candidate.id) : candidate.id != null) return false; - if (address != null ? !address.equals(candidate.address) : candidate.address != null) return false; - if (branch != null ? !branch.equals(candidate.branch) : candidate.branch != null) return false; - if (businessSectors != null ? !businessSectors.equals(candidate.businessSectors) : candidate.businessSectors != null) - return false; - if (canEnterTime != null ? !canEnterTime.equals(candidate.canEnterTime) : candidate.canEnterTime != null) return false; - if (categories != null ? !categories.equals(candidate.categories) : candidate.categories != null) return false; - if (category != null ? !category.equals(candidate.category) : candidate.category != null) return false; - if (certificationList != null ? !certificationList.equals(candidate.certificationList) : candidate.certificationList != null) - return false; - if (certifications != null ? !certifications.equals(candidate.certifications) : candidate.certifications != null) - return false; - if (clientCorporationBlackList != null ? !clientCorporationBlackList.equals(candidate.clientCorporationBlackList) : candidate.clientCorporationBlackList != null) - return false; - if (clientCorporationWhiteList != null ? !clientCorporationWhiteList.equals(candidate.clientCorporationWhiteList) : candidate.clientCorporationWhiteList != null) - return false; - if (comments != null ? !comments.equals(candidate.comments) : candidate.comments != null) return false; - if (companyName != null ? !companyName.equals(candidate.companyName) : candidate.companyName != null) - return false; - if (companyURL != null ? !companyURL.equals(candidate.companyURL) : candidate.companyURL != null) return false; - if (dateAdded != null ? !dateAdded.equals(candidate.dateAdded) : candidate.dateAdded != null) return false; - if (dateAvailable != null ? !dateAvailable.equals(candidate.dateAvailable) : candidate.dateAvailable != null) - return false; - if (dateAvailableEnd != null ? !dateAvailableEnd.equals(candidate.dateAvailableEnd) : candidate.dateAvailableEnd != null) - return false; - if (dateI9Expiration != null ? !dateI9Expiration.equals(candidate.dateI9Expiration) : candidate.dateI9Expiration != null) - return false; - if (dateLastComment != null ? !dateLastComment.equals(candidate.dateLastComment) : candidate.dateLastComment != null) - return false; - if (dateLastModified != null ? !dateLastModified.equals(candidate.dateLastModified) : candidate.dateLastModified != null) - return false; - if (dateNextCall != null ? !dateNextCall.equals(candidate.dateNextCall) : candidate.dateNextCall != null) - return false; - if (dateOfBirth != null ? !dateOfBirth.equals(candidate.dateOfBirth) : candidate.dateOfBirth != null) - return false; - if (dayRate != null ? !dayRate.equals(candidate.dayRate) : candidate.dayRate != null) return false; - if (dayRateLow != null ? !dayRateLow.equals(candidate.dayRateLow) : candidate.dayRateLow != null) return false; - if (degreeList != null ? !degreeList.equals(candidate.degreeList) : candidate.degreeList != null) return false; - if (description != null ? !description.equals(candidate.description) : candidate.description != null) - return false; - if (desiredLocations != null ? !desiredLocations.equals(candidate.desiredLocations) : candidate.desiredLocations != null) - return false; - if (disability != null ? !disability.equals(candidate.disability) : candidate.disability != null) return false; - if (educationDegree != null ? !educationDegree.equals(candidate.educationDegree) : candidate.educationDegree != null) - return false; - if (educations != null ? !educations.equals(candidate.educations) : candidate.educations != null) return false; - if (email != null ? !email.equals(candidate.email) : candidate.email != null) return false; - if (email2 != null ? !email2.equals(candidate.email2) : candidate.email2 != null) return false; - if (email3 != null ? !email3.equals(candidate.email3) : candidate.email3 != null) return false; - if (employeeType != null ? !employeeType.equals(candidate.employeeType) : candidate.employeeType != null) - return false; - if (employmentPreference != null ? !employmentPreference.equals(candidate.employmentPreference) : candidate.employmentPreference != null) - return false; - if (ethnicity != null ? !ethnicity.equals(candidate.ethnicity) : candidate.ethnicity != null) return false; - if (experience != null ? !experience.equals(candidate.experience) : candidate.experience != null) return false; - if (externalID != null ? !externalID.equals(candidate.externalID) : candidate.externalID != null) return false; - if (fax != null ? !fax.equals(candidate.fax) : candidate.fax != null) return false; - if (fax2 != null ? !fax2.equals(candidate.fax2) : candidate.fax2 != null) return false; - if (fax3 != null ? !fax3.equals(candidate.fax3) : candidate.fax3 != null) return false; - if (federalAddtionalWitholdingsAmount != null ? !federalAddtionalWitholdingsAmount.equals(candidate.federalAddtionalWitholdingsAmount) : candidate.federalAddtionalWitholdingsAmount != null) - return false; - if (federalExemptions != null ? !federalExemptions.equals(candidate.federalExemptions) : candidate.federalExemptions != null) - return false; - if (federalFilingStatus != null ? !federalFilingStatus.equals(candidate.federalFilingStatus) : candidate.federalFilingStatus != null) - return false; - if (fileAttachments != null ? !fileAttachments.equals(candidate.fileAttachments) : candidate.fileAttachments != null) - return false; - if (firstName != null ? !firstName.equals(candidate.firstName) : candidate.firstName != null) return false; - if (gender != null ? !gender.equals(candidate.gender) : candidate.gender != null) return false; - if (hourlyRate != null ? !hourlyRate.equals(candidate.hourlyRate) : candidate.hourlyRate != null) return false; - if (hourlyRateLow != null ? !hourlyRateLow.equals(candidate.hourlyRateLow) : candidate.hourlyRateLow != null) - return false; - if (interviews != null ? !interviews.equals(candidate.interviews) : candidate.interviews != null) return false; - if (i9OnFile != null ? !i9OnFile.equals(candidate.i9OnFile) : candidate.i9OnFile != null) return false; - if (isDayLightSavings != null ? !isDayLightSavings.equals(candidate.isDayLightSavings) : candidate.isDayLightSavings != null) - return false; - if (isDeleted != null ? !isDeleted.equals(candidate.isDeleted) : candidate.isDeleted != null) return false; - if (isEditable != null ? !isEditable.equals(candidate.isEditable) : candidate.isEditable != null) return false; - if (isLockedOut != null ? !isLockedOut.equals(candidate.isLockedOut) : candidate.isLockedOut != null) - return false; - if (isAnonymized != null ? !isAnonymized.equals(candidate.isAnonymized) : candidate.isAnonymized != null) - return false; - if (lastName != null ? !lastName.equals(candidate.lastName) : candidate.lastName != null) return false; - if (linkedPerson != null ? !linkedPerson.equals(candidate.linkedPerson) : candidate.linkedPerson != null) - return false; - if (leads != null ? !leads.equals(candidate.leads) : candidate.leads != null) return false; - if (localAddtionalWitholdingsAmount != null ? !localAddtionalWitholdingsAmount.equals(candidate.localAddtionalWitholdingsAmount) : candidate.localAddtionalWitholdingsAmount != null) - return false; - if (localExemptions != null ? !localExemptions.equals(candidate.localExemptions) : candidate.localExemptions != null) - return false; - if (localFilingStatus != null ? !localFilingStatus.equals(candidate.localFilingStatus) : candidate.localFilingStatus != null) - return false; - if (localTaxCode != null ? !localTaxCode.equals(candidate.localTaxCode) : candidate.localTaxCode != null) - return false; - if (massMailOptOut != null ? !massMailOptOut.equals(candidate.massMailOptOut) : candidate.massMailOptOut != null) - return false; - if (middleName != null ? !middleName.equals(candidate.middleName) : candidate.middleName != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(candidate.migrateGUID) : candidate.migrateGUID != null) - return false; - if (mobile != null ? !mobile.equals(candidate.mobile) : candidate.mobile != null) return false; - if (name != null ? !name.equals(candidate.name) : candidate.name != null) return false; - if (namePrefix != null ? !namePrefix.equals(candidate.namePrefix) : candidate.namePrefix != null) return false; - if (nameSuffix != null ? !nameSuffix.equals(candidate.nameSuffix) : candidate.nameSuffix != null) return false; - if (nickName != null ? !nickName.equals(candidate.nickName) : candidate.nickName != null) return false; - if (notes != null ? !notes.equals(candidate.notes) : candidate.notes != null) return false; - if (numCategories != null ? !numCategories.equals(candidate.numCategories) : candidate.numCategories != null) - return false; - if (numOwners != null ? !numOwners.equals(candidate.numOwners) : candidate.numOwners != null) return false; - if (occupation != null ? !occupation.equals(candidate.occupation) : candidate.occupation != null) return false; - if (owner != null ? !owner.equals(candidate.owner) : candidate.owner != null) return false; - if (pager != null ? !pager.equals(candidate.pager) : candidate.pager != null) return false; - if (paperWorkOnFile != null ? !paperWorkOnFile.equals(candidate.paperWorkOnFile) : candidate.paperWorkOnFile != null) - return false; - if (password != null ? !password.equals(candidate.password) : candidate.password != null) return false; - if (phone != null ? !phone.equals(candidate.phone) : candidate.phone != null) return false; - if (phone2 != null ? !phone2.equals(candidate.phone2) : candidate.phone2 != null) return false; - if (phone3 != null ? !phone3.equals(candidate.phone3) : candidate.phone3 != null) return false; - if (placements != null ? !placements.equals(candidate.placements) : candidate.placements != null) return false; - if (preferredContact != null ? !preferredContact.equals(candidate.preferredContact) : candidate.preferredContact != null) - return false; - if (primarySkills != null ? !primarySkills.equals(candidate.primarySkills) : candidate.primarySkills != null) - return false; - if (recentClientList != null ? !recentClientList.equals(candidate.recentClientList) : candidate.recentClientList != null) - return false; - if (referredBy != null ? !referredBy.equals(candidate.referredBy) : candidate.referredBy != null) return false; - if (referredByPerson != null ? !referredByPerson.equals(candidate.referredByPerson) : candidate.referredByPerson != null) - return false; - if (references != null ? !references.equals(candidate.references) : candidate.references != null) return false; - if (salary != null ? !salary.equals(candidate.salary) : candidate.salary != null) return false; - if (salaryLow != null ? !salaryLow.equals(candidate.salaryLow) : candidate.salaryLow != null) return false; - if (secondaryAddress != null ? !secondaryAddress.equals(candidate.secondaryAddress) : candidate.secondaryAddress != null) - return false; - if (secondaryOwners != null ? !secondaryOwners.equals(candidate.secondaryOwners) : candidate.secondaryOwners != null) - return false; - if (secondarySkills != null ? !secondarySkills.equals(candidate.secondarySkills) : candidate.secondarySkills != null) - return false; - if (sendouts != null ? !sendouts.equals(candidate.sendouts) : candidate.sendouts != null) return false; - if (skillSet != null ? !skillSet.equals(candidate.skillSet) : candidate.skillSet != null) return false; - if (smsOptIn != null ? !smsOptIn.equals(candidate.smsOptIn) : candidate.smsOptIn != null) return false; - if (source != null ? !source.equals(candidate.source) : candidate.source != null) return false; - if (specialties != null ? !specialties.equals(candidate.specialties) : candidate.specialties != null) - return false; - if (ssn != null ? !ssn.equals(candidate.ssn) : candidate.ssn != null) return false; - if (stateAddtionalWitholdingsAmount != null ? !stateAddtionalWitholdingsAmount.equals(candidate.stateAddtionalWitholdingsAmount) : candidate.stateAddtionalWitholdingsAmount != null) - return false; - if (stateExemptions != null ? !stateExemptions.equals(candidate.stateExemptions) : candidate.stateExemptions != null) - return false; - if (stateFilingStatus != null ? !stateFilingStatus.equals(candidate.stateFilingStatus) : candidate.stateFilingStatus != null) - return false; - if (status != null ? !status.equals(candidate.status) : candidate.status != null) return false; - if (submissions != null ? !submissions.equals(candidate.submissions) : candidate.submissions != null) - return false; - if (tasks != null ? !tasks.equals(candidate.tasks) : candidate.tasks != null) return false; - if (taxID != null ? !taxID.equals(candidate.taxID) : candidate.taxID != null) return false; - if (taxState != null ? !taxState.equals(candidate.taxState) : candidate.taxState != null) return false; - if (tearsheets != null ? !tearsheets.equals(candidate.tearsheets) : candidate.tearsheets != null) return false; - if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(candidate.timeZoneOffsetEST) : candidate.timeZoneOffsetEST != null) - return false; - if (travelLimit != null ? !travelLimit.equals(candidate.travelLimit) : candidate.travelLimit != null) - return false; - if (type != null ? !type.equals(candidate.type) : candidate.type != null) return false; - if (username != null ? !username.equals(candidate.username) : candidate.username != null) return false; - if (veteran != null ? !veteran.equals(candidate.veteran) : candidate.veteran != null) return false; - if (webResponses != null ? !webResponses.equals(candidate.webResponses) : candidate.webResponses != null) - return false; - if (willRelocate != null ? !willRelocate.equals(candidate.willRelocate) : candidate.willRelocate != null) - return false; - if (workAuthorized != null ? !workAuthorized.equals(candidate.workAuthorized) : candidate.workAuthorized != null) - return false; - if (workHistories != null ? !workHistories.equals(candidate.workHistories) : candidate.workHistories != null) - return false; - if (customObject1s != null ? !customObject1s.equals(candidate.customObject1s) : candidate.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(candidate.customObject2s) : candidate.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(candidate.customObject3s) : candidate.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(candidate.customObject4s) : candidate.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(candidate.customObject5s) : candidate.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(candidate.customObject6s) : candidate.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(candidate.customObject7s) : candidate.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(candidate.customObject8s) : candidate.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(candidate.customObject9s) : candidate.customObject9s != null) - return false; - if (customObject10s != null ? !customObject10s.equals(candidate.customObject10s) : candidate.customObject10s != null) - return false; - if (customEncryptedText1 != null ? !customEncryptedText1.equals(candidate.customEncryptedText1) : candidate.customEncryptedText1 != null) - return false; - if (customEncryptedText2 != null ? !customEncryptedText2.equals(candidate.customEncryptedText2) : candidate.customEncryptedText2 != null) - return false; - if (customEncryptedText3 != null ? !customEncryptedText3.equals(candidate.customEncryptedText3) : candidate.customEncryptedText3 != null) - return false; - if (customEncryptedText4 != null ? !customEncryptedText4.equals(candidate.customEncryptedText4) : candidate.customEncryptedText4 != null) - return false; - if (customEncryptedText5 != null ? !customEncryptedText5.equals(candidate.customEncryptedText5) : candidate.customEncryptedText5 != null) - return false; - if (customEncryptedText6 != null ? !customEncryptedText6.equals(candidate.customEncryptedText6) : candidate.customEncryptedText6 != null) - return false; - if (customEncryptedText7 != null ? !customEncryptedText7.equals(candidate.customEncryptedText7) : candidate.customEncryptedText7 != null) - return false; - if (customEncryptedText8 != null ? !customEncryptedText8.equals(candidate.customEncryptedText8) : candidate.customEncryptedText8 != null) - return false; - if (customEncryptedText9 != null ? !customEncryptedText9.equals(candidate.customEncryptedText9) : candidate.customEncryptedText9 != null) - return false; - if (customEncryptedText10 != null ? !customEncryptedText10.equals(candidate.customEncryptedText10) : candidate.customEncryptedText10 != null) - return false; - return workPhone != null ? workPhone.equals(candidate.workPhone) : candidate.workPhone == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (luceneScore != null ? luceneScore.hashCode() : 0); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (canEnterTime != null ? canEnterTime.hashCode() : 0); - result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); - result = 31 * result + (categories != null ? categories.hashCode() : 0); - result = 31 * result + (category != null ? category.hashCode() : 0); - result = 31 * result + (certificationList != null ? certificationList.hashCode() : 0); - result = 31 * result + (certifications != null ? certifications.hashCode() : 0); - result = 31 * result + (clientCorporationBlackList != null ? clientCorporationBlackList.hashCode() : 0); - result = 31 * result + (clientCorporationWhiteList != null ? clientCorporationWhiteList.hashCode() : 0); - result = 31 * result + (comments != null ? comments.hashCode() : 0); - result = 31 * result + (companyName != null ? companyName.hashCode() : 0); - result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateAvailable != null ? dateAvailable.hashCode() : 0); - result = 31 * result + (dateAvailableEnd != null ? dateAvailableEnd.hashCode() : 0); - result = 31 * result + (dateI9Expiration != null ? dateI9Expiration.hashCode() : 0); - result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (dateNextCall != null ? dateNextCall.hashCode() : 0); - result = 31 * result + (dateOfBirth != null ? dateOfBirth.hashCode() : 0); - result = 31 * result + (dayRate != null ? dayRate.hashCode() : 0); - result = 31 * result + (dayRateLow != null ? dayRateLow.hashCode() : 0); - result = 31 * result + (degreeList != null ? degreeList.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (desiredLocations != null ? desiredLocations.hashCode() : 0); - result = 31 * result + (disability != null ? disability.hashCode() : 0); - result = 31 * result + (educationDegree != null ? educationDegree.hashCode() : 0); - result = 31 * result + (educations != null ? educations.hashCode() : 0); - result = 31 * result + (email != null ? email.hashCode() : 0); - result = 31 * result + (email2 != null ? email2.hashCode() : 0); - result = 31 * result + (email3 != null ? email3.hashCode() : 0); - result = 31 * result + (employeeType != null ? employeeType.hashCode() : 0); - result = 31 * result + (employmentPreference != null ? employmentPreference.hashCode() : 0); - result = 31 * result + (ethnicity != null ? ethnicity.hashCode() : 0); - result = 31 * result + (experience != null ? experience.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); - result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); - result = 31 * result + (federalAddtionalWitholdingsAmount != null ? federalAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (federalExemptions != null ? federalExemptions.hashCode() : 0); - result = 31 * result + (federalFilingStatus != null ? federalFilingStatus.hashCode() : 0); - result = 31 * result + (fileAttachments != null ? fileAttachments.hashCode() : 0); - result = 31 * result + (firstName != null ? firstName.hashCode() : 0); - result = 31 * result + (gender != null ? gender.hashCode() : 0); - result = 31 * result + (hourlyRate != null ? hourlyRate.hashCode() : 0); - result = 31 * result + (hourlyRateLow != null ? hourlyRateLow.hashCode() : 0); - result = 31 * result + (interviews != null ? interviews.hashCode() : 0); - result = 31 * result + (i9OnFile != null ? i9OnFile.hashCode() : 0); - result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isEditable != null ? isEditable.hashCode() : 0); - result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); - result = 31 * result + (isAnonymized != null ? isAnonymized.hashCode() : 0); - result = 31 * result + (lastName != null ? lastName.hashCode() : 0); - result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (localAddtionalWitholdingsAmount != null ? localAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (localExemptions != null ? localExemptions.hashCode() : 0); - result = 31 * result + (localFilingStatus != null ? localFilingStatus.hashCode() : 0); - result = 31 * result + (localTaxCode != null ? localTaxCode.hashCode() : 0); - result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); - result = 31 * result + (middleName != null ? middleName.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (mobile != null ? mobile.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); - result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); - result = 31 * result + (nickName != null ? nickName.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numCategories != null ? numCategories.hashCode() : 0); - result = 31 * result + (numOwners != null ? numOwners.hashCode() : 0); - result = 31 * result + (occupation != null ? occupation.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (pager != null ? pager.hashCode() : 0); - result = 31 * result + (paperWorkOnFile != null ? paperWorkOnFile.hashCode() : 0); - result = 31 * result + (password != null ? password.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); - result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); - result = 31 * result + (placements != null ? placements.hashCode() : 0); - result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); - result = 31 * result + (primarySkills != null ? primarySkills.hashCode() : 0); - result = 31 * result + (recentClientList != null ? recentClientList.hashCode() : 0); - result = 31 * result + (referredBy != null ? referredBy.hashCode() : 0); - result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); - result = 31 * result + (references != null ? references.hashCode() : 0); - result = 31 * result + (salary != null ? salary.hashCode() : 0); - result = 31 * result + (salaryLow != null ? salaryLow.hashCode() : 0); - result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); - result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); - result = 31 * result + (secondarySkills != null ? secondarySkills.hashCode() : 0); - result = 31 * result + (sendouts != null ? sendouts.hashCode() : 0); - result = 31 * result + (skillSet != null ? skillSet.hashCode() : 0); - result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); - result = 31 * result + (source != null ? source.hashCode() : 0); - result = 31 * result + (specialties != null ? specialties.hashCode() : 0); - result = 31 * result + (ssn != null ? ssn.hashCode() : 0); - result = 31 * result + (stateAddtionalWitholdingsAmount != null ? stateAddtionalWitholdingsAmount.hashCode() : 0); - result = 31 * result + (stateExemptions != null ? stateExemptions.hashCode() : 0); - result = 31 * result + (stateFilingStatus != null ? stateFilingStatus.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (submissions != null ? submissions.hashCode() : 0); - result = 31 * result + (tasks != null ? tasks.hashCode() : 0); - result = 31 * result + (taxID != null ? taxID.hashCode() : 0); - result = 31 * result + (taxState != null ? taxState.hashCode() : 0); - result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); - result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); - result = 31 * result + (travelLimit != null ? travelLimit.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - result = 31 * result + (username != null ? username.hashCode() : 0); - result = 31 * result + (veteran != null ? veteran.hashCode() : 0); - result = 31 * result + (webResponses != null ? webResponses.hashCode() : 0); - result = 31 * result + (willRelocate != null ? willRelocate.hashCode() : 0); - result = 31 * result + (workAuthorized != null ? workAuthorized.hashCode() : 0); - result = 31 * result + (workHistories != null ? workHistories.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - result = 31 * result + (workPhone != null ? workPhone.hashCode() : 0); - result = 31 * result + ((customEncryptedText1 == null) ? 0 : customEncryptedText1.hashCode()); - result = 31 * result + ((customEncryptedText2 == null) ? 0 : customEncryptedText2.hashCode()); - result = 31 * result + ((customEncryptedText3 == null) ? 0 : customEncryptedText3.hashCode()); - result = 31 * result + ((customEncryptedText4 == null) ? 0 : customEncryptedText4.hashCode()); - result = 31 * result + ((customEncryptedText5 == null) ? 0 : customEncryptedText5.hashCode()); - result = 31 * result + ((customEncryptedText6 == null) ? 0 : customEncryptedText6.hashCode()); - result = 31 * result + ((customEncryptedText7 == null) ? 0 : customEncryptedText7.hashCode()); - result = 31 * result + ((customEncryptedText8 == null) ? 0 : customEncryptedText8.hashCode()); - result = 31 * result + ((customEncryptedText9 == null) ? 0 : customEncryptedText9.hashCode()); - result = 31 * result + ((customEncryptedText10 == null) ? 0 : customEncryptedText10.hashCode()); - return result; - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull()); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); - } - if(canEnterTime != null){ - sb.append(lbc + "canEnterTime=").append(canEnterTime); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull()); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull()); - } - if(certificationList != null){ - sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull()); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientCorporationBlackList != null){ - sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull()); - } - if(clientCorporationWhiteList != null){ - sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull()); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(companyName != null){ - sb.append(lbc + "companyName=").append(companyName); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateAvailable != null){ - sb.append(lbc + "dateAvailable=").append(dateAvailable); - } - if(dateAvailableEnd != null){ - sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); - } - if(dateI9Expiration != null){ - sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateNextCall != null){ - sb.append(lbc + "dateNextCall=").append(dateNextCall); - } - if(dateOfBirth != null){ - sb.append(lbc + "dateOfBirth=").append(dateOfBirth); - } - if(dayRate != null){ - sb.append(lbc + "dayRate=").append(dayRate); - } - if(dayRateLow != null){ - sb.append(lbc + "dayRateLow=").append(dayRateLow); - } - if(degreeList != null){ - sb.append(lbc + "degreeList=").append(degreeList); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredLocations != null){ - sb.append(lbc + "desiredLocations=").append(desiredLocations); - } - if(disability != null){ - sb.append(lbc + "disability=").append(disability); - } - if(educationDegree != null){ - sb.append(lbc + "educationDegree=").append(educationDegree); - } - if(educations != null){ - sb.append(lbc + "educations=").append(educations.toStringNonNull()); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(employeeType != null){ - sb.append(lbc + "employeeType=").append(employeeType); - } - if(employmentPreference != null){ - sb.append(lbc + "employmentPreference=").append(employmentPreference); - } - if(ethnicity != null){ - sb.append(lbc + "ethnicity=").append(ethnicity); - } - if(experience != null){ - sb.append(lbc + "experience=").append(experience); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(federalAddtionalWitholdingsAmount != null){ - sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - } - if(federalExemptions != null){ - sb.append(lbc + "federalExemptions=").append(federalExemptions); - } - if(federalFilingStatus != null){ - sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); - } - if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(gender != null){ - sb.append(lbc + "gender=").append(gender); - } - if(hourlyRate != null){ - sb.append(lbc + "hourlyRate=").append(hourlyRate); - } - if(hourlyRateLow != null){ - sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); - } - if(interviews != null){ - sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); - } - if(i9OnFile != null){ - sb.append(lbc + "i9OnFile=").append(i9OnFile); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isEditable != null){ - sb.append(lbc + "isEditable=").append(isEditable); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(isAnonymized != null){ - sb.append(lbc + "isAnonymized=").append(isAnonymized); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(localAddtionalWitholdingsAmount != null){ - sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - } - if(localExemptions != null){ - sb.append(lbc + "localExemptions=").append(localExemptions); - } - if(localFilingStatus != null){ - sb.append(lbc + "localFilingStatus=").append(localFilingStatus); - } - if(localTaxCode != null){ - sb.append(lbc + "localTaxCode=").append(localTaxCode); - } - if(luceneScore != null){ - sb.append(lbc + "luceneScore=").append(luceneScore); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull()); - } - if(numCategories != null){ - sb.append(lbc + "numCategories=").append(numCategories); - } - if(numOwners != null){ - sb.append(lbc + "numOwners=").append(numOwners); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull()); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(paperWorkOnFile != null){ - sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(placements != null){ - sb.append(lbc + "placements=").append(placements.toStringNonNull()); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(primarySkills != null){ - sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull()); - } - if(recentClientList != null){ - sb.append(lbc + "recentClientList=").append(recentClientList); - } - if(referredBy != null){ - sb.append(lbc + "referredBy=").append(referredBy); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); - } - if(references != null){ - sb.append(lbc + "references=").append(references.toStringNonNull()); - } - if(salary != null){ - sb.append(lbc + "salary=").append(salary); - } - if(salaryLow != null){ - sb.append(lbc + "salaryLow=").append(salaryLow); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); - } - if(secondarySkills != null){ - sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull()); - } - if(sendouts != null){ - sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); - } - if(skillSet != null){ - sb.append(lbc + "skillSet=").append(skillSet); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); - } - if(ssn != null){ - sb.append(lbc + "ssn=").append(ssn); - } - if(stateAddtionalWitholdingsAmount != null){ - sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - } - if(stateExemptions != null){ - sb.append(lbc + "stateExemptions=").append(stateExemptions); - } - if(stateFilingStatus != null){ - sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(submissions != null){ - sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); - } - if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); - } - if(taxID != null){ - sb.append(lbc + "taxID=").append(taxID); - } - if(taxState != null){ - sb.append(lbc + "taxState=").append(taxState); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(travelLimit != null){ - sb.append(lbc + "travelLimit=").append(travelLimit); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(veteran != null){ - sb.append(lbc + "veteran=").append(veteran); - } - if(webResponses != null){ - sb.append(lbc + "webResponses=").append(webResponses); - } - if(willRelocate != null){ - sb.append(lbc + "willRelocate=").append(willRelocate); - } - if(workAuthorized != null){ - sb.append(lbc + "workAuthorized=").append(workAuthorized); - } - if(workHistories != null){ - sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull()); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - if(customEncryptedText1 != null){ - sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); - } - if(customEncryptedText2 != null){ - sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); - } - if(customEncryptedText3 != null){ - sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); - } - if(customEncryptedText4 != null){ - sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); - } - if(customEncryptedText5 != null){ - sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); - } - if(customEncryptedText6 != null){ - sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); - } - if(customEncryptedText7 != null){ - sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); - } - if(customEncryptedText8 != null){ - sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); - } - if(customEncryptedText9 != null){ - sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); - } - if(customEncryptedText10 != null){ - sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); - } - if(workPhone != null){ - sb.append(lbc + "workPhone=").append(workPhone); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); - } - if(canEnterTime != null){ - sb.append(lbc + "canEnterTime=").append(canEnterTime); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); - } - if(certificationList != null){ - sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull(includeLineBreaks)); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientCorporationBlackList != null){ - sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull(includeLineBreaks)); - } - if(clientCorporationWhiteList != null){ - sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull(includeLineBreaks)); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(companyName != null){ - sb.append(lbc + "companyName=").append(companyName); - } - if(companyURL != null){ - sb.append(lbc + "companyURL=").append(companyURL); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateAvailable != null){ - sb.append(lbc + "dateAvailable=").append(dateAvailable); - } - if(dateAvailableEnd != null){ - sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); - } - if(dateI9Expiration != null){ - sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateNextCall != null){ - sb.append(lbc + "dateNextCall=").append(dateNextCall); - } - if(dateOfBirth != null){ - sb.append(lbc + "dateOfBirth=").append(dateOfBirth); - } - if(dayRate != null){ - sb.append(lbc + "dayRate=").append(dayRate); - } - if(dayRateLow != null){ - sb.append(lbc + "dayRateLow=").append(dayRateLow); - } - if(degreeList != null){ - sb.append(lbc + "degreeList=").append(degreeList); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredLocations != null){ - sb.append(lbc + "desiredLocations=").append(desiredLocations); - } - if(disability != null){ - sb.append(lbc + "disability=").append(disability); - } - if(educationDegree != null){ - sb.append(lbc + "educationDegree=").append(educationDegree); - } - if(educations != null){ - sb.append(lbc + "educations=").append(educations.toStringNonNull(includeLineBreaks)); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(employeeType != null){ - sb.append(lbc + "employeeType=").append(employeeType); - } - if(employmentPreference != null){ - sb.append(lbc + "employmentPreference=").append(employmentPreference); - } - if(ethnicity != null){ - sb.append(lbc + "ethnicity=").append(ethnicity); - } - if(experience != null){ - sb.append(lbc + "experience=").append(experience); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(federalAddtionalWitholdingsAmount != null){ - sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - } - if(federalExemptions != null){ - sb.append(lbc + "federalExemptions=").append(federalExemptions); - } - if(federalFilingStatus != null){ - sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); - } - if(fileAttachments != null){ - sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(gender != null){ - sb.append(lbc + "gender=").append(gender); - } - if(hourlyRate != null){ - sb.append(lbc + "hourlyRate=").append(hourlyRate); - } - if(hourlyRateLow != null){ - sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); - } - if(interviews != null){ - sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); - } - if(i9OnFile != null){ - sb.append(lbc + "i9OnFile=").append(i9OnFile); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isEditable != null){ - sb.append(lbc + "isEditable=").append(isEditable); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(isAnonymized != null){ - sb.append(lbc + "isAnonymized=").append(isAnonymized); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull(includeLineBreaks)); - } - if(localAddtionalWitholdingsAmount != null){ - sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - } - if(localExemptions != null){ - sb.append(lbc + "localExemptions=").append(localExemptions); - } - if(localFilingStatus != null){ - sb.append(lbc + "localFilingStatus=").append(localFilingStatus); - } - if(localTaxCode != null){ - sb.append(lbc + "localTaxCode=").append(localTaxCode); - } - if(luceneScore != null){ - sb.append(lbc + "luceneScore=").append(luceneScore); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); - } - if(numCategories != null){ - sb.append(lbc + "numCategories=").append(numCategories); - } - if(numOwners != null){ - sb.append(lbc + "numOwners=").append(numOwners); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(paperWorkOnFile != null){ - sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(placements != null){ - sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(primarySkills != null){ - sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); - } - if(recentClientList != null){ - sb.append(lbc + "recentClientList=").append(recentClientList); - } - if(referredBy != null){ - sb.append(lbc + "referredBy=").append(referredBy); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); - } - if(references != null){ - sb.append(lbc + "references=").append(references.toStringNonNull(includeLineBreaks)); - } - if(salary != null){ - sb.append(lbc + "salary=").append(salary); - } - if(salaryLow != null){ - sb.append(lbc + "salaryLow=").append(salaryLow); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); - } - if(secondarySkills != null){ - sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); - } - if(sendouts != null){ - sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); - } - if(skillSet != null){ - sb.append(lbc + "skillSet=").append(skillSet); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); - } - if(ssn != null){ - sb.append(lbc + "ssn=").append(ssn); - } - if(stateAddtionalWitholdingsAmount != null){ - sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - } - if(stateExemptions != null){ - sb.append(lbc + "stateExemptions=").append(stateExemptions); - } - if(stateFilingStatus != null){ - sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(submissions != null){ - sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); - } - if(tasks != null){ - sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); - } - if(taxID != null){ - sb.append(lbc + "taxID=").append(taxID); - } - if(taxState != null){ - sb.append(lbc + "taxState=").append(taxState); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(travelLimit != null){ - sb.append(lbc + "travelLimit=").append(travelLimit); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(veteran != null){ - sb.append(lbc + "veteran=").append(veteran); - } - if(webResponses != null){ - sb.append(lbc + "webResponses=").append(webResponses); - } - if(willRelocate != null){ - sb.append(lbc + "willRelocate=").append(willRelocate); - } - if(workAuthorized != null){ - sb.append(lbc + "workAuthorized=").append(workAuthorized); - } - if(workHistories != null){ - sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull(includeLineBreaks)); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(customEncryptedText1 != null){ - sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); - } - if(customEncryptedText2 != null){ - sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); - } - if(customEncryptedText3 != null){ - sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); - } - if(customEncryptedText4 != null){ - sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); - } - if(customEncryptedText5 != null){ - sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); - } - if(customEncryptedText6 != null){ - sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); - } - if(customEncryptedText7 != null){ - sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); - } - if(customEncryptedText8 != null){ - sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); - } - if(customEncryptedText9 != null){ - sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); - } - if(customEncryptedText10 != null){ - sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); - } - if(workPhone != null){ - sb.append(lbc + "workPhone=").append(workPhone); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", branch=").append(branch); - sb.append(", businessSectors=").append(businessSectors); - sb.append(", canEnterTime=").append(canEnterTime); - sb.append(", categories=").append(categories); - sb.append(", category=").append(category); - sb.append(", certificationList=").append(certificationList); - sb.append(", certifications=").append(certifications); - sb.append(", clientCorporationBlackList=").append(clientCorporationBlackList); - sb.append(", clientCorporationWhiteList=").append(clientCorporationWhiteList); - sb.append(", comments=").append(comments); - sb.append(", companyName=").append(companyName); - sb.append(", companyURL=").append(companyURL); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateAvailable=").append(dateAvailable); - sb.append(", dateAvailableEnd=").append(dateAvailableEnd); - sb.append(", dateI9Expiration=").append(dateI9Expiration); - sb.append(", dateLastComment=").append(dateLastComment); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", dateNextCall=").append(dateNextCall); - sb.append(", dateOfBirth=").append(dateOfBirth); - sb.append(", dayRate=").append(dayRate); - sb.append(", dayRateLow=").append(dayRateLow); - sb.append(", degreeList=").append(degreeList); - sb.append(", description=").append(description); - sb.append(", desiredLocations=").append(desiredLocations); - sb.append(", disability=").append(disability); - sb.append(", educationDegree=").append(educationDegree); - sb.append(", educations=").append(educations); - sb.append(", email=").append(email); - sb.append(", email2=").append(email2); - sb.append(", email3=").append(email3); - sb.append(", employeeType=").append(employeeType); - sb.append(", employmentPreference=").append(employmentPreference); - sb.append(", ethnicity=").append(ethnicity); - sb.append(", experience=").append(experience); - sb.append(", externalID=").append(externalID); - sb.append(", fax=").append(fax); - sb.append(", fax2=").append(fax2); - sb.append(", fax3=").append(fax3); - sb.append(", federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); - sb.append(", federalExemptions=").append(federalExemptions); - sb.append(", federalFilingStatus=").append(federalFilingStatus); - sb.append(", fileAttachments=").append(fileAttachments); - sb.append(", firstName=").append(firstName); - sb.append(", gender=").append(gender); - sb.append(", hourlyRate=").append(hourlyRate); - sb.append(", hourlyRateLow=").append(hourlyRateLow); - sb.append(", interviews=").append(interviews); - sb.append(", i9OnFile=").append(i9OnFile); - sb.append(", isDayLightSavings=").append(isDayLightSavings); - sb.append(", isDeleted=").append(isDeleted); - sb.append(", isEditable=").append(isEditable); - sb.append(", isLockedOut=").append(isLockedOut); - sb.append(", isAnonymized=").append(isAnonymized); - sb.append(", lastName=").append(lastName); - sb.append(", linkedPerson=").append(linkedPerson); - sb.append(", leads=").append(leads); - sb.append(", localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); - sb.append(", localExemptions=").append(localExemptions); - sb.append(", localFilingStatus=").append(localFilingStatus); - sb.append(", localTaxCode=").append(localTaxCode); - sb.append(", luceneScore=").append(luceneScore); - sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName=").append(middleName); - sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile=").append(mobile); - sb.append(", name=").append(name); - sb.append(", namePrefix=").append(namePrefix); - sb.append(", nameSuffix=").append(nameSuffix); - sb.append(", nickName=").append(nickName); - sb.append(", notes=").append(notes); - sb.append(", numCategories=").append(numCategories); - sb.append(", numOwners=").append(numOwners); - sb.append(", occupation=").append(occupation); - sb.append(", owner=").append(owner); - sb.append(", pager=").append(pager); - sb.append(", paperWorkOnFile=").append(paperWorkOnFile); - sb.append(", password=").append(password); - sb.append(", phone=").append(phone); - sb.append(", phone2=").append(phone2); - sb.append(", phone3=").append(phone3); - sb.append(", placements=").append(placements); - sb.append(", preferredContact=").append(preferredContact); - sb.append(", primarySkills=").append(primarySkills); - sb.append(", recentClientList=").append(recentClientList); - sb.append(", referredBy=").append(referredBy); - sb.append(", referredByPerson=").append(referredByPerson); - sb.append(", references=").append(references); - sb.append(", salary=").append(salary); - sb.append(", salaryLow=").append(salaryLow); - sb.append(", secondaryAddress=").append(secondaryAddress); - sb.append(", secondaryOwners=").append(secondaryOwners); - sb.append(", secondarySkills=").append(secondarySkills); - sb.append(", sendouts=").append(sendouts); - sb.append(", skillSet=").append(skillSet); - sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source=").append(source); - sb.append(", specialties=").append(specialties); - sb.append(", ssn=").append(ssn); - sb.append(", stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); - sb.append(", stateExemptions=").append(stateExemptions); - sb.append(", stateFilingStatus=").append(stateFilingStatus); - sb.append(", status=").append(status); - sb.append(", submissions=").append(submissions); - sb.append(", tasks=").append(tasks); - sb.append(", taxID=").append(taxID); - sb.append(", taxState=").append(taxState); - sb.append(", tearsheets=").append(tearsheets); - sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", travelLimit=").append(travelLimit); - sb.append(", type=").append(type); - sb.append(", username=").append(username); - sb.append(", veteran=").append(veteran); - sb.append(", webResponses=").append(webResponses); - sb.append(", willRelocate=").append(willRelocate); - sb.append(", workAuthorized=").append(workAuthorized); - sb.append(", workHistories=").append(workHistories); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append(", customEncryptedText1=").append(customEncryptedText1); - sb.append(", customEncryptedText2=").append(customEncryptedText2); - sb.append(", customEncryptedText3=").append(customEncryptedText3); - sb.append(", customEncryptedText4=").append(customEncryptedText4); - sb.append(", customEncryptedText5=").append(customEncryptedText5); - sb.append(", customEncryptedText6=").append(customEncryptedText6); - sb.append(", customEncryptedText7=").append(customEncryptedText7); - sb.append(", customEncryptedText8=").append(customEncryptedText8); - sb.append(", customEncryptedText9=").append(customEncryptedText9); - sb.append(", customEncryptedText10=").append(customEncryptedText10); - sb.append(", workPhone=").append(workPhone); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import java.math.BigDecimal; + +import javax.validation.constraints.Size; + +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsF; +import org.hibernate.validator.constraints.Email; +import org.joda.time.DateTime; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.response.file.standard.StandardFileAttachment; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "canEnterTime", "categories", "category", "certificationList", "certifications", + "clientCorporationBlackList", "clientCorporationWhiteList", "comments", "companyName", "companyURL", "customDate1", "customDate10", + "customDate11", "customDate12", "customDate13","customDate2", "customDate3", "customDate4", "customDate5", "customDate6", "customDate7", + "customDate8", "customDate9", "customFloat1", "customFloat10", "customFloat11","customFloat12", "customFloat13", "customFloat14", "customFloat15", + "customFloat16", "customFloat17", "customFloat18", "customFloat19", "customFloat2", "customFloat20", "customFloat21", "customFloat22", + "customFloat23", "customFloat3", "customFloat4", "customFloat5", "customFloat6", "customFloat7", "customFloat8", "customFloat9", + "customInt1", "customInt10", "customInt11", "customInt12", "customInt13", "customInt14", "customInt15", "customInt16", + "customInt17", "customInt18", "customInt19", "customInt2", "customInt20", "customInt21", "customInt22", "customInt23", + "customInt3", "customInt4", "customInt5", "customInt6", "customInt7", "customInt8", "customInt9", "customText1", + "customText10", "customText11", "customText12", "customText13", "customText14", "customText15", "customText16", "customText17", + "customText18", "customText19", "customText2", "customText20", "customText21", "customText22", "customText23", + "customText24", "customText25", "customText26", "customText27", "customText28", "customText29", "customText3", "customText30", + "customText31", "customText32", "customText33", "customText34", "customText35", "customText36", "customText37", "customText38", + "customText39", "customText4", "customText40", "customText5", "customText6", + "customText7", "customText8", "customText9", "customTextBlock1", "customTextBlock10", "customTextBlock2", "customTextBlock3", + "customTextBlock4", "customTextBlock5", "customTextBlock6", "customTextBlock7", "customTextBlock8", "customTextBlock9", + "dateAdded", "dateAvailable", "dateAvailableEnd", "dateI9Expiration", "dateLastComment", "dateLastModified", "dateNextCall", + "dateOfBirth", "dayRate", "dayRateLow", "degreeList", "description", "desiredLocations", "disability", "educationDegree", + "educations", "email", "email2", "email3", "employeeType", "employmentPreference", "customEncryptedText1", "customEncryptedText2", + "customEncryptedText3", "customEncryptedText4", "customEncryptedText5", "customEncryptedText6", "customEncryptedText7", "customEncryptedText8", + "customEncryptedText9", "customEncryptedText10", "ethnicity", "experience", "externalID", "fax", + "fax2", "fax3", "federalAddtionalWitholdingsAmount", "federalExemptions", "federalFilingStatus", "fileAttachments", "firstName", + "gender", "hourlyRate", "hourlyRateLow", "i9OnFile", "isAnonymized", "isDayLightSavings", "isDeleted", "isEditable", "isLockedOut", "interviews", + "lastName", "linkedPerson", "leads", "localAddtionalWitholdingsAmount", "localExemptions", "localFilingStatus", "localTaxCode", + "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", "namePrefix", "nameSuffix", "nickName", "notes", "numCategories", + "numOwners", "occupation", "owner", "pager", "paperWorkOnFile", "password", "phone", "phone2", "phone3", "placements", + "preferredContact", "primarySkills", "recentClientList", "referredBy", "referredByPerson", "references", "salary", "salaryLow", + "secondaryAddress", "secondaryOwners", "secondarySkills", "sendouts", "skillSet", "smsOptIn", "source", "specialties", + "submissions", "ssn", "stateAddtionalWitholdingsAmount", "stateExemptions", "stateFilingStatus", "status", "tasks", "taxID", + "taxState", "tearsheets", "timeZoneOffsetEST", "travelLimit", "type", "username", "veteran", "webResponses", "willRelocate", "workAuthorized", + "workHistories", "workPhone", "customObject1s", "customObject2s", "customObject3s", "customObject4s", "customObject5s", "customObject6s", + "customObject7s", "customObject8s", "customObject9s", "customObject10s" }) +public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, + AssociationEntity, DateLastModifiedEntity, EditHistoryEntity { + + private BigDecimal luceneScore; + + private Integer id; + + private Address address; + + private Branch branch; + + private OneToMany businessSectors; + + private Boolean canEnterTime; + + private OneToMany categories; + + private Category category; + + private OneToMany certificationList; + + @JsonIgnore + private String certifications; + + private OneToMany clientCorporationBlackList; + + private OneToMany clientCorporationWhiteList; + + @JsonIgnore + private String comments; + + @JsonIgnore + @Size(max = 100) + private String companyName; + + @JsonIgnore + @Size(max = 100) + private String companyURL; + + private DateTime dateAdded; + + private DateTime dateAvailable; + + private DateTime dateAvailableEnd; + + private DateTime dateI9Expiration; + + private DateTime dateLastComment; + + private DateTime dateLastModified; + + private DateTime dateNextCall; + + private DateTime dateOfBirth; + + private BigDecimal dayRate; + + private BigDecimal dayRateLow; + + @JsonIgnore + private String degreeList; + + @JsonIgnore + private String description; + + @JsonIgnore + private String desiredLocations; + + @JsonIgnore + @Size(max = 1) + private String disability; + + @JsonIgnore + private String educationDegree; + + private OneToMany educations; + + @JsonIgnore + @Email + @Size(max = 100) + private String email; + + @JsonIgnore + @Email + @Size(max = 100) + private String email2; + + @JsonIgnore + @Email + @Size(max = 100) + private String email3; + + @JsonIgnore + @Size(max = 30) + private String employeeType; + + @JsonIgnore + @Size(max = 200) + private String employmentPreference; + + @JsonIgnore + @Size(max = 50) + private String ethnicity; + + private Integer experience; + + @JsonIgnore + @Size(max = 50) + private String externalID; + + @JsonIgnore + @Size(max = 20) + private String fax; + + @JsonIgnore + @Size(max = 20) + private String fax2; + + @JsonIgnore + @Size(max = 20) + private String fax3; + + private BigDecimal federalAddtionalWitholdingsAmount; + + private Integer federalExemptions; + + @JsonIgnore + private String federalFilingStatus; + + private OneToMany fileAttachments; + + @JsonIgnore + @Size(max = 50) + private String firstName; + + @JsonIgnore + @Size(max = 6) + private String gender; + + private BigDecimal hourlyRate; + + private BigDecimal hourlyRateLow; + + private OneToMany interviews; + + private Integer i9OnFile; + + private Boolean isDayLightSavings; + + private Boolean isDeleted; + + private Boolean isEditable; + + private Boolean isLockedOut; + + private Boolean isAnonymized; + + @JsonIgnore + @Size(max = 50) + private String lastName; + + private Person linkedPerson; + + private OneToMany leads; + + private BigDecimal localAddtionalWitholdingsAmount; + + private Integer localExemptions; + + @JsonIgnore + private String localFilingStatus; + + @JsonIgnore + private String localTaxCode; + + private Boolean massMailOptOut; + + @JsonIgnore + @Size(max = 50) + private String middleName; + + private Object migrateGUID; + + @JsonIgnore + @Size(max = 20) + private String mobile; + + @JsonIgnore + private String name; + + @JsonIgnore + @Size(max = 5) + private String namePrefix; + + @JsonIgnore + @Size(max = 5) + private String nameSuffix; + + @JsonIgnore + private String nickName; + + private OneToMany notes; + + private Integer numCategories; + + private Integer numOwners; + + @JsonIgnore + @Size(max = 50) + private String occupation; + + private CorporateUser owner; + + @JsonIgnore + @Size(max = 20) + private String pager; + + @JsonIgnore + private String paperWorkOnFile; + + @JsonIgnore + private String password; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + @Size(max = 20) + private String phone2; + + @JsonIgnore + @Size(max = 20) + private String phone3; + + private OneToMany placements; + + @JsonIgnore + @Size(max = 15) + private String preferredContact; + + private OneToMany primarySkills; + + @JsonIgnore + private String recentClientList; + + @JsonIgnore + @Size(max = 50) + private String referredBy; + + private Person referredByPerson; + + private OneToMany references; + + private BigDecimal salary; + + private BigDecimal salaryLow; + + private Address secondaryAddress; + + private OneToMany secondaryOwners; + + private OneToMany secondarySkills; + + private OneToMany sendouts; + + @JsonIgnore + private String skillSet; + + private Boolean smsOptIn; + + @JsonIgnore + private String source; + + private OneToMany specialties; + + @JsonIgnore + @Size(max = 18) + private String ssn; + + private BigDecimal stateAddtionalWitholdingsAmount; + + private Integer stateExemptions; + + @JsonIgnore + private String stateFilingStatus; + + @JsonIgnore + @Size(max = 100) + private String status; + + private OneToMany submissions; + + private OneToMany tasks; + + @JsonIgnore + @Size(max = 18) + private String taxID; + + @JsonIgnore + private String taxState; + + private OneToMany tearsheets; + + private Integer timeZoneOffsetEST; + + private Integer travelLimit; + + @JsonIgnore + @Size(max = 100) + private String type; + + @JsonIgnore + private String username; + + @JsonIgnore + @Size(max = 1) + private String veteran; + + private OneToMany webResponses; + + private Boolean willRelocate; + + private Boolean workAuthorized; + + private OneToMany workHistories; + + @JsonIgnore + @Size(max = 20) + private String workPhone; + + @JsonIgnore + private String customEncryptedText1; + + @JsonIgnore + private String customEncryptedText2; + + @JsonIgnore + private String customEncryptedText3; + + @JsonIgnore + private String customEncryptedText4; + + @JsonIgnore + private String customEncryptedText5; + + @JsonIgnore + private String customEncryptedText6; + + @JsonIgnore + private String customEncryptedText7; + + @JsonIgnore + private String customEncryptedText8; + + @JsonIgnore + private String customEncryptedText9; + + @JsonIgnore + private String customEncryptedText10; + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + public Candidate() { + super(); + } + + public Candidate(Integer id) { + super(); + this.id = id; + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public Candidate instantiateForInsert() { + Candidate entity = new Candidate(); + entity.setCategory(new Category(512973)); + entity.setComments("New lead candidate"); + entity.setEmployeeType("W2"); + entity.setIsDeleted(Boolean.FALSE); + entity.setIsEditable(Boolean.TRUE); + entity.setPreferredContact("Email"); + entity.setStatus("New Lead"); + entity.setOwner(new CorporateUser(1)); + entity.setName(""); + entity.setFirstName(""); + entity.setLastName(""); + entity.setUsername(new DateTime().toString()); + entity.setPassword("secret"); + return entity; + } + + public static void setRequiredFieldsForInsert(Candidate candidate) { + if (candidate.getCategory() == null) { + candidate.setCategory(new Category(512973)); + } + if (candidate.getComments() == null) { + candidate.setComments("New lead candidate"); + } + if (candidate.getEmployeeType() == null) { + candidate.setEmployeeType("W2"); + } + if (candidate.getIsDeleted() == null) { + candidate.setIsDeleted(Boolean.FALSE); + } + if (candidate.getIsEditable() == null) { + candidate.setIsEditable(Boolean.FALSE); + } + if (candidate.getPreferredContact() == null) { + candidate.setPreferredContact("Email"); + } + if (candidate.getStatus() == null) { + candidate.setStatus("New Lead"); + } + if (candidate.getOwner() == null) { + candidate.setOwner(new CorporateUser(1)); + } + if (candidate.getUsername() == null) { + candidate.setUsername(new DateTime().toString()); + } + if (candidate.getPassword() == null) { + candidate.setPassword("secret"); + } + + if (candidate.getName() == null) { + if (candidate.getFirstName() != null && candidate.getLastName() != null) { + candidate.setName(candidate.getFirstName() + " " + candidate.getLastName()); + } else { + candidate.setName(""); + } + } + + } + + @JsonIgnore + public BigDecimal getLuceneScore() { + return luceneScore; + } + + @JsonProperty("_score") + public void setLuceneScore(BigDecimal luceneScore) { + this.luceneScore = luceneScore; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonIgnore + public OneToMany getBusinessSectors() { + return businessSectors; + } + + @JsonProperty("businessSectors") + public void setBusinessSectors(OneToMany businessSectors) { + this.businessSectors = businessSectors; + } + + @JsonProperty("canEnterTime") + public Boolean getCanEnterTime() { + return canEnterTime; + } + + @JsonProperty("canEnterTime") + public void setCanEnterTime(Boolean canEnterTime) { + this.canEnterTime = canEnterTime; + } + + @JsonIgnore + public OneToMany getCategories() { + return categories; + } + + @JsonProperty("categories") + public void setCategories(OneToMany categories) { + this.categories = categories; + } + + @JsonProperty("category") + public Category getCategory() { + return category; + } + + @JsonProperty("category") + public void setCategory(Category category) { + this.category = category; + } + + @JsonIgnore + public OneToMany getCertificationList() { + return certificationList; + } + + @ReadOnly + @JsonProperty("certificationList") + public void setCertificationList(OneToMany certificationList) { + this.certificationList = certificationList; + } + + @JsonProperty("certifications") + public String getCertifications() { + return certifications; + } + + @JsonIgnore + public void setCertifications(String certifications) { + this.certifications = certifications; + } + + @JsonProperty("clientCorporationBlackList") + public OneToMany getClientCorporationBlackList() { + return clientCorporationBlackList; + } + + @ReadOnly + @JsonProperty("clientCorporationBlackList") + public void setClientCorporationBlackList(OneToMany clientCorporationBlackList) { + this.clientCorporationBlackList = clientCorporationBlackList; + } + + @JsonProperty("clientCorporationWhiteList") + public OneToMany getClientCorporationWhiteList() { + return clientCorporationWhiteList; + } + + @ReadOnly + @JsonProperty("clientCorporationWhiteList") + public void setClientCorporationWhiteList(OneToMany clientCorporationWhiteList) { + this.clientCorporationWhiteList = clientCorporationWhiteList; + } + + @JsonProperty("comments") + public String getComments() { + return comments; + } + + @JsonIgnore + public void setComments(String comments) { + this.comments = comments; + } + + @JsonProperty("companyName") + public String getCompanyName() { + return companyName; + } + + @JsonIgnore + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + @JsonProperty("companyURL") + public String getCompanyURL() { + return companyURL; + } + + @JsonIgnore + public void setCompanyURL(String companyURL) { + this.companyURL = companyURL; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateAvailable") + public DateTime getDateAvailable() { + return dateAvailable; + } + + @JsonProperty("dateAvailable") + public void setDateAvailable(DateTime dateAvailable) { + this.dateAvailable = dateAvailable; + } + + @JsonProperty("dateAvailableEnd") + public DateTime getDateAvailableEnd() { + return dateAvailableEnd; + } + + @JsonProperty("dateAvailableEnd") + public void setDateAvailableEnd(DateTime dateAvailableEnd) { + this.dateAvailableEnd = dateAvailableEnd; + } + + @JsonProperty("dateI9Expiration") + public DateTime getDateI9Expiration() { + return dateI9Expiration; + } + + @JsonProperty("dateI9Expiration") + public void setDateI9Expiration(DateTime dateI9Expiration) { + this.dateI9Expiration = dateI9Expiration; + } + + @JsonProperty("dateLastComment") + public DateTime getDateLastComment() { + return dateLastComment; + } + + @ReadOnly + @JsonProperty("dateLastComment") + public void setDateLastComment(DateTime dateLastComment) { + this.dateLastComment = dateLastComment; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + + @JsonProperty("dateNextCall") + public DateTime getDateNextCall() { + return dateNextCall; + } + + @JsonProperty("dateNextCall") + public void setDateNextCall(DateTime dateNextCall) { + this.dateNextCall = dateNextCall; + } + + @JsonProperty("dateOfBirth") + public DateTime getDateOfBirth() { + return dateOfBirth; + } + + @JsonProperty("dateOfBirth") + public void setDateOfBirth(DateTime dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } + + @JsonProperty("dayRate") + public BigDecimal getDayRate() { + return dayRate; + } + + @JsonProperty("dayRate") + public void setDayRate(BigDecimal dayRate) { + this.dayRate = dayRate; + } + + @JsonProperty("dayRateLow") + public BigDecimal getDayRateLow() { + return dayRateLow; + } + + @JsonProperty("dayRateLow") + public void setDayRateLow(BigDecimal dayRateLow) { + this.dayRateLow = dayRateLow; + } + + @JsonProperty("degreeList") + public String getDegreeList() { + return degreeList; + } + + @JsonIgnore + public void setDegreeList(String degreeList) { + this.degreeList = degreeList; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonIgnore + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("desiredLocations") + public String getDesiredLocations() { + return desiredLocations; + } + + @JsonIgnore + public void setDesiredLocations(String desiredLocations) { + this.desiredLocations = desiredLocations; + } + + @JsonProperty("disability") + public String getDisability() { + return disability; + } + + @JsonIgnore + public void setDisability(String disability) { + this.disability = disability; + } + + @JsonProperty("educationDegree") + public String getEducationDegree() { + return educationDegree; + } + + @JsonIgnore + public void setEducationDegree(String educationDegree) { + this.educationDegree = educationDegree; + } + + @JsonProperty("educations") + public OneToMany getEducations() { + return educations; + } + + @ReadOnly + @JsonProperty("educations") + public void setEducations(OneToMany educations) { + this.educations = educations; + } + + @JsonProperty("email") + public String getEmail() { + return email; + } + + @JsonIgnore + public void setEmail(String email) { + this.email = email; + } + + @JsonProperty("email2") + public String getEmail2() { + return email2; + } + + @JsonIgnore + public void setEmail2(String email2) { + this.email2 = email2; + } + + @JsonProperty("email3") + public String getEmail3() { + return email3; + } + + @JsonIgnore + public void setEmail3(String email3) { + this.email3 = email3; + } + + @JsonProperty("employeeType") + public String getEmployeeType() { + return employeeType; + } + + @JsonIgnore + public void setEmployeeType(String employeeType) { + this.employeeType = employeeType; + } + + @JsonProperty("employmentPreference") + public String getEmploymentPreference() { + return employmentPreference; + } + + @JsonIgnore + public void setEmploymentPreference(String employmentPreference) { + this.employmentPreference = employmentPreference; + } + + @JsonProperty("ethnicity") + public String getEthnicity() { + return ethnicity; + } + + @JsonIgnore + public void setEthnicity(String ethnicity) { + this.ethnicity = ethnicity; + } + + @JsonProperty("experience") + public Integer getExperience() { + return experience; + } + + @JsonProperty("experience") + public void setExperience(Integer experience) { + this.experience = experience; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonIgnore + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("fax2") + public String getFax2() { + return fax2; + } + + @JsonIgnore + public void setFax2(String fax2) { + this.fax2 = fax2; + } + + @JsonProperty("fax3") + public String getFax3() { + return fax3; + } + + @JsonIgnore + public void setFax3(String fax3) { + this.fax3 = fax3; + } + + @JsonProperty("federalAddtionalWitholdingsAmount") + public BigDecimal getFederalAddtionalWitholdingsAmount() { + return federalAddtionalWitholdingsAmount; + } + + @JsonProperty("federalAddtionalWitholdingsAmount") + public void setFederalAddtionalWitholdingsAmount(BigDecimal federalAddtionalWitholdingsAmount) { + this.federalAddtionalWitholdingsAmount = federalAddtionalWitholdingsAmount; + } + + @JsonProperty("federalExemptions") + public Integer getFederalExemptions() { + return federalExemptions; + } + + @JsonProperty("federalExemptions") + public void setFederalExemptions(Integer federalExemptions) { + this.federalExemptions = federalExemptions; + } + + @JsonProperty("federalFilingStatus") + public String getFederalFilingStatus() { + return federalFilingStatus; + } + + @JsonIgnore + public void setFederalFilingStatus(String federalFilingStatus) { + this.federalFilingStatus = federalFilingStatus; + } + + @JsonProperty("fileAttachments") + public OneToMany getFileAttachments() { + return fileAttachments; + } + + @ReadOnly + @JsonProperty("fileAttachments") + public void setFileAttachments(OneToMany fileAttachments) { + this.fileAttachments = fileAttachments; + } + + @JsonProperty("firstName") + public String getFirstName() { + return firstName; + } + + @JsonIgnore + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + @JsonProperty("gender") + public String getGender() { + return gender; + } + + @JsonIgnore + public void setGender(String gender) { + this.gender = gender; + } + + @JsonProperty("hourlyRate") + public BigDecimal getHourlyRate() { + return hourlyRate; + } + + @JsonProperty("hourlyRate") + public void setHourlyRate(BigDecimal hourlyRate) { + this.hourlyRate = hourlyRate; + } + + @JsonProperty("hourlyRateLow") + public BigDecimal getHourlyRateLow() { + return hourlyRateLow; + } + + @JsonProperty("hourlyRateLow") + public void setHourlyRateLow(BigDecimal hourlyRateLow) { + this.hourlyRateLow = hourlyRateLow; + } + + @JsonProperty("interviews") + public OneToMany getInterviews() { + return interviews; + } + + @ReadOnly + @JsonProperty("interviews") + public void setInterviews(OneToMany interviews) { + this.interviews = interviews; + } + + @JsonProperty("i9OnFile") + public Integer getI9OnFile() { + return i9OnFile; + } + + @JsonProperty("i9OnFile") + public void setI9OnFile(Integer i9OnFile) { + this.i9OnFile = i9OnFile; + } + + @JsonProperty("isDayLightSavings") + public Boolean getIsDayLightSavings() { + return isDayLightSavings; + } + + @JsonProperty("isDayLightSavings") + public void setIsDayLightSavings(Boolean isDayLightSavings) { + this.isDayLightSavings = isDayLightSavings; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isEditable") + public Boolean getIsEditable() { + return isEditable; + } + + @JsonProperty("isEditable") + public void setIsEditable(Boolean isEditable) { + this.isEditable = isEditable; + } + + @JsonProperty("isLockedOut") + public Boolean getIsLockedOut() { + return isLockedOut; + } + + @JsonProperty("isLockedOut") + public void setIsLockedOut(Boolean isLockedOut) { + this.isLockedOut = isLockedOut; + } + + @JsonProperty("isAnonymized") + public Boolean getIsAnonymized() { + return isAnonymized; + } + + @JsonProperty("isAnonymized") + public void setIsAnonymized(Boolean isAnonymized) { + this.isAnonymized = isAnonymized; + } + + @JsonProperty("lastName") + public String getLastName() { + return lastName; + } + + @JsonIgnore + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @JsonProperty("linkedPerson") + public Person getLinkedPerson() { + return linkedPerson; + } + + @JsonProperty("linkedPerson") + public void setLinkedPerson(Person linkedPerson) { + this.linkedPerson = linkedPerson; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("localAddtionalWitholdingsAmount") + public BigDecimal getLocalAddtionalWitholdingsAmount() { + return localAddtionalWitholdingsAmount; + } + + @JsonProperty("localAddtionalWitholdingsAmount") + public void setLocalAddtionalWitholdingsAmount(BigDecimal localAddtionalWitholdingsAmount) { + this.localAddtionalWitholdingsAmount = localAddtionalWitholdingsAmount; + } + + @JsonProperty("localExemptions") + public Integer getLocalExemptions() { + return localExemptions; + } + + @JsonProperty("localExemptions") + public void setLocalExemptions(Integer localExemptions) { + this.localExemptions = localExemptions; + } + + @JsonProperty("localFilingStatus") + public String getLocalFilingStatus() { + return localFilingStatus; + } + + @JsonIgnore + public void setLocalFilingStatus(String localFilingStatus) { + this.localFilingStatus = localFilingStatus; + } + + @JsonProperty("localTaxCode") + public String getLocalTaxCode() { + return localTaxCode; + } + + @JsonIgnore + public void setLocalTaxCode(String localTaxCode) { + this.localTaxCode = localTaxCode; + } + + @JsonProperty("massMailOptOut") + public Boolean getMassMailOptOut() { + return massMailOptOut; + } + + @JsonProperty("massMailOptOut") + public void setMassMailOptOut(Boolean massMailOptOut) { + this.massMailOptOut = massMailOptOut; + } + + @JsonProperty("middleName") + public String getMiddleName() { + return middleName; + } + + @JsonIgnore + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonProperty("migrateGUID") + public void setMigrateGUID(Object migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("mobile") + public String getMobile() { + return mobile; + } + + @JsonIgnore + public void setMobile(String mobile) { + this.mobile = mobile; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namePrefix") + public String getNamePrefix() { + return namePrefix; + } + + @JsonIgnore + public void setNamePrefix(String namePrefix) { + this.namePrefix = namePrefix; + } + + @JsonProperty("nameSuffix") + public String getNameSuffix() { + return nameSuffix; + } + + @JsonIgnore + public void setNameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + } + + @JsonProperty("nickName") + public String getNickName() { + return nickName; + } + + @JsonIgnore + public void setNickName(String nickName) { + this.nickName = nickName; + } + + @JsonProperty("notes") + public OneToMany getNotes() { + return notes; + } + + @ReadOnly + @JsonProperty("notes") + public void setNotes(OneToMany notes) { + this.notes = notes; + } + + @JsonProperty("numCategories") + public Integer getNumCategories() { + return numCategories; + } + + @JsonProperty("numCategories") + public void setNumCategories(Integer numCategories) { + this.numCategories = numCategories; + } + + @JsonProperty("numOwners") + public Integer getNumOwners() { + return numOwners; + } + + @JsonProperty("numOwners") + public void setNumOwners(Integer numOwners) { + this.numOwners = numOwners; + } + + @JsonProperty("occupation") + public String getOccupation() { + return occupation; + } + + @JsonIgnore + public void setOccupation(String occupation) { + this.occupation = occupation; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("pager") + public String getPager() { + return pager; + } + + @JsonIgnore + public void setPager(String pager) { + this.pager = pager; + } + + @JsonProperty("paperWorkOnFile") + public String getPaperWorkOnFile() { + return paperWorkOnFile; + } + + @JsonIgnore + public void setPaperWorkOnFile(String paperWorkOnFile) { + this.paperWorkOnFile = paperWorkOnFile; + } + + @JsonProperty("password") + public String getPassword() { + return password; + } + + @JsonProperty("password") + public void setPassword(String password) { + this.password = password; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("phone2") + public String getPhone2() { + return phone2; + } + + @JsonIgnore + public void setPhone2(String phone2) { + this.phone2 = phone2; + } + + @JsonProperty("phone3") + public String getPhone3() { + return phone3; + } + + @JsonIgnore + public void setPhone3(String phone3) { + this.phone3 = phone3; + } + + @JsonProperty("placements") + public OneToMany getPlacements() { + return placements; + } + + @ReadOnly + @JsonProperty("placements") + public void setPlacements(OneToMany placements) { + this.placements = placements; + } + + @JsonProperty("preferredContact") + public String getPreferredContact() { + return preferredContact; + } + + @JsonIgnore + public void setPreferredContact(String preferredContact) { + this.preferredContact = preferredContact; + } + + @JsonIgnore + public OneToMany getPrimarySkills() { + return primarySkills; + } + + @JsonProperty("primarySkills") + public void setPrimarySkills(OneToMany primarySkills) { + this.primarySkills = primarySkills; + } + + @JsonProperty("recentClientList") + public String getRecentClientList() { + return recentClientList; + } + + @JsonIgnore + public void setRecentClientList(String recentClientList) { + this.recentClientList = recentClientList; + } + + @JsonProperty("referredBy") + public String getReferredBy() { + return referredBy; + } + + @JsonIgnore + public void setReferredBy(String referredBy) { + this.referredBy = referredBy; + } + + @JsonProperty("referredByPerson") + public Person getReferredByPerson() { + return referredByPerson; + } + + @JsonProperty("referredByPerson") + public void setReferredByPerson(Person referredByPerson) { + this.referredByPerson = referredByPerson; + } + + @JsonProperty("references") + public OneToMany getReferences() { + return references; + } + + @ReadOnly + @JsonProperty("references") + public void setReferences(OneToMany references) { + this.references = references; + } + + @JsonProperty("salary") + public BigDecimal getSalary() { + return salary; + } + + @JsonProperty("salary") + public void setSalary(BigDecimal salary) { + this.salary = salary; + } + + @JsonProperty("salaryLow") + public BigDecimal getSalaryLow() { + return salaryLow; + } + + @JsonProperty("salaryLow") + public void setSalaryLow(BigDecimal salaryLow) { + this.salaryLow = salaryLow; + } + + @JsonProperty("secondaryAddress") + public Address getSecondaryAddress() { + return secondaryAddress; + } + + @JsonProperty("secondaryAddress") + public void setSecondaryAddress(Address secondaryAddress) { + this.secondaryAddress = secondaryAddress; + } + + @JsonIgnore + public OneToMany getSecondaryOwners() { + return secondaryOwners; + } + + @JsonProperty("secondaryOwners") + public void setSecondaryOwners(OneToMany secondaryOwners) { + this.secondaryOwners = secondaryOwners; + } + + @JsonIgnore + public OneToMany getSecondarySkills() { + return secondarySkills; + } + + @JsonProperty("secondarySkills") + public void setSecondarySkills(OneToMany secondarySkills) { + this.secondarySkills = secondarySkills; + } + + @JsonProperty("sendouts") + public OneToMany getSendouts() { + return sendouts; + } + + @ReadOnly + @JsonProperty("sendouts") + public void setSendouts(OneToMany sendouts) { + this.sendouts = sendouts; + } + + @JsonProperty("skillSet") + public String getSkillSet() { + return skillSet; + } + + @JsonIgnore + public void setSkillSet(String skillSet) { + this.skillSet = skillSet; + } + + @JsonProperty("smsOptIn") + public Boolean getSmsOptIn() { + return smsOptIn; + } + + @JsonProperty("smsOptIn") + public void setSmsOptIn(Boolean smsOptIn) { + this.smsOptIn = smsOptIn; + } + + @JsonProperty("source") + public String getSource() { + return source; + } + + @JsonIgnore + public void setSource(String source) { + this.source = source; + } + + @JsonIgnore + public OneToMany getSpecialties() { + return specialties; + } + + @JsonProperty("specialties") + public void setSpecialties(OneToMany specialties) { + this.specialties = specialties; + } + + @JsonProperty("ssn") + public String getSsn() { + return ssn; + } + + @JsonProperty("ssn") + public void setSsn(String ssn) { + this.ssn = ssn; + } + + @JsonProperty("stateAddtionalWitholdingsAmount") + public BigDecimal getStateAddtionalWitholdingsAmount() { + return stateAddtionalWitholdingsAmount; + } + + @JsonProperty("stateAddtionalWitholdingsAmount") + public void setStateAddtionalWitholdingsAmount(BigDecimal stateAddtionalWitholdingsAmount) { + this.stateAddtionalWitholdingsAmount = stateAddtionalWitholdingsAmount; + } + + @JsonProperty("stateExemptions") + public Integer getStateExemptions() { + return stateExemptions; + } + + @JsonProperty("stateExemptions") + public void setStateExemptions(Integer stateExemptions) { + this.stateExemptions = stateExemptions; + } + + @JsonProperty("stateFilingStatus") + public String getStateFilingStatus() { + return stateFilingStatus; + } + + @JsonIgnore + public void setStateFilingStatus(String stateFilingStatus) { + this.stateFilingStatus = stateFilingStatus; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("submissions") + public OneToMany getSubmissions() { + return submissions; + } + + @ReadOnly + @JsonProperty("submissions") + public void setSubmissions(OneToMany submissions) { + this.submissions = submissions; + } + + @JsonProperty("tasks") + public OneToMany getTasks() { + return tasks; + } + + @ReadOnly + @JsonProperty("tasks") + public void setTasks(OneToMany tasks) { + this.tasks = tasks; + } + + @JsonProperty("taxID") + public String getTaxID() { + return taxID; + } + + @JsonIgnore + public void setTaxID(String taxID) { + this.taxID = taxID; + } + + @JsonProperty("taxState") + public String getTaxState() { + return taxState; + } + + @JsonIgnore + public void setTaxState(String taxState) { + this.taxState = taxState; + } + + @JsonProperty("tearsheets") + public OneToMany getTearsheets() { + return tearsheets; + } + + @JsonProperty("tearsheets") + public void setTearsheets(OneToMany tearsheets) { + this.tearsheets = tearsheets; + } + + @JsonProperty("timeZoneOffsetEST") + public Integer getTimeZoneOffsetEST() { + return timeZoneOffsetEST; + } + + @JsonProperty("timeZoneOffsetEST") + public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { + this.timeZoneOffsetEST = timeZoneOffsetEST; + } + + @JsonProperty("travelLimit") + public Integer getTravelLimit() { + return travelLimit; + } + + @JsonProperty("travelLimit") + public void setTravelLimit(Integer travelLimit) { + this.travelLimit = travelLimit; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("username") + public String getUsername() { + return username; + } + + @JsonIgnore + public void setUsername(String username) { + this.username = username; + } + + @JsonProperty("veteran") + public String getVeteran() { + return veteran; + } + + @JsonIgnore + public void setVeteran(String veteran) { + this.veteran = veteran; + } + + @JsonProperty("webResponses") + public OneToMany getWebResponses() { + return webResponses; + } + + @ReadOnly + @JsonProperty("webResponses") + public void setWebResponses(OneToMany webResponses) { + this.webResponses = webResponses; + } + + @JsonProperty("willRelocate") + public Boolean getWillRelocate() { + return willRelocate; + } + + @JsonProperty("willRelocate") + public void setWillRelocate(Boolean willRelocate) { + this.willRelocate = willRelocate; + } + + @JsonProperty("workAuthorized") + public Boolean getWorkAuthorized() { + return workAuthorized; + } + + @JsonProperty("workAuthorized") + public void setWorkAuthorized(Boolean workAuthorized) { + this.workAuthorized = workAuthorized; + } + + @JsonProperty("workHistories") + public OneToMany getWorkHistories() { + return workHistories; + } + + @ReadOnly + @JsonProperty("workHistories") + public void setWorkHistories(OneToMany workHistories) { + this.workHistories = workHistories; + } + + @JsonProperty("workPhone") + public String getWorkPhone() { + return workPhone; + } + + @JsonIgnore + public void setWorkPhone(String workPhone) { + this.workPhone = workPhone; + } + + @JsonProperty("customEncryptedText1") + public String getCustomEncryptedText1() { + return customEncryptedText1; + } + + @JsonProperty("customEncryptedText1") + @JsonIgnore + public void setCustomEncryptedText1(String customEncryptedText1) { + this.customEncryptedText1 = customEncryptedText1; + } + + @JsonProperty("customEncryptedText2") + public String getCustomEncryptedText2() { + return customEncryptedText2; + } + + @JsonProperty("customEncryptedText2") + @JsonIgnore + public void setCustomEncryptedText2(String customEncryptedText2) { + this.customEncryptedText2 = customEncryptedText2; + } + + @JsonProperty("customEncryptedText3") + public String getCustomEncryptedText3() { + return customEncryptedText3; + } + + @JsonProperty("customEncryptedText3") + @JsonIgnore + public void setCustomEncryptedText3(String customEncryptedText3) { + this.customEncryptedText3 = customEncryptedText3; + } + + @JsonProperty("customEncryptedText4") + public String getCustomEncryptedText4() { + return customEncryptedText4; + } + + @JsonProperty("customEncryptedText4") + @JsonIgnore + public void setCustomEncryptedText4(String customEncryptedText4) { + this.customEncryptedText4 = customEncryptedText4; + } + + @JsonProperty("customEncryptedText5") + public String getCustomEncryptedText5() { + return customEncryptedText5; + } + + @JsonProperty("customEncryptedText5") + @JsonIgnore + public void setCustomEncryptedText5(String customEncryptedText5) { + this.customEncryptedText5 = customEncryptedText5; + } + + @JsonProperty("customEncryptedText6") + public String getCustomEncryptedText6() { + return customEncryptedText6; + } + + @JsonProperty("customEncryptedText6") + @JsonIgnore + public void setCustomEncryptedText6(String customEncryptedText6) { + this.customEncryptedText6 = customEncryptedText6; + } + + @JsonProperty("customEncryptedText7") + public String getCustomEncryptedText7() { + return customEncryptedText7; + } + + @JsonProperty("customEncryptedText7") + @JsonIgnore + public void setCustomEncryptedText7(String customEncryptedText7) { + this.customEncryptedText7 = customEncryptedText7; + } + + @JsonProperty("customEncryptedText8") + public String getCustomEncryptedText8() { + return customEncryptedText8; + } + + @JsonProperty("customEncryptedText8") + @JsonIgnore + public void setCustomEncryptedText8(String customEncryptedText8) { + this.customEncryptedText8 = customEncryptedText8; + } + + @JsonProperty("customEncryptedText9") + public String getCustomEncryptedText9() { + return customEncryptedText9; + } + + @JsonProperty("customEncryptedText9") + @JsonIgnore + public void setCustomEncryptedText9(String customEncryptedText9) { + this.customEncryptedText9 = customEncryptedText9; + } + + @JsonProperty("customEncryptedText10") + public String getCustomEncryptedText10() { + return customEncryptedText10; + } + + @JsonProperty("customEncryptedText10") + @JsonIgnore + public void setCustomEncryptedText10(String customEncryptedText10) { + this.customEncryptedText10 = customEncryptedText10; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + Candidate candidate = (Candidate) o; + + if (luceneScore != null ? !luceneScore.equals(candidate.luceneScore) : candidate.luceneScore != null) + return false; + if (id != null ? !id.equals(candidate.id) : candidate.id != null) return false; + if (address != null ? !address.equals(candidate.address) : candidate.address != null) return false; + if (branch != null ? !branch.equals(candidate.branch) : candidate.branch != null) return false; + if (businessSectors != null ? !businessSectors.equals(candidate.businessSectors) : candidate.businessSectors != null) + return false; + if (canEnterTime != null ? !canEnterTime.equals(candidate.canEnterTime) : candidate.canEnterTime != null) return false; + if (categories != null ? !categories.equals(candidate.categories) : candidate.categories != null) return false; + if (category != null ? !category.equals(candidate.category) : candidate.category != null) return false; + if (certificationList != null ? !certificationList.equals(candidate.certificationList) : candidate.certificationList != null) + return false; + if (certifications != null ? !certifications.equals(candidate.certifications) : candidate.certifications != null) + return false; + if (clientCorporationBlackList != null ? !clientCorporationBlackList.equals(candidate.clientCorporationBlackList) : candidate.clientCorporationBlackList != null) + return false; + if (clientCorporationWhiteList != null ? !clientCorporationWhiteList.equals(candidate.clientCorporationWhiteList) : candidate.clientCorporationWhiteList != null) + return false; + if (comments != null ? !comments.equals(candidate.comments) : candidate.comments != null) return false; + if (companyName != null ? !companyName.equals(candidate.companyName) : candidate.companyName != null) + return false; + if (companyURL != null ? !companyURL.equals(candidate.companyURL) : candidate.companyURL != null) return false; + if (dateAdded != null ? !dateAdded.equals(candidate.dateAdded) : candidate.dateAdded != null) return false; + if (dateAvailable != null ? !dateAvailable.equals(candidate.dateAvailable) : candidate.dateAvailable != null) + return false; + if (dateAvailableEnd != null ? !dateAvailableEnd.equals(candidate.dateAvailableEnd) : candidate.dateAvailableEnd != null) + return false; + if (dateI9Expiration != null ? !dateI9Expiration.equals(candidate.dateI9Expiration) : candidate.dateI9Expiration != null) + return false; + if (dateLastComment != null ? !dateLastComment.equals(candidate.dateLastComment) : candidate.dateLastComment != null) + return false; + if (dateLastModified != null ? !dateLastModified.equals(candidate.dateLastModified) : candidate.dateLastModified != null) + return false; + if (dateNextCall != null ? !dateNextCall.equals(candidate.dateNextCall) : candidate.dateNextCall != null) + return false; + if (dateOfBirth != null ? !dateOfBirth.equals(candidate.dateOfBirth) : candidate.dateOfBirth != null) + return false; + if (dayRate != null ? !dayRate.equals(candidate.dayRate) : candidate.dayRate != null) return false; + if (dayRateLow != null ? !dayRateLow.equals(candidate.dayRateLow) : candidate.dayRateLow != null) return false; + if (degreeList != null ? !degreeList.equals(candidate.degreeList) : candidate.degreeList != null) return false; + if (description != null ? !description.equals(candidate.description) : candidate.description != null) + return false; + if (desiredLocations != null ? !desiredLocations.equals(candidate.desiredLocations) : candidate.desiredLocations != null) + return false; + if (disability != null ? !disability.equals(candidate.disability) : candidate.disability != null) return false; + if (educationDegree != null ? !educationDegree.equals(candidate.educationDegree) : candidate.educationDegree != null) + return false; + if (educations != null ? !educations.equals(candidate.educations) : candidate.educations != null) return false; + if (email != null ? !email.equals(candidate.email) : candidate.email != null) return false; + if (email2 != null ? !email2.equals(candidate.email2) : candidate.email2 != null) return false; + if (email3 != null ? !email3.equals(candidate.email3) : candidate.email3 != null) return false; + if (employeeType != null ? !employeeType.equals(candidate.employeeType) : candidate.employeeType != null) + return false; + if (employmentPreference != null ? !employmentPreference.equals(candidate.employmentPreference) : candidate.employmentPreference != null) + return false; + if (ethnicity != null ? !ethnicity.equals(candidate.ethnicity) : candidate.ethnicity != null) return false; + if (experience != null ? !experience.equals(candidate.experience) : candidate.experience != null) return false; + if (externalID != null ? !externalID.equals(candidate.externalID) : candidate.externalID != null) return false; + if (fax != null ? !fax.equals(candidate.fax) : candidate.fax != null) return false; + if (fax2 != null ? !fax2.equals(candidate.fax2) : candidate.fax2 != null) return false; + if (fax3 != null ? !fax3.equals(candidate.fax3) : candidate.fax3 != null) return false; + if (federalAddtionalWitholdingsAmount != null ? !federalAddtionalWitholdingsAmount.equals(candidate.federalAddtionalWitholdingsAmount) : candidate.federalAddtionalWitholdingsAmount != null) + return false; + if (federalExemptions != null ? !federalExemptions.equals(candidate.federalExemptions) : candidate.federalExemptions != null) + return false; + if (federalFilingStatus != null ? !federalFilingStatus.equals(candidate.federalFilingStatus) : candidate.federalFilingStatus != null) + return false; + if (fileAttachments != null ? !fileAttachments.equals(candidate.fileAttachments) : candidate.fileAttachments != null) + return false; + if (firstName != null ? !firstName.equals(candidate.firstName) : candidate.firstName != null) return false; + if (gender != null ? !gender.equals(candidate.gender) : candidate.gender != null) return false; + if (hourlyRate != null ? !hourlyRate.equals(candidate.hourlyRate) : candidate.hourlyRate != null) return false; + if (hourlyRateLow != null ? !hourlyRateLow.equals(candidate.hourlyRateLow) : candidate.hourlyRateLow != null) + return false; + if (interviews != null ? !interviews.equals(candidate.interviews) : candidate.interviews != null) return false; + if (i9OnFile != null ? !i9OnFile.equals(candidate.i9OnFile) : candidate.i9OnFile != null) return false; + if (isDayLightSavings != null ? !isDayLightSavings.equals(candidate.isDayLightSavings) : candidate.isDayLightSavings != null) + return false; + if (isDeleted != null ? !isDeleted.equals(candidate.isDeleted) : candidate.isDeleted != null) return false; + if (isEditable != null ? !isEditable.equals(candidate.isEditable) : candidate.isEditable != null) return false; + if (isLockedOut != null ? !isLockedOut.equals(candidate.isLockedOut) : candidate.isLockedOut != null) + return false; + if (isAnonymized != null ? !isAnonymized.equals(candidate.isAnonymized) : candidate.isAnonymized != null) + return false; + if (lastName != null ? !lastName.equals(candidate.lastName) : candidate.lastName != null) return false; + if (linkedPerson != null ? !linkedPerson.equals(candidate.linkedPerson) : candidate.linkedPerson != null) + return false; + if (leads != null ? !leads.equals(candidate.leads) : candidate.leads != null) return false; + if (localAddtionalWitholdingsAmount != null ? !localAddtionalWitholdingsAmount.equals(candidate.localAddtionalWitholdingsAmount) : candidate.localAddtionalWitholdingsAmount != null) + return false; + if (localExemptions != null ? !localExemptions.equals(candidate.localExemptions) : candidate.localExemptions != null) + return false; + if (localFilingStatus != null ? !localFilingStatus.equals(candidate.localFilingStatus) : candidate.localFilingStatus != null) + return false; + if (localTaxCode != null ? !localTaxCode.equals(candidate.localTaxCode) : candidate.localTaxCode != null) + return false; + if (massMailOptOut != null ? !massMailOptOut.equals(candidate.massMailOptOut) : candidate.massMailOptOut != null) + return false; + if (middleName != null ? !middleName.equals(candidate.middleName) : candidate.middleName != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(candidate.migrateGUID) : candidate.migrateGUID != null) + return false; + if (mobile != null ? !mobile.equals(candidate.mobile) : candidate.mobile != null) return false; + if (name != null ? !name.equals(candidate.name) : candidate.name != null) return false; + if (namePrefix != null ? !namePrefix.equals(candidate.namePrefix) : candidate.namePrefix != null) return false; + if (nameSuffix != null ? !nameSuffix.equals(candidate.nameSuffix) : candidate.nameSuffix != null) return false; + if (nickName != null ? !nickName.equals(candidate.nickName) : candidate.nickName != null) return false; + if (notes != null ? !notes.equals(candidate.notes) : candidate.notes != null) return false; + if (numCategories != null ? !numCategories.equals(candidate.numCategories) : candidate.numCategories != null) + return false; + if (numOwners != null ? !numOwners.equals(candidate.numOwners) : candidate.numOwners != null) return false; + if (occupation != null ? !occupation.equals(candidate.occupation) : candidate.occupation != null) return false; + if (owner != null ? !owner.equals(candidate.owner) : candidate.owner != null) return false; + if (pager != null ? !pager.equals(candidate.pager) : candidate.pager != null) return false; + if (paperWorkOnFile != null ? !paperWorkOnFile.equals(candidate.paperWorkOnFile) : candidate.paperWorkOnFile != null) + return false; + if (password != null ? !password.equals(candidate.password) : candidate.password != null) return false; + if (phone != null ? !phone.equals(candidate.phone) : candidate.phone != null) return false; + if (phone2 != null ? !phone2.equals(candidate.phone2) : candidate.phone2 != null) return false; + if (phone3 != null ? !phone3.equals(candidate.phone3) : candidate.phone3 != null) return false; + if (placements != null ? !placements.equals(candidate.placements) : candidate.placements != null) return false; + if (preferredContact != null ? !preferredContact.equals(candidate.preferredContact) : candidate.preferredContact != null) + return false; + if (primarySkills != null ? !primarySkills.equals(candidate.primarySkills) : candidate.primarySkills != null) + return false; + if (recentClientList != null ? !recentClientList.equals(candidate.recentClientList) : candidate.recentClientList != null) + return false; + if (referredBy != null ? !referredBy.equals(candidate.referredBy) : candidate.referredBy != null) return false; + if (referredByPerson != null ? !referredByPerson.equals(candidate.referredByPerson) : candidate.referredByPerson != null) + return false; + if (references != null ? !references.equals(candidate.references) : candidate.references != null) return false; + if (salary != null ? !salary.equals(candidate.salary) : candidate.salary != null) return false; + if (salaryLow != null ? !salaryLow.equals(candidate.salaryLow) : candidate.salaryLow != null) return false; + if (secondaryAddress != null ? !secondaryAddress.equals(candidate.secondaryAddress) : candidate.secondaryAddress != null) + return false; + if (secondaryOwners != null ? !secondaryOwners.equals(candidate.secondaryOwners) : candidate.secondaryOwners != null) + return false; + if (secondarySkills != null ? !secondarySkills.equals(candidate.secondarySkills) : candidate.secondarySkills != null) + return false; + if (sendouts != null ? !sendouts.equals(candidate.sendouts) : candidate.sendouts != null) return false; + if (skillSet != null ? !skillSet.equals(candidate.skillSet) : candidate.skillSet != null) return false; + if (smsOptIn != null ? !smsOptIn.equals(candidate.smsOptIn) : candidate.smsOptIn != null) return false; + if (source != null ? !source.equals(candidate.source) : candidate.source != null) return false; + if (specialties != null ? !specialties.equals(candidate.specialties) : candidate.specialties != null) + return false; + if (ssn != null ? !ssn.equals(candidate.ssn) : candidate.ssn != null) return false; + if (stateAddtionalWitholdingsAmount != null ? !stateAddtionalWitholdingsAmount.equals(candidate.stateAddtionalWitholdingsAmount) : candidate.stateAddtionalWitholdingsAmount != null) + return false; + if (stateExemptions != null ? !stateExemptions.equals(candidate.stateExemptions) : candidate.stateExemptions != null) + return false; + if (stateFilingStatus != null ? !stateFilingStatus.equals(candidate.stateFilingStatus) : candidate.stateFilingStatus != null) + return false; + if (status != null ? !status.equals(candidate.status) : candidate.status != null) return false; + if (submissions != null ? !submissions.equals(candidate.submissions) : candidate.submissions != null) + return false; + if (tasks != null ? !tasks.equals(candidate.tasks) : candidate.tasks != null) return false; + if (taxID != null ? !taxID.equals(candidate.taxID) : candidate.taxID != null) return false; + if (taxState != null ? !taxState.equals(candidate.taxState) : candidate.taxState != null) return false; + if (tearsheets != null ? !tearsheets.equals(candidate.tearsheets) : candidate.tearsheets != null) return false; + if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(candidate.timeZoneOffsetEST) : candidate.timeZoneOffsetEST != null) + return false; + if (travelLimit != null ? !travelLimit.equals(candidate.travelLimit) : candidate.travelLimit != null) + return false; + if (type != null ? !type.equals(candidate.type) : candidate.type != null) return false; + if (username != null ? !username.equals(candidate.username) : candidate.username != null) return false; + if (veteran != null ? !veteran.equals(candidate.veteran) : candidate.veteran != null) return false; + if (webResponses != null ? !webResponses.equals(candidate.webResponses) : candidate.webResponses != null) + return false; + if (willRelocate != null ? !willRelocate.equals(candidate.willRelocate) : candidate.willRelocate != null) + return false; + if (workAuthorized != null ? !workAuthorized.equals(candidate.workAuthorized) : candidate.workAuthorized != null) + return false; + if (workHistories != null ? !workHistories.equals(candidate.workHistories) : candidate.workHistories != null) + return false; + if (customObject1s != null ? !customObject1s.equals(candidate.customObject1s) : candidate.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(candidate.customObject2s) : candidate.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(candidate.customObject3s) : candidate.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(candidate.customObject4s) : candidate.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(candidate.customObject5s) : candidate.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(candidate.customObject6s) : candidate.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(candidate.customObject7s) : candidate.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(candidate.customObject8s) : candidate.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(candidate.customObject9s) : candidate.customObject9s != null) + return false; + if (customObject10s != null ? !customObject10s.equals(candidate.customObject10s) : candidate.customObject10s != null) + return false; + if (customEncryptedText1 != null ? !customEncryptedText1.equals(candidate.customEncryptedText1) : candidate.customEncryptedText1 != null) + return false; + if (customEncryptedText2 != null ? !customEncryptedText2.equals(candidate.customEncryptedText2) : candidate.customEncryptedText2 != null) + return false; + if (customEncryptedText3 != null ? !customEncryptedText3.equals(candidate.customEncryptedText3) : candidate.customEncryptedText3 != null) + return false; + if (customEncryptedText4 != null ? !customEncryptedText4.equals(candidate.customEncryptedText4) : candidate.customEncryptedText4 != null) + return false; + if (customEncryptedText5 != null ? !customEncryptedText5.equals(candidate.customEncryptedText5) : candidate.customEncryptedText5 != null) + return false; + if (customEncryptedText6 != null ? !customEncryptedText6.equals(candidate.customEncryptedText6) : candidate.customEncryptedText6 != null) + return false; + if (customEncryptedText7 != null ? !customEncryptedText7.equals(candidate.customEncryptedText7) : candidate.customEncryptedText7 != null) + return false; + if (customEncryptedText8 != null ? !customEncryptedText8.equals(candidate.customEncryptedText8) : candidate.customEncryptedText8 != null) + return false; + if (customEncryptedText9 != null ? !customEncryptedText9.equals(candidate.customEncryptedText9) : candidate.customEncryptedText9 != null) + return false; + if (customEncryptedText10 != null ? !customEncryptedText10.equals(candidate.customEncryptedText10) : candidate.customEncryptedText10 != null) + return false; + return workPhone != null ? workPhone.equals(candidate.workPhone) : candidate.workPhone == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (luceneScore != null ? luceneScore.hashCode() : 0); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (canEnterTime != null ? canEnterTime.hashCode() : 0); + result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); + result = 31 * result + (categories != null ? categories.hashCode() : 0); + result = 31 * result + (category != null ? category.hashCode() : 0); + result = 31 * result + (certificationList != null ? certificationList.hashCode() : 0); + result = 31 * result + (certifications != null ? certifications.hashCode() : 0); + result = 31 * result + (clientCorporationBlackList != null ? clientCorporationBlackList.hashCode() : 0); + result = 31 * result + (clientCorporationWhiteList != null ? clientCorporationWhiteList.hashCode() : 0); + result = 31 * result + (comments != null ? comments.hashCode() : 0); + result = 31 * result + (companyName != null ? companyName.hashCode() : 0); + result = 31 * result + (companyURL != null ? companyURL.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateAvailable != null ? dateAvailable.hashCode() : 0); + result = 31 * result + (dateAvailableEnd != null ? dateAvailableEnd.hashCode() : 0); + result = 31 * result + (dateI9Expiration != null ? dateI9Expiration.hashCode() : 0); + result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (dateNextCall != null ? dateNextCall.hashCode() : 0); + result = 31 * result + (dateOfBirth != null ? dateOfBirth.hashCode() : 0); + result = 31 * result + (dayRate != null ? dayRate.hashCode() : 0); + result = 31 * result + (dayRateLow != null ? dayRateLow.hashCode() : 0); + result = 31 * result + (degreeList != null ? degreeList.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (desiredLocations != null ? desiredLocations.hashCode() : 0); + result = 31 * result + (disability != null ? disability.hashCode() : 0); + result = 31 * result + (educationDegree != null ? educationDegree.hashCode() : 0); + result = 31 * result + (educations != null ? educations.hashCode() : 0); + result = 31 * result + (email != null ? email.hashCode() : 0); + result = 31 * result + (email2 != null ? email2.hashCode() : 0); + result = 31 * result + (email3 != null ? email3.hashCode() : 0); + result = 31 * result + (employeeType != null ? employeeType.hashCode() : 0); + result = 31 * result + (employmentPreference != null ? employmentPreference.hashCode() : 0); + result = 31 * result + (ethnicity != null ? ethnicity.hashCode() : 0); + result = 31 * result + (experience != null ? experience.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); + result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); + result = 31 * result + (federalAddtionalWitholdingsAmount != null ? federalAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (federalExemptions != null ? federalExemptions.hashCode() : 0); + result = 31 * result + (federalFilingStatus != null ? federalFilingStatus.hashCode() : 0); + result = 31 * result + (fileAttachments != null ? fileAttachments.hashCode() : 0); + result = 31 * result + (firstName != null ? firstName.hashCode() : 0); + result = 31 * result + (gender != null ? gender.hashCode() : 0); + result = 31 * result + (hourlyRate != null ? hourlyRate.hashCode() : 0); + result = 31 * result + (hourlyRateLow != null ? hourlyRateLow.hashCode() : 0); + result = 31 * result + (interviews != null ? interviews.hashCode() : 0); + result = 31 * result + (i9OnFile != null ? i9OnFile.hashCode() : 0); + result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isEditable != null ? isEditable.hashCode() : 0); + result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); + result = 31 * result + (isAnonymized != null ? isAnonymized.hashCode() : 0); + result = 31 * result + (lastName != null ? lastName.hashCode() : 0); + result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (localAddtionalWitholdingsAmount != null ? localAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (localExemptions != null ? localExemptions.hashCode() : 0); + result = 31 * result + (localFilingStatus != null ? localFilingStatus.hashCode() : 0); + result = 31 * result + (localTaxCode != null ? localTaxCode.hashCode() : 0); + result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); + result = 31 * result + (middleName != null ? middleName.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (mobile != null ? mobile.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); + result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); + result = 31 * result + (nickName != null ? nickName.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numCategories != null ? numCategories.hashCode() : 0); + result = 31 * result + (numOwners != null ? numOwners.hashCode() : 0); + result = 31 * result + (occupation != null ? occupation.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (pager != null ? pager.hashCode() : 0); + result = 31 * result + (paperWorkOnFile != null ? paperWorkOnFile.hashCode() : 0); + result = 31 * result + (password != null ? password.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); + result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); + result = 31 * result + (placements != null ? placements.hashCode() : 0); + result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); + result = 31 * result + (primarySkills != null ? primarySkills.hashCode() : 0); + result = 31 * result + (recentClientList != null ? recentClientList.hashCode() : 0); + result = 31 * result + (referredBy != null ? referredBy.hashCode() : 0); + result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); + result = 31 * result + (references != null ? references.hashCode() : 0); + result = 31 * result + (salary != null ? salary.hashCode() : 0); + result = 31 * result + (salaryLow != null ? salaryLow.hashCode() : 0); + result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); + result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); + result = 31 * result + (secondarySkills != null ? secondarySkills.hashCode() : 0); + result = 31 * result + (sendouts != null ? sendouts.hashCode() : 0); + result = 31 * result + (skillSet != null ? skillSet.hashCode() : 0); + result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); + result = 31 * result + (source != null ? source.hashCode() : 0); + result = 31 * result + (specialties != null ? specialties.hashCode() : 0); + result = 31 * result + (ssn != null ? ssn.hashCode() : 0); + result = 31 * result + (stateAddtionalWitholdingsAmount != null ? stateAddtionalWitholdingsAmount.hashCode() : 0); + result = 31 * result + (stateExemptions != null ? stateExemptions.hashCode() : 0); + result = 31 * result + (stateFilingStatus != null ? stateFilingStatus.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (submissions != null ? submissions.hashCode() : 0); + result = 31 * result + (tasks != null ? tasks.hashCode() : 0); + result = 31 * result + (taxID != null ? taxID.hashCode() : 0); + result = 31 * result + (taxState != null ? taxState.hashCode() : 0); + result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); + result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); + result = 31 * result + (travelLimit != null ? travelLimit.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + result = 31 * result + (username != null ? username.hashCode() : 0); + result = 31 * result + (veteran != null ? veteran.hashCode() : 0); + result = 31 * result + (webResponses != null ? webResponses.hashCode() : 0); + result = 31 * result + (willRelocate != null ? willRelocate.hashCode() : 0); + result = 31 * result + (workAuthorized != null ? workAuthorized.hashCode() : 0); + result = 31 * result + (workHistories != null ? workHistories.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + result = 31 * result + (workPhone != null ? workPhone.hashCode() : 0); + result = 31 * result + ((customEncryptedText1 == null) ? 0 : customEncryptedText1.hashCode()); + result = 31 * result + ((customEncryptedText2 == null) ? 0 : customEncryptedText2.hashCode()); + result = 31 * result + ((customEncryptedText3 == null) ? 0 : customEncryptedText3.hashCode()); + result = 31 * result + ((customEncryptedText4 == null) ? 0 : customEncryptedText4.hashCode()); + result = 31 * result + ((customEncryptedText5 == null) ? 0 : customEncryptedText5.hashCode()); + result = 31 * result + ((customEncryptedText6 == null) ? 0 : customEncryptedText6.hashCode()); + result = 31 * result + ((customEncryptedText7 == null) ? 0 : customEncryptedText7.hashCode()); + result = 31 * result + ((customEncryptedText8 == null) ? 0 : customEncryptedText8.hashCode()); + result = 31 * result + ((customEncryptedText9 == null) ? 0 : customEncryptedText9.hashCode()); + result = 31 * result + ((customEncryptedText10 == null) ? 0 : customEncryptedText10.hashCode()); + return result; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull()); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull()); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull()); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull()); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull()); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull()); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull()); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull()); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull()); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull()); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull()); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull()); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull()); + } + sb.append(super.toStringNonNull()); + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address.toStringNonNull(includeLineBreaks)); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(canEnterTime != null){ + sb.append(lbc + "canEnterTime=").append(canEnterTime); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certificationList != null){ + sb.append(lbc + "certificationList=").append(certificationList.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientCorporationBlackList != null){ + sb.append(lbc + "clientCorporationBlackList=").append(clientCorporationBlackList.toStringNonNull(includeLineBreaks)); + } + if(clientCorporationWhiteList != null){ + sb.append(lbc + "clientCorporationWhiteList=").append(clientCorporationWhiteList.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(companyName != null){ + sb.append(lbc + "companyName=").append(companyName); + } + if(companyURL != null){ + sb.append(lbc + "companyURL=").append(companyURL); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateAvailable != null){ + sb.append(lbc + "dateAvailable=").append(dateAvailable); + } + if(dateAvailableEnd != null){ + sb.append(lbc + "dateAvailableEnd=").append(dateAvailableEnd); + } + if(dateI9Expiration != null){ + sb.append(lbc + "dateI9Expiration=").append(dateI9Expiration); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateNextCall != null){ + sb.append(lbc + "dateNextCall=").append(dateNextCall); + } + if(dateOfBirth != null){ + sb.append(lbc + "dateOfBirth=").append(dateOfBirth); + } + if(dayRate != null){ + sb.append(lbc + "dayRate=").append(dayRate); + } + if(dayRateLow != null){ + sb.append(lbc + "dayRateLow=").append(dayRateLow); + } + if(degreeList != null){ + sb.append(lbc + "degreeList=").append(degreeList); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredLocations != null){ + sb.append(lbc + "desiredLocations=").append(desiredLocations); + } + if(disability != null){ + sb.append(lbc + "disability=").append(disability); + } + if(educationDegree != null){ + sb.append(lbc + "educationDegree=").append(educationDegree); + } + if(educations != null){ + sb.append(lbc + "educations=").append(educations.toStringNonNull(includeLineBreaks)); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(employeeType != null){ + sb.append(lbc + "employeeType=").append(employeeType); + } + if(employmentPreference != null){ + sb.append(lbc + "employmentPreference=").append(employmentPreference); + } + if(ethnicity != null){ + sb.append(lbc + "ethnicity=").append(ethnicity); + } + if(experience != null){ + sb.append(lbc + "experience=").append(experience); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(federalAddtionalWitholdingsAmount != null){ + sb.append(lbc + "federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + } + if(federalExemptions != null){ + sb.append(lbc + "federalExemptions=").append(federalExemptions); + } + if(federalFilingStatus != null){ + sb.append(lbc + "federalFilingStatus=").append(federalFilingStatus); + } + if(fileAttachments != null){ + sb.append(lbc + "fileAttachments=").append(fileAttachments.toStringNonNull(includeLineBreaks)); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(gender != null){ + sb.append(lbc + "gender=").append(gender); + } + if(hourlyRate != null){ + sb.append(lbc + "hourlyRate=").append(hourlyRate); + } + if(hourlyRateLow != null){ + sb.append(lbc + "hourlyRateLow=").append(hourlyRateLow); + } + if(interviews != null){ + sb.append(lbc + "interviews=").append(interviews.toStringNonNull(includeLineBreaks)); + } + if(i9OnFile != null){ + sb.append(lbc + "i9OnFile=").append(i9OnFile); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isEditable != null){ + sb.append(lbc + "isEditable=").append(isEditable); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(isAnonymized != null){ + sb.append(lbc + "isAnonymized=").append(isAnonymized); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull(includeLineBreaks)); + } + if(localAddtionalWitholdingsAmount != null){ + sb.append(lbc + "localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + } + if(localExemptions != null){ + sb.append(lbc + "localExemptions=").append(localExemptions); + } + if(localFilingStatus != null){ + sb.append(lbc + "localFilingStatus=").append(localFilingStatus); + } + if(localTaxCode != null){ + sb.append(lbc + "localTaxCode=").append(localTaxCode); + } + if(luceneScore != null){ + sb.append(lbc + "luceneScore=").append(luceneScore); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull(includeLineBreaks)); + } + if(numCategories != null){ + sb.append(lbc + "numCategories=").append(numCategories); + } + if(numOwners != null){ + sb.append(lbc + "numOwners=").append(numOwners); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(paperWorkOnFile != null){ + sb.append(lbc + "paperWorkOnFile=").append(paperWorkOnFile); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(placements != null){ + sb.append(lbc + "placements=").append(placements.toStringNonNull(includeLineBreaks)); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(primarySkills != null){ + sb.append(lbc + "primarySkills=").append(primarySkills.toStringNonNull(includeLineBreaks)); + } + if(recentClientList != null){ + sb.append(lbc + "recentClientList=").append(recentClientList); + } + if(referredBy != null){ + sb.append(lbc + "referredBy=").append(referredBy); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(references != null){ + sb.append(lbc + "references=").append(references.toStringNonNull(includeLineBreaks)); + } + if(salary != null){ + sb.append(lbc + "salary=").append(salary); + } + if(salaryLow != null){ + sb.append(lbc + "salaryLow=").append(salaryLow); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(secondarySkills != null){ + sb.append(lbc + "secondarySkills=").append(secondarySkills.toStringNonNull(includeLineBreaks)); + } + if(sendouts != null){ + sb.append(lbc + "sendouts=").append(sendouts.toStringNonNull(includeLineBreaks)); + } + if(skillSet != null){ + sb.append(lbc + "skillSet=").append(skillSet); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(ssn != null){ + sb.append(lbc + "ssn=").append(ssn); + } + if(stateAddtionalWitholdingsAmount != null){ + sb.append(lbc + "stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + } + if(stateExemptions != null){ + sb.append(lbc + "stateExemptions=").append(stateExemptions); + } + if(stateFilingStatus != null){ + sb.append(lbc + "stateFilingStatus=").append(stateFilingStatus); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(submissions != null){ + sb.append(lbc + "submissions=").append(submissions.toStringNonNull(includeLineBreaks)); + } + if(tasks != null){ + sb.append(lbc + "tasks=").append(tasks.toStringNonNull(includeLineBreaks)); + } + if(taxID != null){ + sb.append(lbc + "taxID=").append(taxID); + } + if(taxState != null){ + sb.append(lbc + "taxState=").append(taxState); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(travelLimit != null){ + sb.append(lbc + "travelLimit=").append(travelLimit); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + if(veteran != null){ + sb.append(lbc + "veteran=").append(veteran); + } + if(webResponses != null){ + sb.append(lbc + "webResponses=").append(webResponses); + } + if(willRelocate != null){ + sb.append(lbc + "willRelocate=").append(willRelocate); + } + if(workAuthorized != null){ + sb.append(lbc + "workAuthorized=").append(workAuthorized); + } + if(workHistories != null){ + sb.append(lbc + "workHistories=").append(workHistories.toStringNonNull(includeLineBreaks)); + } + sb.append(super.toStringNonNull(includeLineBreaks)); + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(workPhone != null){ + sb.append(lbc + "workPhone=").append(workPhone); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", branch=").append(branch); + sb.append(", businessSectors=").append(businessSectors); + sb.append(", canEnterTime=").append(canEnterTime); + sb.append(", categories=").append(categories); + sb.append(", category=").append(category); + sb.append(", certificationList=").append(certificationList); + sb.append(", certifications=").append(certifications); + sb.append(", clientCorporationBlackList=").append(clientCorporationBlackList); + sb.append(", clientCorporationWhiteList=").append(clientCorporationWhiteList); + sb.append(", comments=").append(comments); + sb.append(", companyName=").append(companyName); + sb.append(", companyURL=").append(companyURL); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateAvailable=").append(dateAvailable); + sb.append(", dateAvailableEnd=").append(dateAvailableEnd); + sb.append(", dateI9Expiration=").append(dateI9Expiration); + sb.append(", dateLastComment=").append(dateLastComment); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", dateNextCall=").append(dateNextCall); + sb.append(", dateOfBirth=").append(dateOfBirth); + sb.append(", dayRate=").append(dayRate); + sb.append(", dayRateLow=").append(dayRateLow); + sb.append(", degreeList=").append(degreeList); + sb.append(", description=").append(description); + sb.append(", desiredLocations=").append(desiredLocations); + sb.append(", disability=").append(disability); + sb.append(", educationDegree=").append(educationDegree); + sb.append(", educations=").append(educations); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", employeeType=").append(employeeType); + sb.append(", employmentPreference=").append(employmentPreference); + sb.append(", ethnicity=").append(ethnicity); + sb.append(", experience=").append(experience); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", federalAddtionalWitholdingsAmount=").append(federalAddtionalWitholdingsAmount); + sb.append(", federalExemptions=").append(federalExemptions); + sb.append(", federalFilingStatus=").append(federalFilingStatus); + sb.append(", fileAttachments=").append(fileAttachments); + sb.append(", firstName=").append(firstName); + sb.append(", gender=").append(gender); + sb.append(", hourlyRate=").append(hourlyRate); + sb.append(", hourlyRateLow=").append(hourlyRateLow); + sb.append(", interviews=").append(interviews); + sb.append(", i9OnFile=").append(i9OnFile); + sb.append(", isDayLightSavings=").append(isDayLightSavings); + sb.append(", isDeleted=").append(isDeleted); + sb.append(", isEditable=").append(isEditable); + sb.append(", isLockedOut=").append(isLockedOut); + sb.append(", isAnonymized=").append(isAnonymized); + sb.append(", lastName=").append(lastName); + sb.append(", linkedPerson=").append(linkedPerson); + sb.append(", leads=").append(leads); + sb.append(", localAddtionalWitholdingsAmount=").append(localAddtionalWitholdingsAmount); + sb.append(", localExemptions=").append(localExemptions); + sb.append(", localFilingStatus=").append(localFilingStatus); + sb.append(", localTaxCode=").append(localTaxCode); + sb.append(", luceneScore=").append(luceneScore); + sb.append(", massMailOptOut=").append(massMailOptOut); + sb.append(", middleName=").append(middleName); + sb.append(", migrateGUID=").append(migrateGUID); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); + sb.append(", notes=").append(notes); + sb.append(", numCategories=").append(numCategories); + sb.append(", numOwners=").append(numOwners); + sb.append(", occupation=").append(occupation); + sb.append(", owner=").append(owner); + sb.append(", pager=").append(pager); + sb.append(", paperWorkOnFile=").append(paperWorkOnFile); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", placements=").append(placements); + sb.append(", preferredContact=").append(preferredContact); + sb.append(", primarySkills=").append(primarySkills); + sb.append(", recentClientList=").append(recentClientList); + sb.append(", referredBy=").append(referredBy); + sb.append(", referredByPerson=").append(referredByPerson); + sb.append(", references=").append(references); + sb.append(", salary=").append(salary); + sb.append(", salaryLow=").append(salaryLow); + sb.append(", secondaryAddress=").append(secondaryAddress); + sb.append(", secondaryOwners=").append(secondaryOwners); + sb.append(", secondarySkills=").append(secondarySkills); + sb.append(", sendouts=").append(sendouts); + sb.append(", skillSet=").append(skillSet); + sb.append(", smsOptIn=").append(smsOptIn); + sb.append(", source=").append(source); + sb.append(", specialties=").append(specialties); + sb.append(", ssn=").append(ssn); + sb.append(", stateAddtionalWitholdingsAmount=").append(stateAddtionalWitholdingsAmount); + sb.append(", stateExemptions=").append(stateExemptions); + sb.append(", stateFilingStatus=").append(stateFilingStatus); + sb.append(", status=").append(status); + sb.append(", submissions=").append(submissions); + sb.append(", tasks=").append(tasks); + sb.append(", taxID=").append(taxID); + sb.append(", taxState=").append(taxState); + sb.append(", tearsheets=").append(tearsheets); + sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); + sb.append(", travelLimit=").append(travelLimit); + sb.append(", type=").append(type); + sb.append(", username=").append(username); + sb.append(", veteran=").append(veteran); + sb.append(", webResponses=").append(webResponses); + sb.append(", willRelocate=").append(willRelocate); + sb.append(", workAuthorized=").append(workAuthorized); + sb.append(", workHistories=").append(workHistories); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append(", customEncryptedText1=").append(customEncryptedText1); + sb.append(", customEncryptedText2=").append(customEncryptedText2); + sb.append(", customEncryptedText3=").append(customEncryptedText3); + sb.append(", customEncryptedText4=").append(customEncryptedText4); + sb.append(", customEncryptedText5=").append(customEncryptedText5); + sb.append(", customEncryptedText6=").append(customEncryptedText6); + sb.append(", customEncryptedText7=").append(customEncryptedText7); + sb.append(", customEncryptedText8=").append(customEncryptedText8); + sb.append(", customEncryptedText9=").append(customEncryptedText9); + sb.append(", customEncryptedText10=").append(customEncryptedText10); + sb.append(", workPhone=").append(workPhone); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java index 6f92dd40..7a0d17bb 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientContact.java @@ -1,1877 +1,1880 @@ -package com.bullhornsdk.data.model.entity.core.standard; - -import com.bullhornsdk.data.api.helper.RestOneToManySerializer; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; -import com.bullhornsdk.data.model.entity.core.type.CreateEntity; -import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; -import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; -import com.bullhornsdk.data.model.entity.core.type.FileEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.model.entity.core.type.SearchEntity; -import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; -import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; -import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; -import com.bullhornsdk.data.model.entity.embedded.Address; -import com.bullhornsdk.data.model.entity.embedded.OneToMany; -import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import org.hibernate.validator.constraints.Email; -import org.joda.time.DateTime; - -import javax.validation.constraints.Size; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "categories", - "category", "certifications", "clientContactID", "clientCorporation", - "comments", "customDate1", "customDate2", "customDate3", - "customFloat1", "customFloat2", "customFloat3", "customInt1", - "customInt2", "customInt3", "customText1", "customText10", - "customText11", "customText12", "customText13", "customText14", - "customText15", "customText16", "customText17", "customText18", - "customText19", "customText2", "customText20", "customText3", - "customText4", "customText5", "customText6", "customText7", - "customText8", "customText9", "customTextBlock1", "customTextBlock2", - "customTextBlock3", "customTextBlock4", "customTextBlock5", - "dateAdded", "dateLastComment", "dateLastModified", "dateLastVisit", "deleteMe", - "description", "desiredCategories", "desiredSkills", - "desiredSpecialties", "division", "email", "email2", "email3", - "externalID", "fax", "fax2", "fax3", "firstName", "isDayLightSavings", - "isDeleted", "isLockedOut", "lastName", "linkedPerson", "leads", - "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", - "namePrefix", "nameSuffix", "nickName", "notes", "numEmployees", "occupation", - "office", "owner", "pager", "password", "phone", "phone2", "phone3", - "preferredContact", "referredByPerson", "reportToPerson", - "secondaryAddress", "secondaryOwners", "skills", "smsOptIn", "source", - "specialties", "status", "tearsheets", "timeZoneOffsetEST", "trackTitle", "type", - "username", "customObject1s", "customObject2s", "customObject3s", - "customObject4s", "customObject5s", "customObject6s", "customObject7s", - "customObject8s", "customObject9s", "customObject10s" }) -public class ClientContact extends CustomFieldsB implements QueryEntity, - UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, - AssociationEntity, SearchEntity, DateLastModifiedEntity, EditHistoryEntity { - - private Integer id; - - private Address address; - - private Branch branch; - - private OneToMany businessSectors; - - private OneToMany categories; - - private Category category; - - @JsonIgnore - private String certifications; - - private Integer clientContactID; - - private ClientCorporation clientCorporation; - - @JsonIgnore - private String comments; - - private DateTime dateAdded; - - private DateTime dateLastComment; - - private DateTime dateLastModified; - - private DateTime dateLastVisit; - - private Boolean deleteMe; - - @JsonIgnore - private String description; - - @JsonIgnore - private String desiredCategories; - - @JsonIgnore - private String desiredSkills; - - @JsonIgnore - private String desiredSpecialties; - - @JsonIgnore - @Size(max = 40) - private String division; - - @JsonIgnore - @Email - @Size(max = 60) - private String email; - - @JsonIgnore - @Email - @Size(max = 100) - private String email2; - - @JsonIgnore - @Email - @Size(max = 100) - private String email3; - - @JsonIgnore - @Size(max = 30) - private String externalID; - - @JsonIgnore - @Size(max = 20) - private String fax; - - @JsonIgnore - @Size(max = 20) - private String fax2; - - @JsonIgnore - @Size(max = 20) - private String fax3; - - @JsonIgnore - @Size(max = 50) - private String firstName; - - private Boolean isDayLightSavings; - - private Boolean isDeleted; - - private Boolean isLockedOut; - - @JsonIgnore - @Size(max = 50) - private String lastName; - - private Person linkedPerson; - - private OneToMany leads; - - private Boolean massMailOptOut; - - @JsonIgnore - @Size(max = 50) - private String middleName; - - private Object migrateGUID; - - @JsonIgnore - @Size(max = 20) - private String mobile; - - @JsonIgnore - private String name; - - @JsonIgnore - @Size(max = 5) - private String namePrefix; - - @JsonIgnore - @Size(max = 5) - private String nameSuffix; - - @JsonIgnore - private String nickName; - - private OneToMany notes; - - private Integer numEmployees; - - @JsonIgnore - @Size(max = 50) - private String occupation; - - @JsonIgnore - @Size(max = 40) - private String office; - - private CorporateUser owner; - - @JsonIgnore - @Size(max = 20) - private String pager; - - @JsonIgnore - private String password; - - @JsonIgnore - @Size(max = 20) - private String phone; - - @JsonIgnore - @Size(max = 20) - private String phone2; - - @JsonIgnore - @Size(max = 20) - private String phone3; - - @JsonIgnore - @Size(max = 15) - private String preferredContact; - - private Person referredByPerson; - - private Person reportToPerson; - - private Address secondaryAddress; - - private OneToMany secondaryOwners; - - private OneToMany skills; - - private Boolean smsOptIn; - - @JsonIgnore - @Size(max = 200) - private String source; - - private OneToMany specialties; - - @JsonIgnore - @Size(max = 30) - private String status; - - private OneToManyLinkedId tearsheets; - - private Integer timeZoneOffsetEST; - - @JsonIgnore - @Size(max = 200) - private String trackTitle; - - @JsonIgnore - @Size(max = 30) - private String type; - - @JsonIgnore - private String username; - - private OneToMany customObject1s; - - private OneToMany customObject2s; - - private OneToMany customObject3s; - - private OneToMany customObject4s; - - private OneToMany customObject5s; - - private OneToMany customObject6s; - - private OneToMany customObject7s; - - private OneToMany customObject8s; - - private OneToMany customObject9s; - - private OneToMany customObject10s; - - public ClientContact() { - super(); - } - - public ClientContact(Integer id) { - super(); - this.id = id; - } - - /** - * Returns the entity with the required fields for an insert set. - * - * @return - */ - public ClientContact instantiateForInsert() { - ClientContact entity = new ClientContact(); - entity.setCategory(new Category(512973)); - entity.setClientCorporation(new ClientCorporation(1)); - entity.setEmail("unknown"); - entity.setNumEmployees(1); - entity.setIsDeleted(Boolean.FALSE); - entity.setPreferredContact("Email"); - entity.setStatus("Client"); - entity.setUsername(new DateTime().toString()); - entity.setPassword("secret"); - entity.setType("Unknown"); - return entity; - } - - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @ReadOnly - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } - - @JsonProperty("address") - public Address getAddress() { - return address; - } - - @JsonProperty("address") - public void setAddress(Address address) { - this.address = address; - } - - @JsonProperty("branch") - public Branch getBranch() { - return branch; - } - - @JsonProperty("branch") - public void setBranch(Branch branch) { - this.branch = branch; - } - - @JsonProperty("businessSectors") - public OneToMany getBusinessSectors() { - return businessSectors; - } - - @JsonProperty("businessSectors") - public void setBusinessSectors(OneToMany businessSectors) { - this.businessSectors = businessSectors; - } - - @JsonProperty("categories") - public OneToMany getCategories() { - return categories; - } - - @JsonProperty("categories") - public void setCategories(OneToMany categories) { - this.categories = categories; - } - - @JsonProperty("category") - public Category getCategory() { - return category; - } - - @JsonProperty("category") - public void setCategory(Category category) { - this.category = category; - } - - @JsonProperty("certifications") - public String getCertifications() { - return certifications; - } - - @JsonIgnore - public void setCertifications(String certifications) { - this.certifications = certifications; - } - - @JsonProperty("clientContactID") - public Integer getClientContactID() { - return clientContactID; - } - - @ReadOnly - @JsonProperty("clientContactID") - public void setClientContactID(Integer clientContactID) { - this.clientContactID = clientContactID; - } - - @JsonProperty("clientCorporation") - public ClientCorporation getClientCorporation() { - return clientCorporation; - } - - @JsonProperty("clientCorporation") - public void setClientCorporation(ClientCorporation clientCorporation) { - this.clientCorporation = clientCorporation; - } - - @JsonProperty("comments") - public String getComments() { - return comments; - } - - @JsonIgnore - public void setComments(String comments) { - this.comments = comments; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @ReadOnly - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } - - @JsonProperty("dateLastComment") - public DateTime getDateLastComment() { - return dateLastComment; - } - - @ReadOnly - @JsonProperty("dateLastComment") - public void setDateLastComment(DateTime dateLastComment) { - this.dateLastComment = dateLastComment; - } - - @JsonProperty("dateLastModified") - public DateTime getDateLastModified() { - return dateLastModified; - } - - @ReadOnly - @JsonProperty("dateLastModified") - public void setDateLastModified(DateTime dateLastModified) { - this.dateLastModified = dateLastModified; - } - - @JsonProperty("dateLastVisit") - public DateTime getDateLastVisit() { - return dateLastVisit; - } - - @JsonProperty("dateLastVisit") - public void setDateLastVisit(DateTime dateLastVisit) { - this.dateLastVisit = dateLastVisit; - } - - @JsonProperty("deleteMe") - public Boolean getDeleteMe() { - return deleteMe; - } - - @JsonProperty("deleteMe") - public void setDeleteMe(Boolean deleteMe) { - this.deleteMe = deleteMe; - } - - @JsonProperty("description") - public String getDescription() { - return description; - } - - @JsonIgnore - public void setDescription(String description) { - this.description = description; - } - - @JsonProperty("desiredCategories") - public String getDesiredCategories() { - return desiredCategories; - } - - @JsonIgnore - public void setDesiredCategories(String desiredCategories) { - this.desiredCategories = desiredCategories; - } - - @JsonProperty("desiredSkills") - public String getDesiredSkills() { - return desiredSkills; - } - - @JsonIgnore - public void setDesiredSkills(String desiredSkills) { - this.desiredSkills = desiredSkills; - } - - @JsonProperty("desiredSpecialties") - public String getDesiredSpecialties() { - return desiredSpecialties; - } - - @JsonIgnore - public void setDesiredSpecialties(String desiredSpecialties) { - this.desiredSpecialties = desiredSpecialties; - } - - @JsonProperty("division") - public String getDivision() { - return division; - } - - @JsonIgnore - public void setDivision(String division) { - this.division = division; - } - - @JsonProperty("email") - public String getEmail() { - return email; - } - - @JsonIgnore - public void setEmail(String email) { - this.email = email; - } - - @JsonProperty("email2") - public String getEmail2() { - return email2; - } - - @JsonIgnore - public void setEmail2(String email2) { - this.email2 = email2; - } - - @JsonProperty("email3") - public String getEmail3() { - return email3; - } - - @JsonIgnore - public void setEmail3(String email3) { - this.email3 = email3; - } - - @JsonProperty("externalID") - public String getExternalID() { - return externalID; - } - - @JsonIgnore - public void setExternalID(String externalID) { - this.externalID = externalID; - } - - @JsonProperty("fax") - public String getFax() { - return fax; - } - - @JsonIgnore - public void setFax(String fax) { - this.fax = fax; - } - - @JsonProperty("fax2") - public String getFax2() { - return fax2; - } - - @JsonIgnore - public void setFax2(String fax2) { - this.fax2 = fax2; - } - - @JsonProperty("fax3") - public String getFax3() { - return fax3; - } - - @JsonIgnore - public void setFax3(String fax3) { - this.fax3 = fax3; - } - - @JsonProperty("firstName") - public String getFirstName() { - return firstName; - } - - @JsonIgnore - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - @JsonProperty("isDayLightSavings") - public Boolean getIsDayLightSavings() { - return isDayLightSavings; - } - - @JsonProperty("isDayLightSavings") - public void setIsDayLightSavings(Boolean isDayLightSavings) { - this.isDayLightSavings = isDayLightSavings; - } - - @JsonProperty("isDeleted") - public Boolean getIsDeleted() { - return isDeleted; - } - - @JsonProperty("isDeleted") - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - @JsonProperty("isLockedOut") - public Boolean getIsLockedOut() { - return isLockedOut; - } - - @JsonProperty("isLockedOut") - public void setIsLockedOut(Boolean isLockedOut) { - this.isLockedOut = isLockedOut; - } - - @JsonProperty("lastName") - public String getLastName() { - return lastName; - } - - @JsonIgnore - public void setLastName(String lastName) { - this.lastName = lastName; - } - - @JsonProperty("linkedPerson") - public Person getLinkedPerson() { - return linkedPerson; - } - - @JsonProperty("linkedPerson") - public void setLinkedPerson(Person linkedPerson) { - this.linkedPerson = linkedPerson; - } - - @JsonProperty("leads") - public OneToMany getLeads() { - return leads; - } - - @JsonProperty("leads") - public void setLeads(OneToMany leads) { - this.leads = leads; - } - - @JsonProperty("massMailOptOut") - public Boolean getMassMailOptOut() { - return massMailOptOut; - } - - @JsonProperty("massMailOptOut") - public void setMassMailOptOut(Boolean massMailOptOut) { - this.massMailOptOut = massMailOptOut; - } - - @JsonProperty("middleName") - public String getMiddleName() { - return middleName; - } - - @JsonIgnore - public void setMiddleName(String middleName) { - this.middleName = middleName; - } - - @JsonProperty("migrateGUID") - public Object getMigrateGUID() { - return migrateGUID; - } - - @JsonIgnore - public void setMigrateGUID(String migrateGUID) { - this.migrateGUID = migrateGUID; - } - - @JsonProperty("mobile") - public String getMobile() { - return mobile; - } - - @JsonIgnore - public void setMobile(String mobile) { - this.mobile = mobile; - } - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonIgnore - public void setName(String name) { - this.name = name; - } - - @JsonProperty("namePrefix") - public String getNamePrefix() { - return namePrefix; - } - - @JsonIgnore - public void setNamePrefix(String namePrefix) { - this.namePrefix = namePrefix; - } - - @JsonProperty("nameSuffix") - public String getNameSuffix() { - return nameSuffix; - } - - @JsonIgnore - public void setNameSuffix(String nameSuffix) { - this.nameSuffix = nameSuffix; - } - - @JsonProperty("nickName") - public String getNickName() { - return nickName; - } - - @JsonIgnore - public void setNickName(String nickName) { - this.nickName = nickName; - } - - @JsonProperty("notes") - public OneToMany getNotes() { - return notes; - } - - @ReadOnly - @JsonProperty("notes") - public void setNotes(OneToMany notes) { - this.notes = notes; - } - - @JsonProperty("numEmployees") - public Integer getNumEmployees() { - return numEmployees; - } - - @JsonProperty("numEmployees") - public void setNumEmployees(Integer numEmployees) { - this.numEmployees = numEmployees; - } - - @JsonProperty("occupation") - public String getOccupation() { - return occupation; - } - - @JsonIgnore - public void setOccupation(String occupation) { - this.occupation = occupation; - } - - @JsonProperty("office") - public String getOffice() { - return office; - } - - @JsonIgnore - public void setOffice(String office) { - this.office = office; - } - - @JsonProperty("owner") - public CorporateUser getOwner() { - return owner; - } - - @JsonProperty("owner") - public void setOwner(CorporateUser owner) { - this.owner = owner; - } - - @JsonProperty("pager") - public String getPager() { - return pager; - } - - @JsonIgnore - public void setPager(String pager) { - this.pager = pager; - } - - @JsonProperty("password") - public String getPassword() { - return password; - } - - @JsonIgnore - public void setPassword(String password) { - this.password = password; - } - - @JsonProperty("phone") - public String getPhone() { - return phone; - } - - @JsonIgnore - public void setPhone(String phone) { - this.phone = phone; - } - - @JsonProperty("phone2") - public String getPhone2() { - return phone2; - } - - @JsonIgnore - public void setPhone2(String phone2) { - this.phone2 = phone2; - } - - @JsonProperty("phone3") - public String getPhone3() { - return phone3; - } - - @JsonIgnore - public void setPhone3(String phone3) { - this.phone3 = phone3; - } - - @JsonProperty("preferredContact") - public String getPreferredContact() { - return preferredContact; - } - - @JsonIgnore - public void setPreferredContact(String preferredContact) { - this.preferredContact = preferredContact; - } - - @JsonProperty("referredByPerson") - public Person getReferredByPerson() { - return referredByPerson; - } - - @JsonProperty("referredByPerson") - public void setReferredByPerson(Person referredByPerson) { - this.referredByPerson = referredByPerson; - } - - @JsonProperty("reportToPerson") - public Person getReportToPerson() { - return reportToPerson; - } - - @JsonProperty("reportToPerson") - public void setReportToPerson(Person reportToPerson) { - this.reportToPerson = reportToPerson; - } - - @JsonProperty("secondaryAddress") - public Address getSecondaryAddress() { - return secondaryAddress; - } - - @JsonProperty("secondaryAddress") - public void setSecondaryAddress(Address secondaryAddress) { - this.secondaryAddress = secondaryAddress; - } - - @JsonProperty("secondaryOwners") - public OneToMany getSecondaryOwners() { - return secondaryOwners; - } - - @JsonProperty("secondaryOwners") - public void setSecondaryOwners(OneToMany secondaryOwners) { - this.secondaryOwners = secondaryOwners; - } - - @JsonProperty("skills") - public OneToMany getSkills() { - return skills; - } - - @JsonProperty("skills") - public void setSkills(OneToMany skills) { - this.skills = skills; - } - - @JsonProperty("smsOptIn") - public Boolean getSmsOptIn() { - return smsOptIn; - } - - @JsonProperty("smsOptIn") - public void setSmsOptIn(Boolean smsOptIn) { - this.smsOptIn = smsOptIn; - } - - @JsonProperty("source") - public String getSource() { - return source; - } - - @JsonIgnore - public void setSource(String source) { - this.source = source; - } - - @JsonProperty("specialties") - public OneToMany getSpecialties() { - return specialties; - } - - @JsonProperty("specialties") - public void setSpecialties(OneToMany specialties) { - this.specialties = specialties; - } - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonIgnore - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("tearsheets") - public OneToManyLinkedId getTearsheets() { - return tearsheets; - } - - @ReadOnly - @JsonProperty("tearsheets") - public void setTearsheets(OneToManyLinkedId tearsheets) { - this.tearsheets = tearsheets; - } - - @JsonProperty("timeZoneOffsetEST") - public Integer getTimeZoneOffsetEST() { - return timeZoneOffsetEST; - } - - @JsonProperty("timeZoneOffsetEST") - public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { - this.timeZoneOffsetEST = timeZoneOffsetEST; - } - - @JsonProperty("trackTitle") - public String getTrackTitle() { - return trackTitle; - } - - @JsonIgnore - public void setTrackTitle(String trackTitle) { - this.trackTitle = trackTitle; - } - - @JsonProperty("type") - public String getType() { - return type; - } - - @JsonIgnore - public void setType(String type) { - this.type = type; - } - - @JsonProperty("username") - public String getUsername() { - return username; - } - - @JsonIgnore - public void setUsername(String username) { - this.username = username; - } - - @JsonProperty("customObject1s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject1s() { - return customObject1s; - } - - @JsonProperty("customObject1s") - public void setCustomObject1s(OneToMany customObject1s) { - this.customObject1s = customObject1s; - } - - @JsonProperty("customObject2s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject2s() { - return customObject2s; - } - - @JsonProperty("customObject2s") - public void setCustomObject2s(OneToMany customObject2s) { - this.customObject2s = customObject2s; - } - - @JsonProperty("customObject3s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject3s() { - return customObject3s; - } - - @JsonProperty("customObject3s") - public void setCustomObject3s(OneToMany customObject3s) { - this.customObject3s = customObject3s; - } - - @JsonProperty("customObject4s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject4s() { - return customObject4s; - } - - @JsonProperty("customObject4s") - public void setCustomObject4s(OneToMany customObject4s) { - this.customObject4s = customObject4s; - } - - @JsonProperty("customObject5s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject5s() { - return customObject5s; - } - - @JsonProperty("customObject5s") - public void setCustomObject5s(OneToMany customObject5s) { - this.customObject5s = customObject5s; - } - - @JsonProperty("customObject6s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject6s() { - return customObject6s; - } - - @JsonProperty("customObject6s") - public void setCustomObject6s(OneToMany customObject6s) { - this.customObject6s = customObject6s; - } - - @JsonProperty("customObject7s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject7s() { - return customObject7s; - } - - @JsonProperty("customObject7s") - public void setCustomObject7s(OneToMany customObject7s) { - this.customObject7s = customObject7s; - } - - @JsonProperty("customObject8s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject8s() { - return customObject8s; - } - - @JsonProperty("customObject8s") - public void setCustomObject8s(OneToMany customObject8s) { - this.customObject8s = customObject8s; - } - - @JsonProperty("customObject9s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject9s() { - return customObject9s; - } - - @JsonProperty("customObject9s") - public void setCustomObject9s(OneToMany customObject9s) { - this.customObject9s = customObject9s; - } - - @JsonProperty("customObject10s") - @JsonSerialize(using = RestOneToManySerializer.class) - @JsonInclude(JsonInclude.Include.NON_NULL) - public OneToMany getCustomObject10s() { - return customObject10s; - } - - @JsonProperty("customObject10s") - public void setCustomObject10s(OneToMany customObject10s) { - this.customObject10s = customObject10s; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - - ClientContact that = (ClientContact) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (address != null ? !address.equals(that.address) : that.address != null) return false; - if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; - if (businessSectors != null ? !businessSectors.equals(that.businessSectors) : that.businessSectors != null) - return false; - if (categories != null ? !categories.equals(that.categories) : that.categories != null) return false; - if (category != null ? !category.equals(that.category) : that.category != null) return false; - if (certifications != null ? !certifications.equals(that.certifications) : that.certifications != null) - return false; - if (clientContactID != null ? !clientContactID.equals(that.clientContactID) : that.clientContactID != null) - return false; - if (clientCorporation != null ? !clientCorporation.equals(that.clientCorporation) : that.clientCorporation != null) - return false; - if (comments != null ? !comments.equals(that.comments) : that.comments != null) return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; - if (dateLastComment != null ? !dateLastComment.equals(that.dateLastComment) : that.dateLastComment != null) - return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - if (dateLastVisit != null ? !dateLastVisit.equals(that.dateLastVisit) : that.dateLastVisit != null) - return false; - if (deleteMe != null ? !deleteMe.equals(that.deleteMe) : that.deleteMe != null) return false; - if (description != null ? !description.equals(that.description) : that.description != null) return false; - if (desiredCategories != null ? !desiredCategories.equals(that.desiredCategories) : that.desiredCategories != null) - return false; - if (desiredSkills != null ? !desiredSkills.equals(that.desiredSkills) : that.desiredSkills != null) - return false; - if (desiredSpecialties != null ? !desiredSpecialties.equals(that.desiredSpecialties) : that.desiredSpecialties != null) - return false; - if (division != null ? !division.equals(that.division) : that.division != null) return false; - if (email != null ? !email.equals(that.email) : that.email != null) return false; - if (email2 != null ? !email2.equals(that.email2) : that.email2 != null) return false; - if (email3 != null ? !email3.equals(that.email3) : that.email3 != null) return false; - if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; - if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; - if (fax2 != null ? !fax2.equals(that.fax2) : that.fax2 != null) return false; - if (fax3 != null ? !fax3.equals(that.fax3) : that.fax3 != null) return false; - if (firstName != null ? !firstName.equals(that.firstName) : that.firstName != null) return false; - if (isDayLightSavings != null ? !isDayLightSavings.equals(that.isDayLightSavings) : that.isDayLightSavings != null) - return false; - if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; - if (isLockedOut != null ? !isLockedOut.equals(that.isLockedOut) : that.isLockedOut != null) return false; - if (lastName != null ? !lastName.equals(that.lastName) : that.lastName != null) return false; - if (linkedPerson != null ? !linkedPerson.equals(that.linkedPerson) : that.linkedPerson != null) return false; - if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; - if (massMailOptOut != null ? !massMailOptOut.equals(that.massMailOptOut) : that.massMailOptOut != null) - return false; - if (middleName != null ? !middleName.equals(that.middleName) : that.middleName != null) return false; - if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; - if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (namePrefix != null ? !namePrefix.equals(that.namePrefix) : that.namePrefix != null) return false; - if (nameSuffix != null ? !nameSuffix.equals(that.nameSuffix) : that.nameSuffix != null) return false; - if (nickName != null ? !nickName.equals(that.nickName) : that.nickName != null) return false; - if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; - if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; - if (occupation != null ? !occupation.equals(that.occupation) : that.occupation != null) return false; - if (office != null ? !office.equals(that.office) : that.office != null) return false; - if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; - if (pager != null ? !pager.equals(that.pager) : that.pager != null) return false; - if (password != null ? !password.equals(that.password) : that.password != null) return false; - if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; - if (phone2 != null ? !phone2.equals(that.phone2) : that.phone2 != null) return false; - if (phone3 != null ? !phone3.equals(that.phone3) : that.phone3 != null) return false; - if (preferredContact != null ? !preferredContact.equals(that.preferredContact) : that.preferredContact != null) - return false; - if (referredByPerson != null ? !referredByPerson.equals(that.referredByPerson) : that.referredByPerson != null) - return false; - if (reportToPerson != null ? !reportToPerson.equals(that.reportToPerson) : that.reportToPerson != null) - return false; - if (secondaryAddress != null ? !secondaryAddress.equals(that.secondaryAddress) : that.secondaryAddress != null) - return false; - if (secondaryOwners != null ? !secondaryOwners.equals(that.secondaryOwners) : that.secondaryOwners != null) - return false; - if (skills != null ? !skills.equals(that.skills) : that.skills != null) return false; - if (smsOptIn != null ? !smsOptIn.equals(that.smsOptIn) : that.smsOptIn != null) return false; - if (source != null ? !source.equals(that.source) : that.source != null) return false; - if (specialties != null ? !specialties.equals(that.specialties) : that.specialties != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (tearsheets != null ? !tearsheets.equals(that.tearsheets) : that.tearsheets != null) return false; - if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(that.timeZoneOffsetEST) : that.timeZoneOffsetEST != null) - return false; - if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - if (username != null ? !username.equals(that.username) : that.username != null) return false; - if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) - return false; - if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) - return false; - if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) - return false; - if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) - return false; - if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) - return false; - if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) - return false; - if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) - return false; - if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) - return false; - if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) - return false; - return customObject10s != null ? customObject10s.equals(that.customObject10s) : that.customObject10s == null; - } - - @Override - public int hashCode() { - int result = super.hashCode(); - result = 31 * result + (id != null ? id.hashCode() : 0); - result = 31 * result + (address != null ? address.hashCode() : 0); - result = 31 * result + (branch != null ? branch.hashCode() : 0); - result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); - result = 31 * result + (categories != null ? categories.hashCode() : 0); - result = 31 * result + (category != null ? category.hashCode() : 0); - result = 31 * result + (certifications != null ? certifications.hashCode() : 0); - result = 31 * result + (clientContactID != null ? clientContactID.hashCode() : 0); - result = 31 * result + (clientCorporation != null ? clientCorporation.hashCode() : 0); - result = 31 * result + (comments != null ? comments.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - result = 31 * result + (dateLastVisit != null ? dateLastVisit.hashCode() : 0); - result = 31 * result + (deleteMe != null ? deleteMe.hashCode() : 0); - result = 31 * result + (description != null ? description.hashCode() : 0); - result = 31 * result + (desiredCategories != null ? desiredCategories.hashCode() : 0); - result = 31 * result + (desiredSkills != null ? desiredSkills.hashCode() : 0); - result = 31 * result + (desiredSpecialties != null ? desiredSpecialties.hashCode() : 0); - result = 31 * result + (division != null ? division.hashCode() : 0); - result = 31 * result + (email != null ? email.hashCode() : 0); - result = 31 * result + (email2 != null ? email2.hashCode() : 0); - result = 31 * result + (email3 != null ? email3.hashCode() : 0); - result = 31 * result + (externalID != null ? externalID.hashCode() : 0); - result = 31 * result + (fax != null ? fax.hashCode() : 0); - result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); - result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); - result = 31 * result + (firstName != null ? firstName.hashCode() : 0); - result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); - result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); - result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); - result = 31 * result + (lastName != null ? lastName.hashCode() : 0); - result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); - result = 31 * result + (leads != null ? leads.hashCode() : 0); - result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); - result = 31 * result + (middleName != null ? middleName.hashCode() : 0); - result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); - result = 31 * result + (mobile != null ? mobile.hashCode() : 0); - result = 31 * result + (name != null ? name.hashCode() : 0); - result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); - result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); - result = 31 * result + (nickName != null ? nickName.hashCode() : 0); - result = 31 * result + (notes != null ? notes.hashCode() : 0); - result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); - result = 31 * result + (occupation != null ? occupation.hashCode() : 0); - result = 31 * result + (office != null ? office.hashCode() : 0); - result = 31 * result + (owner != null ? owner.hashCode() : 0); - result = 31 * result + (pager != null ? pager.hashCode() : 0); - result = 31 * result + (password != null ? password.hashCode() : 0); - result = 31 * result + (phone != null ? phone.hashCode() : 0); - result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); - result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); - result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); - result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); - result = 31 * result + (reportToPerson != null ? reportToPerson.hashCode() : 0); - result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); - result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); - result = 31 * result + (skills != null ? skills.hashCode() : 0); - result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); - result = 31 * result + (source != null ? source.hashCode() : 0); - result = 31 * result + (specialties != null ? specialties.hashCode() : 0); - result = 31 * result + (status != null ? status.hashCode() : 0); - result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); - result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); - result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); - result = 31 * result + (type != null ? type.hashCode() : 0); - result = 31 * result + (username != null ? username.hashCode() : 0); - result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); - result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); - result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); - result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); - result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); - result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); - result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); - result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); - result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); - result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); - return result; - } - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientContactID != null){ - sb.append(lbc + "clientContactID=").append(clientContactID); - } - if(clientCorporation != null){ - sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateLastVisit != null){ - sb.append(lbc + "dateLastVisit=").append(dateLastVisit); - } - if(deleteMe != null){ - sb.append(lbc + "deleteMe=").append(deleteMe); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredCategories != null){ - sb.append(lbc + "desiredCategories=").append(desiredCategories); - } - if(desiredSkills != null){ - sb.append(lbc + "desiredSkills=").append(desiredSkills); - } - if(desiredSpecialties != null){ - sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); - } - if(division != null){ - sb.append(lbc + "division=").append(division); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(office != null){ - sb.append(lbc + "office=").append(office); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); - } - if(reportToPerson != null){ - sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); - } - if(skills != null){ - sb.append(lbc + "skills=").append(skills); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); - } - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - if(id != null){ - sb.append("id=").append(id); - } - if(address != null){ - sb.append(lbc + "address=").append(address); - } - if(branch != null){ - sb.append(lbc + "branch=").append(branch.toStringNonNull()); - } - if(businessSectors != null){ - sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); - } - if(categories != null){ - sb.append(lbc + "categories=").append(categories.toStringNonNull()); - } - if(category != null){ - sb.append(lbc + "category=").append(category.toStringNonNull()); - } - if(certifications != null){ - sb.append(lbc + "certifications=").append(certifications); - } - if(clientContactID != null){ - sb.append(lbc + "clientContactID=").append(clientContactID); - } - if(clientCorporation != null){ - sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); - } - if(comments != null){ - sb.append(lbc + "comments=").append(comments); - } - if(dateAdded != null){ - sb.append(lbc + "dateAdded=").append(dateAdded); - } - if(dateLastComment != null){ - sb.append(lbc + "dateLastComment=").append(dateLastComment); - } - if(dateLastModified != null){ - sb.append(lbc + "dateLastModified=").append(dateLastModified); - } - if(dateLastVisit != null){ - sb.append(lbc + "dateLastVisit=").append(dateLastVisit); - } - if(deleteMe != null){ - sb.append(lbc + "deleteMe=").append(deleteMe); - } - if(description != null){ - sb.append(lbc + "description=").append(description); - } - if(desiredCategories != null){ - sb.append(lbc + "desiredCategories=").append(desiredCategories); - } - if(desiredSkills != null){ - sb.append(lbc + "desiredSkills=").append(desiredSkills); - } - if(desiredSpecialties != null){ - sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); - } - if(division != null){ - sb.append(lbc + "division=").append(division); - } - if(email != null){ - sb.append(lbc + "email=").append(email); - } - if(email2 != null){ - sb.append(lbc + "email2=").append(email2); - } - if(email3 != null){ - sb.append(lbc + "email3=").append(email3); - } - if(externalID != null){ - sb.append(lbc + "externalID=").append(externalID); - } - if(fax != null){ - sb.append(lbc + "fax=").append(fax); - } - if(fax2 != null){ - sb.append(lbc + "fax2=").append(fax2); - } - if(fax3 != null){ - sb.append(lbc + "fax3=").append(fax3); - } - if(firstName != null){ - sb.append(lbc + "firstName=").append(firstName); - } - if(isDayLightSavings != null){ - sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); - } - if(isDeleted != null){ - sb.append(lbc + "isDeleted=").append(isDeleted); - } - if(isLockedOut != null){ - sb.append(lbc + "isLockedOut=").append(isLockedOut); - } - if(lastName != null){ - sb.append(lbc + "lastName=").append(lastName); - } - if(linkedPerson != null){ - sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); - } - if(leads != null){ - sb.append(lbc + "leads=").append(leads.toStringNonNull()); - } - if(massMailOptOut != null){ - sb.append(lbc + "massMailOptOut=").append(massMailOptOut); - } - if(middleName != null){ - sb.append(lbc + "middleName=").append(middleName); - } - if(migrateGUID != null){ - sb.append(lbc + "migrateGUID=").append(migrateGUID); - } - if(mobile != null){ - sb.append(lbc + "mobile=").append(mobile); - } - if(name != null){ - sb.append(lbc + "name=").append(name); - } - if(namePrefix != null){ - sb.append(lbc + "namePrefix=").append(namePrefix); - } - if(nameSuffix != null){ - sb.append(lbc + "nameSuffix=").append(nameSuffix); - } - if(nickName != null){ - sb.append(lbc + "nickName=").append(nickName); - } - if(notes != null){ - sb.append(lbc + "notes=").append(notes.toStringNonNull()); - } - if(numEmployees != null){ - sb.append(lbc + "numEmployees=").append(numEmployees); - } - if(occupation != null){ - sb.append(lbc + "occupation=").append(occupation); - } - if(office != null){ - sb.append(lbc + "office=").append(office); - } - if(owner != null){ - sb.append(lbc + "owner=").append(owner.toStringNonNull()); - } - if(pager != null){ - sb.append(lbc + "pager=").append(pager); - } - if(password != null){ - sb.append(lbc + "password=").append(password); - } - if(phone != null){ - sb.append(lbc + "phone=").append(phone); - } - if(phone2 != null){ - sb.append(lbc + "phone2=").append(phone2); - } - if(phone3 != null){ - sb.append(lbc + "phone3=").append(phone3); - } - if(preferredContact != null){ - sb.append(lbc + "preferredContact=").append(preferredContact); - } - if(referredByPerson != null){ - sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); - } - if(reportToPerson != null){ - sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull()); - } - if(secondaryAddress != null){ - sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); - } - if(secondaryOwners != null){ - sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); - } - if(skills != null){ - sb.append(lbc + "skills=").append(skills.toStringNonNull()); - } - if(smsOptIn != null){ - sb.append(lbc + "smsOptIn=").append(smsOptIn); - } - if(source != null){ - sb.append(lbc + "source=").append(source); - } - if(specialties != null){ - sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); - } - if(status != null){ - sb.append(lbc + "status=").append(status); - } - if(tearsheets != null){ - sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); - } - if(timeZoneOffsetEST != null){ - sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); - } - if(trackTitle != null){ - sb.append(lbc + "trackTitle=").append(trackTitle); - } - if(type != null){ - sb.append(lbc + "type=").append(type); - } - if(username != null){ - sb.append(lbc + "username=").append(username); - } - if(customObject1s != null){ - sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); - } - if(customObject2s != null){ - sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); - } - if(customObject3s != null){ - sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); - } - if(customObject4s != null){ - sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); - } - if(customObject5s != null){ - sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); - } - if(customObject6s != null){ - sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); - } - if(customObject7s != null){ - sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); - } - if(customObject8s != null){ - sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); - } - if(customObject9s != null){ - sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); - } - if(customObject10s != null){ - sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); - } - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("id=").append(id); - sb.append(", address=").append(address); - sb.append(", branch=").append(branch); - sb.append(", businessSectors=").append(businessSectors); - sb.append(", categories=").append(categories); - sb.append(", category=").append(category); - sb.append(", certifications=").append(certifications); - sb.append(", clientContactID=").append(clientContactID); - sb.append(", clientCorporation=").append(clientCorporation); - sb.append(", comments=").append(comments); - sb.append(", dateAdded=").append(dateAdded); - sb.append(", dateLastComment=").append(dateLastComment); - sb.append(", dateLastModified=").append(dateLastModified); - sb.append(", dateLastVisit=").append(dateLastVisit); - sb.append(", deleteMe=").append(deleteMe); - sb.append(", description=").append(description); - sb.append(", desiredCategories=").append(desiredCategories); - sb.append(", desiredSkills=").append(desiredSkills); - sb.append(", desiredSpecialties=").append(desiredSpecialties); - sb.append(", division=").append(division); - sb.append(", email=").append(email); - sb.append(", email2=").append(email2); - sb.append(", email3=").append(email3); - sb.append(", externalID=").append(externalID); - sb.append(", fax=").append(fax); - sb.append(", fax2=").append(fax2); - sb.append(", fax3=").append(fax3); - sb.append(", firstName=").append(firstName); - sb.append(", isDayLightSavings=").append(isDayLightSavings); - sb.append(", isDeleted=").append(isDeleted); - sb.append(", isLockedOut=").append(isLockedOut); - sb.append(", lastName=").append(lastName); - sb.append(", linkedPerson=").append(linkedPerson); - sb.append(", leads=").append(leads); - sb.append(", massMailOptOut=").append(massMailOptOut); - sb.append(", middleName=").append(middleName); - sb.append(", migrateGUID=").append(migrateGUID); - sb.append(", mobile=").append(mobile); - sb.append(", name=").append(name); - sb.append(", namePrefix=").append(namePrefix); - sb.append(", nameSuffix=").append(nameSuffix); - sb.append(", nickName=").append(nickName); - sb.append(", notes=").append(notes); - sb.append(", numEmployees=").append(numEmployees); - sb.append(", occupation=").append(occupation); - sb.append(", office=").append(office); - sb.append(", owner=").append(owner); - sb.append(", pager=").append(pager); - sb.append(", password=").append(password); - sb.append(", phone=").append(phone); - sb.append(", phone2=").append(phone2); - sb.append(", phone3=").append(phone3); - sb.append(", preferredContact=").append(preferredContact); - sb.append(", referredByPerson=").append(referredByPerson); - sb.append(", reportToPerson=").append(reportToPerson); - sb.append(", secondaryAddress=").append(secondaryAddress); - sb.append(", secondaryOwners=").append(secondaryOwners); - sb.append(", skills=").append(skills); - sb.append(", smsOptIn=").append(smsOptIn); - sb.append(", source=").append(source); - sb.append(", specialties=").append(specialties); - sb.append(", status=").append(status); - sb.append(", tearsheets=").append(tearsheets); - sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); - sb.append(", trackTitle=").append(trackTitle); - sb.append(", type=").append(type); - sb.append(", username=").append(username); - sb.append(", customObject1s=").append(customObject1s); - sb.append(", customObject2s=").append(customObject2s); - sb.append(", customObject3s=").append(customObject3s); - sb.append(", customObject4s=").append(customObject4s); - sb.append(", customObject5s=").append(customObject5s); - sb.append(", customObject6s=").append(customObject6s); - sb.append(", customObject7s=").append(customObject7s); - sb.append(", customObject8s=").append(customObject8s); - sb.append(", customObject9s=").append(customObject9s); - sb.append(", customObject10s=").append(customObject10s); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.FileEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SearchEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; +import com.bullhornsdk.data.model.entity.embedded.Address; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.embedded.OneToManyLinkedId; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import org.hibernate.validator.constraints.Email; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ "id", "address", "branch", "businessSectors", "categories", + "category", "certifications", "clientContactID", "clientCorporation", + "comments", "customDate1", "customDate2", "customDate3", + "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", + "customText11", "customText12", "customText13", "customText14", + "customText15", "customText16", "customText17", "customText18", + "customText19", "customText2", "customText20", "customText3", + "customText4", "customText5", "customText6", "customText7", + "customText8", "customText9", "customTextBlock1", "customTextBlock2", + "customTextBlock3", "customTextBlock4", "customTextBlock5", + "dateAdded", "dateLastComment", "dateLastModified", "dateLastVisit", "deleteMe", + "description", "desiredCategories", "desiredSkills", + "desiredSpecialties", "division", "email", "email2", "email3", + "externalID", "fax", "fax2", "fax3", "firstName", "isDayLightSavings", + "isDeleted", "isLockedOut", "lastName", "linkedPerson", "leads", + "massMailOptOut", "middleName", "migrateGUID", "mobile", "name", + "namePrefix", "nameSuffix", "nickName", "notes", "numEmployees", "occupation", + "office", "owner", "pager", "password", "phone", "phone2", "phone3", + "preferredContact", "referredByPerson", "reportToPerson", + "secondaryAddress", "secondaryOwners", "skills", "smsOptIn", "source", + "specialties", "status", "tearsheets", "timeZoneOffsetEST", "trackTitle", "type", + "username", "customObject1s", "customObject2s", "customObject3s", + "customObject4s", "customObject5s", "customObject6s", "customObject7s", + "customObject8s", "customObject9s", "customObject10s" }) +public class ClientContact extends CustomFieldsB implements QueryEntity, + UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity, + AssociationEntity, SearchEntity, DateLastModifiedEntity, EditHistoryEntity { + + private Integer id; + + private Address address; + + private Branch branch; + + private OneToMany businessSectors; + + private OneToMany categories; + + private Category category; + + @JsonIgnore + private String certifications; + + private Integer clientContactID; + + private ClientCorporation clientCorporation; + + @JsonIgnore + private String comments; + + private DateTime dateAdded; + + private DateTime dateLastComment; + + private DateTime dateLastModified; + + private DateTime dateLastVisit; + + private Boolean deleteMe; + + @JsonIgnore + private String description; + + @JsonIgnore + private String desiredCategories; + + @JsonIgnore + private String desiredSkills; + + @JsonIgnore + private String desiredSpecialties; + + @JsonIgnore + @Size(max = 40) + private String division; + + @JsonIgnore + @Email + @Size(max = 60) + private String email; + + @JsonIgnore + @Email + @Size(max = 100) + private String email2; + + @JsonIgnore + @Email + @Size(max = 100) + private String email3; + + @JsonIgnore + @Size(max = 30) + private String externalID; + + @JsonIgnore + @Size(max = 20) + private String fax; + + @JsonIgnore + @Size(max = 20) + private String fax2; + + @JsonIgnore + @Size(max = 20) + private String fax3; + + @JsonIgnore + @Size(max = 50) + private String firstName; + + private Boolean isDayLightSavings; + + private Boolean isDeleted; + + private Boolean isLockedOut; + + @JsonIgnore + @Size(max = 50) + private String lastName; + + private Person linkedPerson; + + private OneToMany leads; + + private Boolean massMailOptOut; + + @JsonIgnore + @Size(max = 50) + private String middleName; + + private Object migrateGUID; + + @JsonIgnore + @Size(max = 20) + private String mobile; + + @JsonIgnore + private String name; + + @JsonIgnore + @Size(max = 5) + private String namePrefix; + + @JsonIgnore + @Size(max = 5) + private String nameSuffix; + + @JsonIgnore + private String nickName; + + private OneToMany notes; + + private Integer numEmployees; + + @JsonIgnore + @Size(max = 50) + private String occupation; + + @JsonIgnore + @Size(max = 40) + private String office; + + private CorporateUser owner; + + @JsonIgnore + @Size(max = 20) + private String pager; + + @JsonIgnore + private String password; + + @JsonIgnore + @Size(max = 20) + private String phone; + + @JsonIgnore + @Size(max = 20) + private String phone2; + + @JsonIgnore + @Size(max = 20) + private String phone3; + + @JsonIgnore + @Size(max = 15) + private String preferredContact; + + private Person referredByPerson; + + private Person reportToPerson; + + private Address secondaryAddress; + + private OneToMany secondaryOwners; + + private OneToMany skills; + + private Boolean smsOptIn; + + @JsonIgnore + @Size(max = 200) + private String source; + + private OneToMany specialties; + + @JsonIgnore + @Size(max = 30) + private String status; + + private OneToManyLinkedId tearsheets; + + private Integer timeZoneOffsetEST; + + @JsonIgnore + @Size(max = 200) + private String trackTitle; + + @JsonIgnore + @Size(max = 30) + private String type; + + @JsonIgnore + private String username; + + private OneToMany customObject1s; + + private OneToMany customObject2s; + + private OneToMany customObject3s; + + private OneToMany customObject4s; + + private OneToMany customObject5s; + + private OneToMany customObject6s; + + private OneToMany customObject7s; + + private OneToMany customObject8s; + + private OneToMany customObject9s; + + private OneToMany customObject10s; + + public ClientContact() { + super(); + } + + public ClientContact(Integer id) { + super(); + this.id = id; + } + + /** + * Returns the entity with the required fields for an insert set. + * + * @return + */ + public ClientContact instantiateForInsert() { + ClientContact entity = new ClientContact(); + entity.setCategory(new Category(512973)); + entity.setClientCorporation(new ClientCorporation(1)); + entity.setEmail("unknown"); + entity.setNumEmployees(1); + entity.setIsDeleted(Boolean.FALSE); + entity.setPreferredContact("Email"); + entity.setStatus("Client"); + entity.setUsername(new DateTime().toString()); + entity.setPassword("secret"); + entity.setType("Unknown"); + return entity; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("address") + public Address getAddress() { + return address; + } + + @JsonProperty("address") + public void setAddress(Address address) { + this.address = address; + } + + @JsonProperty("branch") + public Branch getBranch() { + return branch; + } + + @JsonProperty("branch") + public void setBranch(Branch branch) { + this.branch = branch; + } + + @JsonProperty("businessSectors") + public OneToMany getBusinessSectors() { + return businessSectors; + } + + @JsonProperty("businessSectors") + public void setBusinessSectors(OneToMany businessSectors) { + this.businessSectors = businessSectors; + } + + @JsonProperty("categories") + public OneToMany getCategories() { + return categories; + } + + @JsonProperty("categories") + public void setCategories(OneToMany categories) { + this.categories = categories; + } + + @JsonProperty("category") + public Category getCategory() { + return category; + } + + @JsonProperty("category") + public void setCategory(Category category) { + this.category = category; + } + + @JsonProperty("certifications") + public String getCertifications() { + return certifications; + } + + @JsonIgnore + public void setCertifications(String certifications) { + this.certifications = certifications; + } + + @JsonProperty("clientContactID") + public Integer getClientContactID() { + return clientContactID; + } + + @ReadOnly + @JsonProperty("clientContactID") + public void setClientContactID(Integer clientContactID) { + this.clientContactID = clientContactID; + } + + @JsonProperty("clientCorporation") + public ClientCorporation getClientCorporation() { + return clientCorporation; + } + + @JsonProperty("clientCorporation") + public void setClientCorporation(ClientCorporation clientCorporation) { + this.clientCorporation = clientCorporation; + } + + @JsonProperty("comments") + public String getComments() { + return comments; + } + + @JsonIgnore + public void setComments(String comments) { + this.comments = comments; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @ReadOnly + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastComment") + public DateTime getDateLastComment() { + return dateLastComment; + } + + @ReadOnly + @JsonProperty("dateLastComment") + public void setDateLastComment(DateTime dateLastComment) { + this.dateLastComment = dateLastComment; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("dateLastVisit") + public DateTime getDateLastVisit() { + return dateLastVisit; + } + + @JsonProperty("dateLastVisit") + public void setDateLastVisit(DateTime dateLastVisit) { + this.dateLastVisit = dateLastVisit; + } + + @JsonProperty("deleteMe") + public Boolean getDeleteMe() { + return deleteMe; + } + + @JsonProperty("deleteMe") + public void setDeleteMe(Boolean deleteMe) { + this.deleteMe = deleteMe; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonIgnore + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("desiredCategories") + public String getDesiredCategories() { + return desiredCategories; + } + + @JsonIgnore + public void setDesiredCategories(String desiredCategories) { + this.desiredCategories = desiredCategories; + } + + @JsonProperty("desiredSkills") + public String getDesiredSkills() { + return desiredSkills; + } + + @JsonIgnore + public void setDesiredSkills(String desiredSkills) { + this.desiredSkills = desiredSkills; + } + + @JsonProperty("desiredSpecialties") + public String getDesiredSpecialties() { + return desiredSpecialties; + } + + @JsonIgnore + public void setDesiredSpecialties(String desiredSpecialties) { + this.desiredSpecialties = desiredSpecialties; + } + + @JsonProperty("division") + public String getDivision() { + return division; + } + + @JsonIgnore + public void setDivision(String division) { + this.division = division; + } + + @JsonProperty("email") + public String getEmail() { + return email; + } + + @JsonIgnore + public void setEmail(String email) { + this.email = email; + } + + @JsonProperty("email2") + public String getEmail2() { + return email2; + } + + @JsonIgnore + public void setEmail2(String email2) { + this.email2 = email2; + } + + @JsonProperty("email3") + public String getEmail3() { + return email3; + } + + @JsonIgnore + public void setEmail3(String email3) { + this.email3 = email3; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonIgnore + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("fax") + public String getFax() { + return fax; + } + + @JsonIgnore + public void setFax(String fax) { + this.fax = fax; + } + + @JsonProperty("fax2") + public String getFax2() { + return fax2; + } + + @JsonIgnore + public void setFax2(String fax2) { + this.fax2 = fax2; + } + + @JsonProperty("fax3") + public String getFax3() { + return fax3; + } + + @JsonIgnore + public void setFax3(String fax3) { + this.fax3 = fax3; + } + + @JsonProperty("firstName") + public String getFirstName() { + return firstName; + } + + @JsonIgnore + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + @JsonProperty("isDayLightSavings") + public Boolean getIsDayLightSavings() { + return isDayLightSavings; + } + + @JsonProperty("isDayLightSavings") + public void setIsDayLightSavings(Boolean isDayLightSavings) { + this.isDayLightSavings = isDayLightSavings; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isLockedOut") + public Boolean getIsLockedOut() { + return isLockedOut; + } + + @JsonProperty("isLockedOut") + public void setIsLockedOut(Boolean isLockedOut) { + this.isLockedOut = isLockedOut; + } + + @JsonProperty("lastName") + public String getLastName() { + return lastName; + } + + @JsonIgnore + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @JsonProperty("linkedPerson") + public Person getLinkedPerson() { + return linkedPerson; + } + + @JsonProperty("linkedPerson") + public void setLinkedPerson(Person linkedPerson) { + this.linkedPerson = linkedPerson; + } + + @JsonProperty("leads") + public OneToMany getLeads() { + return leads; + } + + @JsonProperty("leads") + public void setLeads(OneToMany leads) { + this.leads = leads; + } + + @JsonProperty("massMailOptOut") + public Boolean getMassMailOptOut() { + return massMailOptOut; + } + + @JsonProperty("massMailOptOut") + public void setMassMailOptOut(Boolean massMailOptOut) { + this.massMailOptOut = massMailOptOut; + } + + @JsonProperty("middleName") + public String getMiddleName() { + return middleName; + } + + @JsonIgnore + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + @JsonProperty("migrateGUID") + public Object getMigrateGUID() { + return migrateGUID; + } + + @JsonIgnore + public void setMigrateGUID(String migrateGUID) { + this.migrateGUID = migrateGUID; + } + + @JsonProperty("mobile") + public String getMobile() { + return mobile; + } + + @JsonIgnore + public void setMobile(String mobile) { + this.mobile = mobile; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonIgnore + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namePrefix") + public String getNamePrefix() { + return namePrefix; + } + + @JsonIgnore + public void setNamePrefix(String namePrefix) { + this.namePrefix = namePrefix; + } + + @JsonProperty("nameSuffix") + public String getNameSuffix() { + return nameSuffix; + } + + @JsonIgnore + public void setNameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + } + + @JsonProperty("nickName") + public String getNickName() { + return nickName; + } + + @JsonIgnore + public void setNickName(String nickName) { + this.nickName = nickName; + } + + @JsonProperty("notes") + public OneToMany getNotes() { + return notes; + } + + @ReadOnly + @JsonProperty("notes") + public void setNotes(OneToMany notes) { + this.notes = notes; + } + + @JsonProperty("numEmployees") + public Integer getNumEmployees() { + return numEmployees; + } + + @JsonProperty("numEmployees") + public void setNumEmployees(Integer numEmployees) { + this.numEmployees = numEmployees; + } + + @JsonProperty("occupation") + public String getOccupation() { + return occupation; + } + + @JsonIgnore + public void setOccupation(String occupation) { + this.occupation = occupation; + } + + @JsonProperty("office") + public String getOffice() { + return office; + } + + @JsonIgnore + public void setOffice(String office) { + this.office = office; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("pager") + public String getPager() { + return pager; + } + + @JsonIgnore + public void setPager(String pager) { + this.pager = pager; + } + + @JsonProperty("password") + public String getPassword() { + return password; + } + + @JsonIgnore + public void setPassword(String password) { + this.password = password; + } + + @JsonProperty("phone") + public String getPhone() { + return phone; + } + + @JsonIgnore + public void setPhone(String phone) { + this.phone = phone; + } + + @JsonProperty("phone2") + public String getPhone2() { + return phone2; + } + + @JsonIgnore + public void setPhone2(String phone2) { + this.phone2 = phone2; + } + + @JsonProperty("phone3") + public String getPhone3() { + return phone3; + } + + @JsonIgnore + public void setPhone3(String phone3) { + this.phone3 = phone3; + } + + @JsonProperty("preferredContact") + public String getPreferredContact() { + return preferredContact; + } + + @JsonIgnore + public void setPreferredContact(String preferredContact) { + this.preferredContact = preferredContact; + } + + @JsonProperty("referredByPerson") + public Person getReferredByPerson() { + return referredByPerson; + } + + @JsonProperty("referredByPerson") + public void setReferredByPerson(Person referredByPerson) { + this.referredByPerson = referredByPerson; + } + + @JsonProperty("reportToPerson") + public Person getReportToPerson() { + return reportToPerson; + } + + @JsonProperty("reportToPerson") + public void setReportToPerson(Person reportToPerson) { + this.reportToPerson = reportToPerson; + } + + @JsonProperty("secondaryAddress") + public Address getSecondaryAddress() { + return secondaryAddress; + } + + @JsonProperty("secondaryAddress") + public void setSecondaryAddress(Address secondaryAddress) { + this.secondaryAddress = secondaryAddress; + } + + @JsonProperty("secondaryOwners") + public OneToMany getSecondaryOwners() { + return secondaryOwners; + } + + @JsonProperty("secondaryOwners") + public void setSecondaryOwners(OneToMany secondaryOwners) { + this.secondaryOwners = secondaryOwners; + } + + @JsonProperty("skills") + public OneToMany getSkills() { + return skills; + } + + @JsonProperty("skills") + public void setSkills(OneToMany skills) { + this.skills = skills; + } + + @JsonProperty("smsOptIn") + public Boolean getSmsOptIn() { + return smsOptIn; + } + + @JsonProperty("smsOptIn") + public void setSmsOptIn(Boolean smsOptIn) { + this.smsOptIn = smsOptIn; + } + + @JsonProperty("source") + public String getSource() { + return source; + } + + @JsonIgnore + public void setSource(String source) { + this.source = source; + } + + @JsonProperty("specialties") + public OneToMany getSpecialties() { + return specialties; + } + + @JsonProperty("specialties") + public void setSpecialties(OneToMany specialties) { + this.specialties = specialties; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonIgnore + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("tearsheets") + public OneToManyLinkedId getTearsheets() { + return tearsheets; + } + + @ReadOnly + @JsonProperty("tearsheets") + public void setTearsheets(OneToManyLinkedId tearsheets) { + this.tearsheets = tearsheets; + } + + @JsonProperty("timeZoneOffsetEST") + public Integer getTimeZoneOffsetEST() { + return timeZoneOffsetEST; + } + + @JsonProperty("timeZoneOffsetEST") + public void setTimeZoneOffsetEST(Integer timeZoneOffsetEST) { + this.timeZoneOffsetEST = timeZoneOffsetEST; + } + + @JsonProperty("trackTitle") + public String getTrackTitle() { + return trackTitle; + } + + @JsonIgnore + public void setTrackTitle(String trackTitle) { + this.trackTitle = trackTitle; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonIgnore + public void setType(String type) { + this.type = type; + } + + @JsonProperty("username") + public String getUsername() { + return username; + } + + @JsonIgnore + public void setUsername(String username) { + this.username = username; + } + + @JsonProperty("customObject1s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject1s() { + return customObject1s; + } + + @JsonProperty("customObject1s") + public void setCustomObject1s(OneToMany customObject1s) { + this.customObject1s = customObject1s; + } + + @JsonProperty("customObject2s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject2s() { + return customObject2s; + } + + @JsonProperty("customObject2s") + public void setCustomObject2s(OneToMany customObject2s) { + this.customObject2s = customObject2s; + } + + @JsonProperty("customObject3s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject3s() { + return customObject3s; + } + + @JsonProperty("customObject3s") + public void setCustomObject3s(OneToMany customObject3s) { + this.customObject3s = customObject3s; + } + + @JsonProperty("customObject4s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject4s() { + return customObject4s; + } + + @JsonProperty("customObject4s") + public void setCustomObject4s(OneToMany customObject4s) { + this.customObject4s = customObject4s; + } + + @JsonProperty("customObject5s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject5s() { + return customObject5s; + } + + @JsonProperty("customObject5s") + public void setCustomObject5s(OneToMany customObject5s) { + this.customObject5s = customObject5s; + } + + @JsonProperty("customObject6s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject6s() { + return customObject6s; + } + + @JsonProperty("customObject6s") + public void setCustomObject6s(OneToMany customObject6s) { + this.customObject6s = customObject6s; + } + + @JsonProperty("customObject7s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject7s() { + return customObject7s; + } + + @JsonProperty("customObject7s") + public void setCustomObject7s(OneToMany customObject7s) { + this.customObject7s = customObject7s; + } + + @JsonProperty("customObject8s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject8s() { + return customObject8s; + } + + @JsonProperty("customObject8s") + public void setCustomObject8s(OneToMany customObject8s) { + this.customObject8s = customObject8s; + } + + @JsonProperty("customObject9s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject9s() { + return customObject9s; + } + + @JsonProperty("customObject9s") + public void setCustomObject9s(OneToMany customObject9s) { + this.customObject9s = customObject9s; + } + + @JsonProperty("customObject10s") + @JsonSerialize(using = RestOneToManySerializer.class) + @JsonInclude(JsonInclude.Include.NON_NULL) + public OneToMany getCustomObject10s() { + return customObject10s; + } + + @JsonProperty("customObject10s") + public void setCustomObject10s(OneToMany customObject10s) { + this.customObject10s = customObject10s; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + ClientContact that = (ClientContact) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + if (address != null ? !address.equals(that.address) : that.address != null) return false; + if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false; + if (businessSectors != null ? !businessSectors.equals(that.businessSectors) : that.businessSectors != null) + return false; + if (categories != null ? !categories.equals(that.categories) : that.categories != null) return false; + if (category != null ? !category.equals(that.category) : that.category != null) return false; + if (certifications != null ? !certifications.equals(that.certifications) : that.certifications != null) + return false; + if (clientContactID != null ? !clientContactID.equals(that.clientContactID) : that.clientContactID != null) + return false; + if (clientCorporation != null ? !clientCorporation.equals(that.clientCorporation) : that.clientCorporation != null) + return false; + if (comments != null ? !comments.equals(that.comments) : that.comments != null) return false; + if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) return false; + if (dateLastComment != null ? !dateLastComment.equals(that.dateLastComment) : that.dateLastComment != null) + return false; + if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) + return false; + if (dateLastVisit != null ? !dateLastVisit.equals(that.dateLastVisit) : that.dateLastVisit != null) + return false; + if (deleteMe != null ? !deleteMe.equals(that.deleteMe) : that.deleteMe != null) return false; + if (description != null ? !description.equals(that.description) : that.description != null) return false; + if (desiredCategories != null ? !desiredCategories.equals(that.desiredCategories) : that.desiredCategories != null) + return false; + if (desiredSkills != null ? !desiredSkills.equals(that.desiredSkills) : that.desiredSkills != null) + return false; + if (desiredSpecialties != null ? !desiredSpecialties.equals(that.desiredSpecialties) : that.desiredSpecialties != null) + return false; + if (division != null ? !division.equals(that.division) : that.division != null) return false; + if (email != null ? !email.equals(that.email) : that.email != null) return false; + if (email2 != null ? !email2.equals(that.email2) : that.email2 != null) return false; + if (email3 != null ? !email3.equals(that.email3) : that.email3 != null) return false; + if (externalID != null ? !externalID.equals(that.externalID) : that.externalID != null) return false; + if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false; + if (fax2 != null ? !fax2.equals(that.fax2) : that.fax2 != null) return false; + if (fax3 != null ? !fax3.equals(that.fax3) : that.fax3 != null) return false; + if (firstName != null ? !firstName.equals(that.firstName) : that.firstName != null) return false; + if (isDayLightSavings != null ? !isDayLightSavings.equals(that.isDayLightSavings) : that.isDayLightSavings != null) + return false; + if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false; + if (isLockedOut != null ? !isLockedOut.equals(that.isLockedOut) : that.isLockedOut != null) return false; + if (lastName != null ? !lastName.equals(that.lastName) : that.lastName != null) return false; + if (linkedPerson != null ? !linkedPerson.equals(that.linkedPerson) : that.linkedPerson != null) return false; + if (leads != null ? !leads.equals(that.leads) : that.leads != null) return false; + if (massMailOptOut != null ? !massMailOptOut.equals(that.massMailOptOut) : that.massMailOptOut != null) + return false; + if (middleName != null ? !middleName.equals(that.middleName) : that.middleName != null) return false; + if (migrateGUID != null ? !migrateGUID.equals(that.migrateGUID) : that.migrateGUID != null) return false; + if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false; + if (name != null ? !name.equals(that.name) : that.name != null) return false; + if (namePrefix != null ? !namePrefix.equals(that.namePrefix) : that.namePrefix != null) return false; + if (nameSuffix != null ? !nameSuffix.equals(that.nameSuffix) : that.nameSuffix != null) return false; + if (nickName != null ? !nickName.equals(that.nickName) : that.nickName != null) return false; + if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false; + if (numEmployees != null ? !numEmployees.equals(that.numEmployees) : that.numEmployees != null) return false; + if (occupation != null ? !occupation.equals(that.occupation) : that.occupation != null) return false; + if (office != null ? !office.equals(that.office) : that.office != null) return false; + if (owner != null ? !owner.equals(that.owner) : that.owner != null) return false; + if (pager != null ? !pager.equals(that.pager) : that.pager != null) return false; + if (password != null ? !password.equals(that.password) : that.password != null) return false; + if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false; + if (phone2 != null ? !phone2.equals(that.phone2) : that.phone2 != null) return false; + if (phone3 != null ? !phone3.equals(that.phone3) : that.phone3 != null) return false; + if (preferredContact != null ? !preferredContact.equals(that.preferredContact) : that.preferredContact != null) + return false; + if (referredByPerson != null ? !referredByPerson.equals(that.referredByPerson) : that.referredByPerson != null) + return false; + if (reportToPerson != null ? !reportToPerson.equals(that.reportToPerson) : that.reportToPerson != null) + return false; + if (secondaryAddress != null ? !secondaryAddress.equals(that.secondaryAddress) : that.secondaryAddress != null) + return false; + if (secondaryOwners != null ? !secondaryOwners.equals(that.secondaryOwners) : that.secondaryOwners != null) + return false; + if (skills != null ? !skills.equals(that.skills) : that.skills != null) return false; + if (smsOptIn != null ? !smsOptIn.equals(that.smsOptIn) : that.smsOptIn != null) return false; + if (source != null ? !source.equals(that.source) : that.source != null) return false; + if (specialties != null ? !specialties.equals(that.specialties) : that.specialties != null) return false; + if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (tearsheets != null ? !tearsheets.equals(that.tearsheets) : that.tearsheets != null) return false; + if (timeZoneOffsetEST != null ? !timeZoneOffsetEST.equals(that.timeZoneOffsetEST) : that.timeZoneOffsetEST != null) + return false; + if (trackTitle != null ? !trackTitle.equals(that.trackTitle) : that.trackTitle != null) return false; + if (type != null ? !type.equals(that.type) : that.type != null) return false; + if (username != null ? !username.equals(that.username) : that.username != null) return false; + if (customObject1s != null ? !customObject1s.equals(that.customObject1s) : that.customObject1s != null) + return false; + if (customObject2s != null ? !customObject2s.equals(that.customObject2s) : that.customObject2s != null) + return false; + if (customObject3s != null ? !customObject3s.equals(that.customObject3s) : that.customObject3s != null) + return false; + if (customObject4s != null ? !customObject4s.equals(that.customObject4s) : that.customObject4s != null) + return false; + if (customObject5s != null ? !customObject5s.equals(that.customObject5s) : that.customObject5s != null) + return false; + if (customObject6s != null ? !customObject6s.equals(that.customObject6s) : that.customObject6s != null) + return false; + if (customObject7s != null ? !customObject7s.equals(that.customObject7s) : that.customObject7s != null) + return false; + if (customObject8s != null ? !customObject8s.equals(that.customObject8s) : that.customObject8s != null) + return false; + if (customObject9s != null ? !customObject9s.equals(that.customObject9s) : that.customObject9s != null) + return false; + return customObject10s != null ? customObject10s.equals(that.customObject10s) : that.customObject10s == null; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (id != null ? id.hashCode() : 0); + result = 31 * result + (address != null ? address.hashCode() : 0); + result = 31 * result + (branch != null ? branch.hashCode() : 0); + result = 31 * result + (businessSectors != null ? businessSectors.hashCode() : 0); + result = 31 * result + (categories != null ? categories.hashCode() : 0); + result = 31 * result + (category != null ? category.hashCode() : 0); + result = 31 * result + (certifications != null ? certifications.hashCode() : 0); + result = 31 * result + (clientContactID != null ? clientContactID.hashCode() : 0); + result = 31 * result + (clientCorporation != null ? clientCorporation.hashCode() : 0); + result = 31 * result + (comments != null ? comments.hashCode() : 0); + result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); + result = 31 * result + (dateLastComment != null ? dateLastComment.hashCode() : 0); + result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); + result = 31 * result + (dateLastVisit != null ? dateLastVisit.hashCode() : 0); + result = 31 * result + (deleteMe != null ? deleteMe.hashCode() : 0); + result = 31 * result + (description != null ? description.hashCode() : 0); + result = 31 * result + (desiredCategories != null ? desiredCategories.hashCode() : 0); + result = 31 * result + (desiredSkills != null ? desiredSkills.hashCode() : 0); + result = 31 * result + (desiredSpecialties != null ? desiredSpecialties.hashCode() : 0); + result = 31 * result + (division != null ? division.hashCode() : 0); + result = 31 * result + (email != null ? email.hashCode() : 0); + result = 31 * result + (email2 != null ? email2.hashCode() : 0); + result = 31 * result + (email3 != null ? email3.hashCode() : 0); + result = 31 * result + (externalID != null ? externalID.hashCode() : 0); + result = 31 * result + (fax != null ? fax.hashCode() : 0); + result = 31 * result + (fax2 != null ? fax2.hashCode() : 0); + result = 31 * result + (fax3 != null ? fax3.hashCode() : 0); + result = 31 * result + (firstName != null ? firstName.hashCode() : 0); + result = 31 * result + (isDayLightSavings != null ? isDayLightSavings.hashCode() : 0); + result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0); + result = 31 * result + (isLockedOut != null ? isLockedOut.hashCode() : 0); + result = 31 * result + (lastName != null ? lastName.hashCode() : 0); + result = 31 * result + (linkedPerson != null ? linkedPerson.hashCode() : 0); + result = 31 * result + (leads != null ? leads.hashCode() : 0); + result = 31 * result + (massMailOptOut != null ? massMailOptOut.hashCode() : 0); + result = 31 * result + (middleName != null ? middleName.hashCode() : 0); + result = 31 * result + (migrateGUID != null ? migrateGUID.hashCode() : 0); + result = 31 * result + (mobile != null ? mobile.hashCode() : 0); + result = 31 * result + (name != null ? name.hashCode() : 0); + result = 31 * result + (namePrefix != null ? namePrefix.hashCode() : 0); + result = 31 * result + (nameSuffix != null ? nameSuffix.hashCode() : 0); + result = 31 * result + (nickName != null ? nickName.hashCode() : 0); + result = 31 * result + (notes != null ? notes.hashCode() : 0); + result = 31 * result + (numEmployees != null ? numEmployees.hashCode() : 0); + result = 31 * result + (occupation != null ? occupation.hashCode() : 0); + result = 31 * result + (office != null ? office.hashCode() : 0); + result = 31 * result + (owner != null ? owner.hashCode() : 0); + result = 31 * result + (pager != null ? pager.hashCode() : 0); + result = 31 * result + (password != null ? password.hashCode() : 0); + result = 31 * result + (phone != null ? phone.hashCode() : 0); + result = 31 * result + (phone2 != null ? phone2.hashCode() : 0); + result = 31 * result + (phone3 != null ? phone3.hashCode() : 0); + result = 31 * result + (preferredContact != null ? preferredContact.hashCode() : 0); + result = 31 * result + (referredByPerson != null ? referredByPerson.hashCode() : 0); + result = 31 * result + (reportToPerson != null ? reportToPerson.hashCode() : 0); + result = 31 * result + (secondaryAddress != null ? secondaryAddress.hashCode() : 0); + result = 31 * result + (secondaryOwners != null ? secondaryOwners.hashCode() : 0); + result = 31 * result + (skills != null ? skills.hashCode() : 0); + result = 31 * result + (smsOptIn != null ? smsOptIn.hashCode() : 0); + result = 31 * result + (source != null ? source.hashCode() : 0); + result = 31 * result + (specialties != null ? specialties.hashCode() : 0); + result = 31 * result + (status != null ? status.hashCode() : 0); + result = 31 * result + (tearsheets != null ? tearsheets.hashCode() : 0); + result = 31 * result + (timeZoneOffsetEST != null ? timeZoneOffsetEST.hashCode() : 0); + result = 31 * result + (trackTitle != null ? trackTitle.hashCode() : 0); + result = 31 * result + (type != null ? type.hashCode() : 0); + result = 31 * result + (username != null ? username.hashCode() : 0); + result = 31 * result + (customObject1s != null ? customObject1s.hashCode() : 0); + result = 31 * result + (customObject2s != null ? customObject2s.hashCode() : 0); + result = 31 * result + (customObject3s != null ? customObject3s.hashCode() : 0); + result = 31 * result + (customObject4s != null ? customObject4s.hashCode() : 0); + result = 31 * result + (customObject5s != null ? customObject5s.hashCode() : 0); + result = 31 * result + (customObject6s != null ? customObject6s.hashCode() : 0); + result = 31 * result + (customObject7s != null ? customObject7s.hashCode() : 0); + result = 31 * result + (customObject8s != null ? customObject8s.hashCode() : 0); + result = 31 * result + (customObject9s != null ? customObject9s.hashCode() : 0); + result = 31 * result + (customObject10s != null ? customObject10s.hashCode() : 0); + return result; + } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull(includeLineBreaks)); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull(includeLineBreaks)); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull(includeLineBreaks)); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull(includeLineBreaks)); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull(includeLineBreaks)); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull(includeLineBreaks)); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull(includeLineBreaks)); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull(includeLineBreaks)); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull(includeLineBreaks)); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull(includeLineBreaks)); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull(includeLineBreaks)); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull(includeLineBreaks)); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull(includeLineBreaks)); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + sb.append(super.toStringNonNull(includeLineBreaks)); + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull(includeLineBreaks)); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull(includeLineBreaks)); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull(includeLineBreaks)); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull(includeLineBreaks)); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull(includeLineBreaks)); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull(includeLineBreaks)); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull(includeLineBreaks)); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull(includeLineBreaks)); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull(includeLineBreaks)); + } + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + if(id != null){ + sb.append("id=").append(id); + } + if(address != null){ + sb.append(lbc + "address=").append(address); + } + if(branch != null){ + sb.append(lbc + "branch=").append(branch.toStringNonNull()); + } + if(businessSectors != null){ + sb.append(lbc + "businessSectors=").append(businessSectors.toStringNonNull()); + } + if(categories != null){ + sb.append(lbc + "categories=").append(categories.toStringNonNull()); + } + if(category != null){ + sb.append(lbc + "category=").append(category.toStringNonNull()); + } + if(certifications != null){ + sb.append(lbc + "certifications=").append(certifications); + } + if(clientContactID != null){ + sb.append(lbc + "clientContactID=").append(clientContactID); + } + if(clientCorporation != null){ + sb.append(lbc + "clientCorporation=").append(clientCorporation.toStringNonNull()); + } + if(comments != null){ + sb.append(lbc + "comments=").append(comments); + } + if(dateAdded != null){ + sb.append(lbc + "dateAdded=").append(dateAdded); + } + if(dateLastComment != null){ + sb.append(lbc + "dateLastComment=").append(dateLastComment); + } + if(dateLastModified != null){ + sb.append(lbc + "dateLastModified=").append(dateLastModified); + } + if(dateLastVisit != null){ + sb.append(lbc + "dateLastVisit=").append(dateLastVisit); + } + if(deleteMe != null){ + sb.append(lbc + "deleteMe=").append(deleteMe); + } + if(description != null){ + sb.append(lbc + "description=").append(description); + } + if(desiredCategories != null){ + sb.append(lbc + "desiredCategories=").append(desiredCategories); + } + if(desiredSkills != null){ + sb.append(lbc + "desiredSkills=").append(desiredSkills); + } + if(desiredSpecialties != null){ + sb.append(lbc + "desiredSpecialties=").append(desiredSpecialties); + } + if(division != null){ + sb.append(lbc + "division=").append(division); + } + if(email != null){ + sb.append(lbc + "email=").append(email); + } + if(email2 != null){ + sb.append(lbc + "email2=").append(email2); + } + if(email3 != null){ + sb.append(lbc + "email3=").append(email3); + } + if(externalID != null){ + sb.append(lbc + "externalID=").append(externalID); + } + if(fax != null){ + sb.append(lbc + "fax=").append(fax); + } + if(fax2 != null){ + sb.append(lbc + "fax2=").append(fax2); + } + if(fax3 != null){ + sb.append(lbc + "fax3=").append(fax3); + } + if(firstName != null){ + sb.append(lbc + "firstName=").append(firstName); + } + if(isDayLightSavings != null){ + sb.append(lbc + "isDayLightSavings=").append(isDayLightSavings); + } + if(isDeleted != null){ + sb.append(lbc + "isDeleted=").append(isDeleted); + } + if(isLockedOut != null){ + sb.append(lbc + "isLockedOut=").append(isLockedOut); + } + if(lastName != null){ + sb.append(lbc + "lastName=").append(lastName); + } + if(linkedPerson != null){ + sb.append(lbc + "linkedPerson=").append(linkedPerson.toStringNonNull()); + } + if(leads != null){ + sb.append(lbc + "leads=").append(leads.toStringNonNull()); + } + if(massMailOptOut != null){ + sb.append(lbc + "massMailOptOut=").append(massMailOptOut); + } + if(middleName != null){ + sb.append(lbc + "middleName=").append(middleName); + } + if(migrateGUID != null){ + sb.append(lbc + "migrateGUID=").append(migrateGUID); + } + if(mobile != null){ + sb.append(lbc + "mobile=").append(mobile); + } + if(name != null){ + sb.append(lbc + "name=").append(name); + } + if(namePrefix != null){ + sb.append(lbc + "namePrefix=").append(namePrefix); + } + if(nameSuffix != null){ + sb.append(lbc + "nameSuffix=").append(nameSuffix); + } + if(nickName != null){ + sb.append(lbc + "nickName=").append(nickName); + } + if(notes != null){ + sb.append(lbc + "notes=").append(notes.toStringNonNull()); + } + if(numEmployees != null){ + sb.append(lbc + "numEmployees=").append(numEmployees); + } + if(occupation != null){ + sb.append(lbc + "occupation=").append(occupation); + } + if(office != null){ + sb.append(lbc + "office=").append(office); + } + if(owner != null){ + sb.append(lbc + "owner=").append(owner.toStringNonNull()); + } + if(pager != null){ + sb.append(lbc + "pager=").append(pager); + } + if(password != null){ + sb.append(lbc + "password=").append(password); + } + if(phone != null){ + sb.append(lbc + "phone=").append(phone); + } + if(phone2 != null){ + sb.append(lbc + "phone2=").append(phone2); + } + if(phone3 != null){ + sb.append(lbc + "phone3=").append(phone3); + } + if(preferredContact != null){ + sb.append(lbc + "preferredContact=").append(preferredContact); + } + if(referredByPerson != null){ + sb.append(lbc + "referredByPerson=").append(referredByPerson.toStringNonNull()); + } + if(reportToPerson != null){ + sb.append(lbc + "reportToPerson=").append(reportToPerson.toStringNonNull()); + } + if(secondaryAddress != null){ + sb.append(lbc + "secondaryAddress=").append(secondaryAddress.toStringNonNull()); + } + if(secondaryOwners != null){ + sb.append(lbc + "secondaryOwners=").append(secondaryOwners.toStringNonNull()); + } + if(skills != null){ + sb.append(lbc + "skills=").append(skills.toStringNonNull()); + } + if(smsOptIn != null){ + sb.append(lbc + "smsOptIn=").append(smsOptIn); + } + if(source != null){ + sb.append(lbc + "source=").append(source); + } + if(specialties != null){ + sb.append(lbc + "specialties=").append(specialties.toStringNonNull()); + } + if(status != null){ + sb.append(lbc + "status=").append(status); + } + if(tearsheets != null){ + sb.append(lbc + "tearsheets=").append(tearsheets.toStringNonNull()); + } + if(timeZoneOffsetEST != null){ + sb.append(lbc + "timeZoneOffsetEST=").append(timeZoneOffsetEST); + } + if(trackTitle != null){ + sb.append(lbc + "trackTitle=").append(trackTitle); + } + if(type != null){ + sb.append(lbc + "type=").append(type); + } + if(username != null){ + sb.append(lbc + "username=").append(username); + } + sb.append(super.toStringNonNull()); + if(customObject1s != null){ + sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); + } + if(customObject2s != null){ + sb.append(lbc + "customObject2s=").append(customObject2s.toStringNonNull()); + } + if(customObject3s != null){ + sb.append(lbc + "customObject3s=").append(customObject3s.toStringNonNull()); + } + if(customObject4s != null){ + sb.append(lbc + "customObject4s=").append(customObject4s.toStringNonNull()); + } + if(customObject5s != null){ + sb.append(lbc + "customObject5s=").append(customObject5s.toStringNonNull()); + } + if(customObject6s != null){ + sb.append(lbc + "customObject6s=").append(customObject6s.toStringNonNull()); + } + if(customObject7s != null){ + sb.append(lbc + "customObject7s=").append(customObject7s.toStringNonNull()); + } + if(customObject8s != null){ + sb.append(lbc + "customObject8s=").append(customObject8s.toStringNonNull()); + } + if(customObject9s != null){ + sb.append(lbc + "customObject9s=").append(customObject9s.toStringNonNull()); + } + if(customObject10s != null){ + sb.append(lbc + "customObject10s=").append(customObject10s.toStringNonNull()); + } + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("id=").append(id); + sb.append(", address=").append(address); + sb.append(", branch=").append(branch); + sb.append(", businessSectors=").append(businessSectors); + sb.append(", categories=").append(categories); + sb.append(", category=").append(category); + sb.append(", certifications=").append(certifications); + sb.append(", clientContactID=").append(clientContactID); + sb.append(", clientCorporation=").append(clientCorporation); + sb.append(", comments=").append(comments); + sb.append(", dateAdded=").append(dateAdded); + sb.append(", dateLastComment=").append(dateLastComment); + sb.append(", dateLastModified=").append(dateLastModified); + sb.append(", dateLastVisit=").append(dateLastVisit); + sb.append(", deleteMe=").append(deleteMe); + sb.append(", description=").append(description); + sb.append(", desiredCategories=").append(desiredCategories); + sb.append(", desiredSkills=").append(desiredSkills); + sb.append(", desiredSpecialties=").append(desiredSpecialties); + sb.append(", division=").append(division); + sb.append(", email=").append(email); + sb.append(", email2=").append(email2); + sb.append(", email3=").append(email3); + sb.append(", externalID=").append(externalID); + sb.append(", fax=").append(fax); + sb.append(", fax2=").append(fax2); + sb.append(", fax3=").append(fax3); + sb.append(", firstName=").append(firstName); + sb.append(", isDayLightSavings=").append(isDayLightSavings); + sb.append(", isDeleted=").append(isDeleted); + sb.append(", isLockedOut=").append(isLockedOut); + sb.append(", lastName=").append(lastName); + sb.append(", linkedPerson=").append(linkedPerson); + sb.append(", leads=").append(leads); + sb.append(", massMailOptOut=").append(massMailOptOut); + sb.append(", middleName=").append(middleName); + sb.append(", migrateGUID=").append(migrateGUID); + sb.append(", mobile=").append(mobile); + sb.append(", name=").append(name); + sb.append(", namePrefix=").append(namePrefix); + sb.append(", nameSuffix=").append(nameSuffix); + sb.append(", nickName=").append(nickName); + sb.append(", notes=").append(notes); + sb.append(", numEmployees=").append(numEmployees); + sb.append(", occupation=").append(occupation); + sb.append(", office=").append(office); + sb.append(", owner=").append(owner); + sb.append(", pager=").append(pager); + sb.append(", password=").append(password); + sb.append(", phone=").append(phone); + sb.append(", phone2=").append(phone2); + sb.append(", phone3=").append(phone3); + sb.append(", preferredContact=").append(preferredContact); + sb.append(", referredByPerson=").append(referredByPerson); + sb.append(", reportToPerson=").append(reportToPerson); + sb.append(", secondaryAddress=").append(secondaryAddress); + sb.append(", secondaryOwners=").append(secondaryOwners); + sb.append(", skills=").append(skills); + sb.append(", smsOptIn=").append(smsOptIn); + sb.append(", source=").append(source); + sb.append(", specialties=").append(specialties); + sb.append(", status=").append(status); + sb.append(", tearsheets=").append(tearsheets); + sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); + sb.append(", trackTitle=").append(trackTitle); + sb.append(", type=").append(type); + sb.append(", username=").append(username); + sb.append(super.toString()); + sb.append(", customObject1s=").append(customObject1s); + sb.append(", customObject2s=").append(customObject2s); + sb.append(", customObject3s=").append(customObject3s); + sb.append(", customObject4s=").append(customObject4s); + sb.append(", customObject5s=").append(customObject5s); + sb.append(", customObject6s=").append(customObject6s); + sb.append(", customObject7s=").append(customObject7s); + sb.append(", customObject8s=").append(customObject8s); + sb.append(", customObject9s=").append(customObject9s); + sb.append(", customObject10s=").append(customObject10s); + sb.append("}"); + return sb.toString(); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java index bdc5b52b..8fa399b7 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java @@ -1323,7 +1323,7 @@ public int hashCode() { @Override public String toStringNonNull() { String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(id != null){ sb.append("id=").append(id); } @@ -1520,7 +1520,7 @@ public String toStringNonNull() { @Override public String toStringNonNull(boolean includeLineBreaks) { String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); if(includeLineBreaks) sb.append("\n"); if(id != null){ diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index 30d0a75c..5a3f2270 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1503,6 +1503,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(workersCompensationRate != null){ sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate.toStringNonNull(includeLineBreaks)); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); } @@ -1741,6 +1742,7 @@ public String toStringNonNull() { if(workersCompensationRate != null){ sb.append(lbc + "workersCompensationRate=").append(workersCompensationRate.toStringNonNull()); } + sb.append(super.toStringNonNull()); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/BaseCustomFields.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/BaseCustomFields.java index b7abf572..0cc98a94 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/BaseCustomFields.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/BaseCustomFields.java @@ -135,20 +135,76 @@ public boolean equals(Object obj) { return true; } - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(customText1); - builder.append(", \ncustomText2="); - builder.append(customText2); - builder.append(", \ncustomText3="); - builder.append(customText3); - builder.append(", \ncustomText4="); - builder.append(customText4); - builder.append(", \ncustomText5="); - builder.append(customText5); - - return builder.toString(); - } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(); + if(customText1 != null){ + builder.append(lbc + "customText1="); + builder.append(customText1); + } + if(customText2 != null){ + builder.append(lbc + "customText2="); + builder.append(customText2); + } + if(customText3 != null){ + builder.append(lbc + "customText3="); + builder.append(customText3); + } + if(customText4 != null){ + builder.append(lbc + "customText4="); + builder.append(customText4); + } + if(customText5 != null){ + builder.append(lbc + "customText5="); + builder.append(customText5); + } + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(); + if(customText1 != null){ + builder.append(lbc + "customText1="); + builder.append(customText1); + } + if(customText2 != null){ + builder.append(lbc + "customText2="); + builder.append(customText2); + } + if(customText3 != null){ + builder.append(lbc + "customText3="); + builder.append(customText3); + } + if(customText4 != null){ + builder.append(lbc + "customText4="); + builder.append(customText4); + } + if(customText5 != null){ + builder.append(lbc + "customText5="); + builder.append(customText5); + } + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append(", customText1="); + builder.append(customText1); + builder.append(", customText2="); + builder.append(customText2); + builder.append(", customText3="); + builder.append(customText3); + builder.append(", customText4="); + builder.append(customText4); + builder.append(", customText5="); + builder.append(customText5); + return builder.toString(); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsA.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsA.java index ea774c34..c08dbe88 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsA.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsA.java @@ -509,60 +509,266 @@ public boolean equals(Object obj) { return true; } - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(super.toString()); - builder.append(", \ncustomDate1="); - builder.append(customDate1); - builder.append(", \ncustomDate2="); - builder.append(customDate2); - builder.append(", \ncustomDate3="); - builder.append(customDate3); - builder.append(", \ncustomFloat1="); - builder.append(customFloat1); - builder.append(", \ncustomFloat2="); - builder.append(customFloat2); - builder.append(", \ncustomFloat3="); - builder.append(customFloat3); - builder.append(", \ncustomInt1="); - builder.append(customInt1); - builder.append(", \ncustomInt2="); - builder.append(customInt2); - builder.append(", \ncustomInt3="); - builder.append(customInt3); - builder.append(", \ncustomText6="); - builder.append(customText6); - builder.append(", \ncustomText7="); - builder.append(customText7); - builder.append(", \ncustomText8="); - builder.append(customText8); - builder.append(", \ncustomText9="); - builder.append(customText9); - builder.append(", \ncustomText10="); - builder.append(customText10); - builder.append(", \ncustomText11="); - builder.append(customText11); - builder.append(", \ncustomText12="); - builder.append(customText12); - builder.append(", \ncustomText13="); - builder.append(customText13); - builder.append(", \ncustomText14="); - builder.append(customText14); - builder.append(", \ncustomText15="); - builder.append(customText15); - builder.append(", \ncustomText16="); - builder.append(customText16); - builder.append(", \ncustomText17="); - builder.append(customText17); - builder.append(", \ncustomText18="); - builder.append(customText18); - builder.append(", \ncustomText19="); - builder.append(customText19); - builder.append(", \ncustomText20="); - builder.append(customText20); - - return builder.toString(); - } + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(super.toStringNonNull()); + if(customDate1 != null){ + builder.append(lbc + "customDate1="); + builder.append(customDate1); + } + if(customDate2 != null){ + builder.append(lbc + "customDate2="); + builder.append(customDate2); + } + if(customDate3 != null){ + builder.append(lbc + "customDate3="); + builder.append(customDate3); + } + if(customFloat1 != null){ + builder.append(lbc + "customFloat1="); + builder.append(customFloat1); + } + if(customFloat2 != null){ + builder.append(lbc + "customFloat2="); + builder.append(customFloat2); + } + if(customFloat3 != null){ + builder.append(lbc + "customFloat3="); + builder.append(customFloat3); + } + if(customInt1 != null){ + builder.append(lbc + "customInt1="); + builder.append(customInt1); + } + if(customInt2 != null){ + builder.append(lbc + "customInt2="); + builder.append(customInt2); + } + if(customInt3 != null){ + builder.append(lbc + "customInt3="); + builder.append(customInt3); + } + if(customText6 != null){ + builder.append(lbc + "customText6="); + builder.append(customText6); + } + if(customText7 != null){ + builder.append(lbc + "customText7="); + builder.append(customText7); + } + if(customText8 != null){ + builder.append(lbc + "customText8="); + builder.append(customText8); + } + if(customText9 != null){ + builder.append(lbc + "customText9="); + builder.append(customText9); + } + if(customText10 != null){ + builder.append(lbc + "customText10="); + builder.append(customText10); + } + if(customText11 != null){ + builder.append(lbc + "customText11="); + builder.append(customText11); + } + if(customText12 != null){ + builder.append(lbc + "customText12="); + builder.append(customText12); + } + if(customText13 != null){ + builder.append(lbc + "customText13="); + builder.append(customText13); + } + if(customText14 != null){ + builder.append(lbc + "customText14="); + builder.append(customText14); + } + if(customText15 != null){ + builder.append(lbc + "customText15="); + builder.append(customText15); + } + if(customText16 != null){ + builder.append(lbc + "customText16="); + builder.append(customText16); + } + if(customText17 != null){ + builder.append(lbc + "customText17="); + builder.append(customText17); + } + if(customText18 != null){ + builder.append(lbc + "customText18="); + builder.append(customText18); + } + if(customText19 != null){ + builder.append(lbc + "customText19="); + builder.append(customText19); + } + if(customText20 != null){ + builder.append(lbc + "customText20="); + builder.append(customText20); + } + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(customDate1 != null){ + builder.append(lbc + "customDate1="); + builder.append(customDate1); + } + if(customDate2 != null){ + builder.append(lbc + "customDate2="); + builder.append(customDate2); + } + if(customDate3 != null){ + builder.append(lbc + "customDate3="); + builder.append(customDate3); + } + if(customFloat1 != null){ + builder.append(lbc + "customFloat1="); + builder.append(customFloat1); + } + if(customFloat2 != null){ + builder.append(lbc + "customFloat2="); + builder.append(customFloat2); + } + if(customFloat3 != null){ + builder.append(lbc + "customFloat3="); + builder.append(customFloat3); + } + if(customInt1 != null){ + builder.append(lbc + "customInt1="); + builder.append(customInt1); + } + if(customInt2 != null){ + builder.append(lbc + "customInt2="); + builder.append(customInt2); + } + if(customInt3 != null){ + builder.append(lbc + "customInt3="); + builder.append(customInt3); + } + if(customText6 != null){ + builder.append(lbc + "customText6="); + builder.append(customText6); + } + if(customText7 != null){ + builder.append(lbc + "customText7="); + builder.append(customText7); + } + if(customText8 != null){ + builder.append(lbc + "customText8="); + builder.append(customText8); + } + if(customText9 != null){ + builder.append(lbc + "customText9="); + builder.append(customText9); + } + if(customText10 != null){ + builder.append(lbc + "customText10="); + builder.append(customText10); + } + if(customText11 != null){ + builder.append(lbc + "customText11="); + builder.append(customText11); + } + if(customText12 != null){ + builder.append(lbc + "customText12="); + builder.append(customText12); + } + if(customText13 != null){ + builder.append(lbc + "customText13="); + builder.append(customText13); + } + if(customText14 != null){ + builder.append(lbc + "customText14="); + builder.append(customText14); + } + if(customText15 != null){ + builder.append(lbc + "customText15="); + builder.append(customText15); + } + if(customText16 != null){ + builder.append(lbc + "customText16="); + builder.append(customText16); + } + if(customText17 != null){ + builder.append(lbc + "customText17="); + builder.append(customText17); + } + if(customText18 != null){ + builder.append(lbc + "customText18="); + builder.append(customText18); + } + if(customText19 != null){ + builder.append(lbc + "customText19="); + builder.append(customText19); + } + if(customText20 != null){ + builder.append(lbc + "customText20="); + builder.append(customText20); + } + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(super.toString()); + builder.append(", customDate1="); + builder.append(customDate1); + builder.append(", customDate2="); + builder.append(customDate2); + builder.append(", customDate3="); + builder.append(customDate3); + builder.append(", customFloat1="); + builder.append(customFloat1); + builder.append(", customFloat2="); + builder.append(customFloat2); + builder.append(", customFloat3="); + builder.append(customFloat3); + builder.append(", customInt1="); + builder.append(customInt1); + builder.append(", customInt2="); + builder.append(customInt2); + builder.append(", customInt3="); + builder.append(customInt3); + builder.append(", customText6="); + builder.append(customText6); + builder.append(", customText7="); + builder.append(customText7); + builder.append(", customText8="); + builder.append(customText8); + builder.append(", customText9="); + builder.append(customText9); + builder.append(", customText10="); + builder.append(customText10); + builder.append(", customText11="); + builder.append(customText11); + builder.append(", customText12="); + builder.append(customText12); + builder.append(", customText13="); + builder.append(customText13); + builder.append(", customText14="); + builder.append(customText14); + builder.append(", customText15="); + builder.append(customText15); + builder.append(", customText16="); + builder.append(customText16); + builder.append(", customText17="); + builder.append(customText17); + builder.append(", customText18="); + builder.append(customText18); + builder.append(", customText19="); + builder.append(customText19); + builder.append(", customText20="); + builder.append(customText20); + return builder.toString(); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java index e6f1c360..45c82619 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsB.java @@ -1,154 +1,208 @@ -package com.bullhornsdk.data.model.entity.customfields; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Common custom fields: - * - * customDate 1-3 - * - * customFloat 1-3 - * - * customInt 1-3 - * - * customText 1-20 customTextBlock 1-5 - * - * @author magnus.palm - * - */ -public class CustomFieldsB extends CustomFieldsA { - - @JsonIgnore - private String customTextBlock1; - - @JsonIgnore - private String customTextBlock2; - - @JsonIgnore - private String customTextBlock3; - - @JsonIgnore - private String customTextBlock4; - - @JsonIgnore - private String customTextBlock5; - - @JsonProperty("customTextBlock1") - public String getCustomTextBlock1() { - return customTextBlock1; - } - - @JsonIgnore - public void setCustomTextBlock1(String customTextBlock1) { - this.customTextBlock1 = customTextBlock1; - } - - @JsonProperty("customTextBlock2") - public String getCustomTextBlock2() { - return customTextBlock2; - } - - @JsonIgnore - public void setCustomTextBlock2(String customTextBlock2) { - this.customTextBlock2 = customTextBlock2; - } - - @JsonProperty("customTextBlock3") - public String getCustomTextBlock3() { - return customTextBlock3; - } - - @JsonIgnore - public void setCustomTextBlock3(String customTextBlock3) { - this.customTextBlock3 = customTextBlock3; - } - - @JsonProperty("customTextBlock4") - public String getCustomTextBlock4() { - return customTextBlock4; - } - - @JsonIgnore - public void setCustomTextBlock4(String customTextBlock4) { - this.customTextBlock4 = customTextBlock4; - } - - @JsonProperty("customTextBlock5") - public String getCustomTextBlock5() { - return customTextBlock5; - } - - @JsonIgnore - public void setCustomTextBlock5(String customTextBlock5) { - this.customTextBlock5 = customTextBlock5; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = super.hashCode(); - result = prime * result + ((customTextBlock1 == null) ? 0 : customTextBlock1.hashCode()); - result = prime * result + ((customTextBlock2 == null) ? 0 : customTextBlock2.hashCode()); - result = prime * result + ((customTextBlock3 == null) ? 0 : customTextBlock3.hashCode()); - result = prime * result + ((customTextBlock4 == null) ? 0 : customTextBlock4.hashCode()); - result = prime * result + ((customTextBlock5 == null) ? 0 : customTextBlock5.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (!super.equals(obj)) - return false; - if (getClass() != obj.getClass()) - return false; - CustomFieldsB other = (CustomFieldsB) obj; - if (customTextBlock1 == null) { - if (other.customTextBlock1 != null) - return false; - } else if (!customTextBlock1.equals(other.customTextBlock1)) - return false; - if (customTextBlock2 == null) { - if (other.customTextBlock2 != null) - return false; - } else if (!customTextBlock2.equals(other.customTextBlock2)) - return false; - if (customTextBlock3 == null) { - if (other.customTextBlock3 != null) - return false; - } else if (!customTextBlock3.equals(other.customTextBlock3)) - return false; - if (customTextBlock4 == null) { - if (other.customTextBlock4 != null) - return false; - } else if (!customTextBlock4.equals(other.customTextBlock4)) - return false; - if (customTextBlock5 == null) { - if (other.customTextBlock5 != null) - return false; - } else if (!customTextBlock5.equals(other.customTextBlock5)) - return false; - return true; - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(super.toString()); - builder.append(",\n customTextBlock1="); - builder.append(customTextBlock1); - builder.append(",\n customTextBlock2="); - builder.append(customTextBlock2); - builder.append(",\n customTextBlock3="); - builder.append(customTextBlock3); - builder.append(",\n customTextBlock4="); - builder.append(customTextBlock4); - builder.append(",\n customTextBlock5="); - builder.append(customTextBlock5); - - return builder.toString(); - } - -} +package com.bullhornsdk.data.model.entity.customfields; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Common custom fields: + * + * customDate 1-3 + * + * customFloat 1-3 + * + * customInt 1-3 + * + * customText 1-20 customTextBlock 1-5 + * + * @author magnus.palm + * + */ +public class CustomFieldsB extends CustomFieldsA { + + @JsonIgnore + private String customTextBlock1; + + @JsonIgnore + private String customTextBlock2; + + @JsonIgnore + private String customTextBlock3; + + @JsonIgnore + private String customTextBlock4; + + @JsonIgnore + private String customTextBlock5; + + @JsonProperty("customTextBlock1") + public String getCustomTextBlock1() { + return customTextBlock1; + } + + @JsonIgnore + public void setCustomTextBlock1(String customTextBlock1) { + this.customTextBlock1 = customTextBlock1; + } + + @JsonProperty("customTextBlock2") + public String getCustomTextBlock2() { + return customTextBlock2; + } + + @JsonIgnore + public void setCustomTextBlock2(String customTextBlock2) { + this.customTextBlock2 = customTextBlock2; + } + + @JsonProperty("customTextBlock3") + public String getCustomTextBlock3() { + return customTextBlock3; + } + + @JsonIgnore + public void setCustomTextBlock3(String customTextBlock3) { + this.customTextBlock3 = customTextBlock3; + } + + @JsonProperty("customTextBlock4") + public String getCustomTextBlock4() { + return customTextBlock4; + } + + @JsonIgnore + public void setCustomTextBlock4(String customTextBlock4) { + this.customTextBlock4 = customTextBlock4; + } + + @JsonProperty("customTextBlock5") + public String getCustomTextBlock5() { + return customTextBlock5; + } + + @JsonIgnore + public void setCustomTextBlock5(String customTextBlock5) { + this.customTextBlock5 = customTextBlock5; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = super.hashCode(); + result = prime * result + ((customTextBlock1 == null) ? 0 : customTextBlock1.hashCode()); + result = prime * result + ((customTextBlock2 == null) ? 0 : customTextBlock2.hashCode()); + result = prime * result + ((customTextBlock3 == null) ? 0 : customTextBlock3.hashCode()); + result = prime * result + ((customTextBlock4 == null) ? 0 : customTextBlock4.hashCode()); + result = prime * result + ((customTextBlock5 == null) ? 0 : customTextBlock5.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (!super.equals(obj)) + return false; + if (getClass() != obj.getClass()) + return false; + CustomFieldsB other = (CustomFieldsB) obj; + if (customTextBlock1 == null) { + if (other.customTextBlock1 != null) + return false; + } else if (!customTextBlock1.equals(other.customTextBlock1)) + return false; + if (customTextBlock2 == null) { + if (other.customTextBlock2 != null) + return false; + } else if (!customTextBlock2.equals(other.customTextBlock2)) + return false; + if (customTextBlock3 == null) { + if (other.customTextBlock3 != null) + return false; + } else if (!customTextBlock3.equals(other.customTextBlock3)) + return false; + if (customTextBlock4 == null) { + if (other.customTextBlock4 != null) + return false; + } else if (!customTextBlock4.equals(other.customTextBlock4)) + return false; + if (customTextBlock5 == null) { + if (other.customTextBlock5 != null) + return false; + } else if (!customTextBlock5.equals(other.customTextBlock5)) + return false; + return true; + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(super.toStringNonNull()); + if(customTextBlock1 != null){ + builder.append(lbc + "customTextBlock1="); + builder.append(customTextBlock1); + } + if(customTextBlock2 != null){ + builder.append(lbc + "customTextBlock2="); + builder.append(customTextBlock2); + } + if(customTextBlock3 != null){ + builder.append(lbc + "customTextBlock3="); + builder.append(customTextBlock3); + } + if(customTextBlock4 != null){ + builder.append(lbc + "customTextBlock4="); + builder.append(customTextBlock4); + } + if(customTextBlock5 != null){ + builder.append(lbc + "customTextBlock5="); + builder.append(customTextBlock5); + } + return builder.toString(); + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(customTextBlock1 != null){ + builder.append(lbc + "customTextBlock1="); + builder.append(customTextBlock1); + } + if(customTextBlock2 != null){ + builder.append(lbc + "customTextBlock2="); + builder.append(customTextBlock2); + } + if(customTextBlock3 != null){ + builder.append(lbc + "customTextBlock3="); + builder.append(customTextBlock3); + } + if(customTextBlock4 != null){ + builder.append(lbc + "customTextBlock4="); + builder.append(customTextBlock4); + } + if(customTextBlock5 != null){ + builder.append(lbc + "customTextBlock5="); + builder.append(customTextBlock5); + } + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(super.toString()); + builder.append(", customTextBlock1="); + builder.append(customTextBlock1); + builder.append(", customTextBlock2="); + builder.append(customTextBlock2); + builder.append(", customTextBlock3="); + builder.append(customTextBlock3); + builder.append(", customTextBlock4="); + builder.append(customTextBlock4); + builder.append(", customTextBlock5="); + builder.append(customTextBlock5); + return builder.toString(); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsC.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsC.java index f118ea43..41400cb4 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsC.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsC.java @@ -475,55 +475,248 @@ public boolean equals(Object obj) { return true; } - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(", \ncorrelatedCustomDate1="); - builder.append(correlatedCustomDate1); - builder.append(", \ncorrelatedCustomDate2="); - builder.append(correlatedCustomDate2); - builder.append(", \ncorrelatedCustomDate3="); - builder.append(correlatedCustomDate3); - builder.append(", \ncorrelatedCustomFloat1="); - builder.append(correlatedCustomFloat1); - builder.append(", \ncorrelatedCustomFloat2="); - builder.append(correlatedCustomFloat2); - builder.append(", \ncorrelatedCustomFloat3="); - builder.append(correlatedCustomFloat3); - builder.append(", \ncorrelatedCustomInt1="); - builder.append(correlatedCustomInt1); - builder.append(", \ncorrelatedCustomInt2="); - builder.append(correlatedCustomInt2); - builder.append(", \ncorrelatedCustomInt3="); - builder.append(correlatedCustomInt3); - builder.append(", \ncorrelatedCustomText1="); - builder.append(correlatedCustomText1); - builder.append(", \ncorrelatedCustomText2="); - builder.append(correlatedCustomText2); - builder.append(", \ncorrelatedCustomText3="); - builder.append(correlatedCustomText3); - builder.append(", \ncorrelatedCustomText4="); - builder.append(correlatedCustomText4); - builder.append(", \ncorrelatedCustomText5="); - builder.append(correlatedCustomText5); - builder.append(", \ncorrelatedCustomText6="); - builder.append(correlatedCustomText6); - builder.append(", \ncorrelatedCustomText7="); - builder.append(correlatedCustomText7); - builder.append(", \ncorrelatedCustomText8="); - builder.append(correlatedCustomText8); - builder.append(", \ncorrelatedCustomText9="); - builder.append(correlatedCustomText9); - builder.append(", \ncorrelatedCustomText10="); - builder.append(correlatedCustomText10); - builder.append(", \ncorrelatedCustomTextBlock1="); - builder.append(correlatedCustomTextBlock1); - builder.append(", \ncorrelatedCustomTextBlock2="); - builder.append(correlatedCustomTextBlock2); - builder.append(", \ncorrelatedCustomTextBlock3="); - builder.append(correlatedCustomTextBlock3); - builder.append(super.toString()); - return builder.toString(); - } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(correlatedCustomDate1 != null){ + builder.append(lbc + "correlatedCustomDate1="); + builder.append(correlatedCustomDate1); + } + if(correlatedCustomDate2 != null){ + builder.append(lbc + "correlatedCustomDate2="); + builder.append(correlatedCustomDate2); + } + if(correlatedCustomDate3 != null){ + builder.append(lbc + "correlatedCustomDate3="); + builder.append(correlatedCustomDate3); + } + if(correlatedCustomFloat1 != null){ + builder.append(lbc + "correlatedCustomFloat1="); + builder.append(correlatedCustomFloat1); + } + if(correlatedCustomFloat2 != null){ + builder.append(lbc + "correlatedCustomFloat2="); + builder.append(correlatedCustomFloat2); + } + if(correlatedCustomFloat3 != null){ + builder.append(lbc + "correlatedCustomFloat3="); + builder.append(correlatedCustomFloat3); + } + if(correlatedCustomInt1 != null){ + builder.append(lbc + "correlatedCustomInt1="); + builder.append(correlatedCustomInt1); + } + if(correlatedCustomInt2 != null){ + builder.append(lbc + "correlatedCustomInt2="); + builder.append(correlatedCustomInt2); + } + if(correlatedCustomInt3 != null){ + builder.append(lbc + "correlatedCustomInt3="); + builder.append(correlatedCustomInt3); + } + if(correlatedCustomText1 != null){ + builder.append(lbc + "correlatedCustomText1="); + builder.append(correlatedCustomText1); + } + if(correlatedCustomText2 != null){ + builder.append(lbc + "correlatedCustomText2="); + builder.append(correlatedCustomText2); + } + if(correlatedCustomText3 != null){ + builder.append(lbc + "correlatedCustomText3="); + builder.append(correlatedCustomText3); + } + if(correlatedCustomText4 != null){ + builder.append(lbc + "correlatedCustomText4="); + builder.append(correlatedCustomText4); + } + if(correlatedCustomText5 != null){ + builder.append(lbc + "correlatedCustomText5="); + builder.append(correlatedCustomText5); + } + if(correlatedCustomText6 != null){ + builder.append(lbc + "correlatedCustomText6="); + builder.append(correlatedCustomText6); + } + if(correlatedCustomText7 != null){ + builder.append(lbc + "correlatedCustomText7="); + builder.append(correlatedCustomText7); + } + if(correlatedCustomText8 != null){ + builder.append(lbc + "correlatedCustomText8="); + builder.append(correlatedCustomText8); + } + if(correlatedCustomText9 != null){ + builder.append(lbc + "correlatedCustomText9="); + builder.append(correlatedCustomText9); + } + if(correlatedCustomText10 != null){ + builder.append(lbc + "correlatedCustomText10="); + builder.append(correlatedCustomText10); + } + if(correlatedCustomTextBlock1 != null){ + builder.append(lbc + "correlatedCustomTextBlock1="); + builder.append(correlatedCustomTextBlock1); + } + if(correlatedCustomTextBlock2 != null){ + builder.append(lbc + "correlatedCustomTextBlock2="); + builder.append(correlatedCustomTextBlock2); + } + if(correlatedCustomTextBlock3 != null){ + builder.append(lbc + "correlatedCustomTextBlock3="); + builder.append(correlatedCustomTextBlock3); + } + return builder.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(super.toStringNonNull()); + if(correlatedCustomDate1 != null){ + builder.append(lbc + "correlatedCustomDate1="); + builder.append(correlatedCustomDate1); + } + if(correlatedCustomDate2 != null){ + builder.append(lbc + "correlatedCustomDate2="); + builder.append(correlatedCustomDate2); + } + if(correlatedCustomDate3 != null){ + builder.append(lbc + "correlatedCustomDate3="); + builder.append(correlatedCustomDate3); + } + if(correlatedCustomFloat1 != null){ + builder.append(lbc + "correlatedCustomFloat1="); + builder.append(correlatedCustomFloat1); + } + if(correlatedCustomFloat2 != null){ + builder.append(lbc + "correlatedCustomFloat2="); + builder.append(correlatedCustomFloat2); + } + if(correlatedCustomFloat3 != null){ + builder.append(lbc + "correlatedCustomFloat3="); + builder.append(correlatedCustomFloat3); + } + if(correlatedCustomInt1 != null){ + builder.append(lbc + "correlatedCustomInt1="); + builder.append(correlatedCustomInt1); + } + if(correlatedCustomInt2 != null){ + builder.append(lbc + "correlatedCustomInt2="); + builder.append(correlatedCustomInt2); + } + if(correlatedCustomInt3 != null){ + builder.append(lbc + "correlatedCustomInt3="); + builder.append(correlatedCustomInt3); + } + if(correlatedCustomText1 != null){ + builder.append(lbc + "correlatedCustomText1="); + builder.append(correlatedCustomText1); + } + if(correlatedCustomText2 != null){ + builder.append(lbc + "correlatedCustomText2="); + builder.append(correlatedCustomText2); + } + if(correlatedCustomText3 != null){ + builder.append(lbc + "correlatedCustomText3="); + builder.append(correlatedCustomText3); + } + if(correlatedCustomText4 != null){ + builder.append(lbc + "correlatedCustomText4="); + builder.append(correlatedCustomText4); + } + if(correlatedCustomText5 != null){ + builder.append(lbc + "correlatedCustomText5="); + builder.append(correlatedCustomText5); + } + if(correlatedCustomText6 != null){ + builder.append(lbc + "correlatedCustomText6="); + builder.append(correlatedCustomText6); + } + if(correlatedCustomText7 != null){ + builder.append(lbc + "correlatedCustomText7="); + builder.append(correlatedCustomText7); + } + if(correlatedCustomText8 != null){ + builder.append(lbc + "correlatedCustomText8="); + builder.append(correlatedCustomText8); + } + if(correlatedCustomText9 != null){ + builder.append(lbc + "correlatedCustomText9="); + builder.append(correlatedCustomText9); + } + if(correlatedCustomText10 != null){ + builder.append(lbc + "correlatedCustomText10="); + builder.append(correlatedCustomText10); + } + if(correlatedCustomTextBlock1 != null){ + builder.append(lbc + "correlatedCustomTextBlock1="); + builder.append(correlatedCustomTextBlock1); + } + if(correlatedCustomTextBlock2 != null){ + builder.append(lbc + "correlatedCustomTextBlock2="); + builder.append(correlatedCustomTextBlock2); + } + if(correlatedCustomTextBlock3 != null){ + builder.append(lbc + "correlatedCustomTextBlock3="); + builder.append(correlatedCustomTextBlock3); + } + return builder.toString(); + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(super.toString()); + + builder.append(", correlatedCustomDate1="); + builder.append(correlatedCustomDate1); + builder.append(", correlatedCustomDate2="); + builder.append(correlatedCustomDate2); + builder.append(", correlatedCustomDate3="); + builder.append(correlatedCustomDate3); + builder.append(", correlatedCustomFloat1="); + builder.append(correlatedCustomFloat1); + builder.append(", correlatedCustomFloat2="); + builder.append(correlatedCustomFloat2); + builder.append(", correlatedCustomFloat3="); + builder.append(correlatedCustomFloat3); + builder.append(", correlatedCustomInt1="); + builder.append(correlatedCustomInt1); + builder.append(", correlatedCustomInt2="); + builder.append(correlatedCustomInt2); + builder.append(", correlatedCustomInt3="); + builder.append(correlatedCustomInt3); + builder.append(", correlatedCustomText1="); + builder.append(correlatedCustomText1); + builder.append(", correlatedCustomText2="); + builder.append(correlatedCustomText2); + builder.append(", correlatedCustomText3="); + builder.append(correlatedCustomText3); + builder.append(", correlatedCustomText4="); + builder.append(correlatedCustomText4); + builder.append(", correlatedCustomText5="); + builder.append(correlatedCustomText5); + builder.append(", correlatedCustomText6="); + builder.append(correlatedCustomText6); + builder.append(", correlatedCustomText7="); + builder.append(correlatedCustomText7); + builder.append(", correlatedCustomText8="); + builder.append(correlatedCustomText8); + builder.append(", correlatedCustomText9="); + builder.append(correlatedCustomText9); + builder.append(", correlatedCustomText10="); + builder.append(correlatedCustomText10); + builder.append(", correlatedCustomTextBlock1="); + builder.append(correlatedCustomTextBlock1); + builder.append(", correlatedCustomTextBlock2="); + builder.append(correlatedCustomTextBlock2); + builder.append(", correlatedCustomTextBlock3="); + builder.append(correlatedCustomTextBlock3); + + return builder.toString(); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsD.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsD.java index bdf73c73..e00eda27 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsD.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsD.java @@ -1913,136 +1913,901 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder sb = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(customBillRate1 != null){ + sb.append(lbc + "customBillRate1=").append(customBillRate1); + } + if(customBillRate2 != null){ + sb.append(lbc + "customBillRate2=").append(customBillRate2); + } + if(customBillRate3 != null){ + sb.append(lbc + "customBillRate3=").append(customBillRate3); + } + if(customBillRate4 != null){ + sb.append(lbc + "customBillRate4=").append(customBillRate4); + } + if(customBillRate5 != null){ + sb.append(lbc + "customBillRate5=").append(customBillRate5); + } + if(customBillRate6 != null){ + sb.append(lbc + "customBillRate6=").append(customBillRate6); + } + if(customBillRate7 != null){ + sb.append(lbc + "customBillRate7=").append(customBillRate7); + } + if(customBillRate8 != null){ + sb.append(lbc + "customBillRate8=").append(customBillRate8); + } + if(customBillRate9 != null){ + sb.append(lbc + "customBillRate9=").append(customBillRate9); + } + if(customBillRate10 != null){ + sb.append(lbc + "customBillRate10=").append(customBillRate10); + } + if(customPayRate1 != null){ + sb.append(lbc + "customPayRate1=").append(customPayRate1); + } + if(customPayRate2 != null){ + sb.append(lbc + "customPayRate2=").append(customPayRate2); + } + if(customPayRate3 != null){ + sb.append(lbc + "customPayRate3=").append(customPayRate3); + } + if(customPayRate4 != null){ + sb.append(lbc + "customPayRate4=").append(customPayRate4); + } + if(customPayRate5 != null){ + sb.append(lbc + "customPayRate5=").append(customPayRate5); + } + if(customPayRate6 != null){ + sb.append(lbc + "customPayRate6=").append(customPayRate6); + } + if(customPayRate7 != null){ + sb.append(lbc + "customPayRate7=").append(customPayRate7); + } + if(customPayRate8 != null){ + sb.append(lbc + "customPayRate8=").append(customPayRate8); + } + if(customPayRate9 != null){ + sb.append(lbc + "customPayRate9=").append(customPayRate9); + } + if(customPayRate10 != null){ + sb.append(lbc + "customPayRate10=").append(customPayRate10); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(customText21 != null){ + sb.append(lbc + "customText21=").append(customText21); + } + if(customText22 != null){ + sb.append(lbc + "customText22=").append(customText22); + } + if(customText23 != null){ + sb.append(lbc + "customText23=").append(customText23); + } + if(customText24 != null){ + sb.append(lbc + "customText24=").append(customText24); + } + if(customText25 != null){ + sb.append(lbc + "customText25=").append(customText25); + } + if(customText26 != null){ + sb.append(lbc + "customText26=").append(customText26); + } + if(customText27 != null){ + sb.append(lbc + "customText27=").append(customText27); + } + if(customText28 != null){ + sb.append(lbc + "customText28=").append(customText28); + } + if(customText29 != null){ + sb.append(lbc + "customText29=").append(customText29); + } + if(customText30 != null){ + sb.append(lbc + "customText30=").append(customText30); + } + if(customText31 != null){ + sb.append(lbc + "customText31=").append(customText31); + } + if(customText32 != null){ + sb.append(lbc + "customText32=").append(customText32); + } + if(customText33 != null){ + sb.append(lbc + "customText33=").append(customText33); + } + if(customText34 != null){ + sb.append(lbc + "customText34=").append(customText34); + } + if(customText35 != null){ + sb.append(lbc + "customText35=").append(customText35); + } + if(customText36 != null){ + sb.append(lbc + "customText36=").append(customText36); + } + if(customText37 != null){ + sb.append(lbc + "customText37=").append(customText37); + } + if(customText38 != null){ + sb.append(lbc + "customText38=").append(customText38); + } + if(customText39 != null){ + sb.append(lbc + "customText39=").append(customText39); + } + if(customText40 != null){ + sb.append(lbc + "customText40=").append(customText40); + } + if(customText41 != null){ + sb.append(lbc + "customText41=").append(customText41); + } + if(customText42 != null){ + sb.append(lbc + "customText42=").append(customText42); + } + if(customText43 != null){ + sb.append(lbc + "customText43=").append(customText43); + } + if(customText44 != null){ + sb.append(lbc + "customText44=").append(customText44); + } + if(customText45 != null){ + sb.append(lbc + "customText45=").append(customText45); + } + if(customText46 != null){ + sb.append(lbc + "customText46=").append(customText46); + } + if(customText47 != null){ + sb.append(lbc + "customText47=").append(customText47); + } + if(customText48 != null){ + sb.append(lbc + "customText48=").append(customText48); + } + if(customText49 != null){ + sb.append(lbc + "customText49=").append(customText49); + } + if(customText50 != null){ + sb.append(lbc + "customText50=").append(customText50); + } + if(customText51 != null){ + sb.append(lbc + "customText51=").append(customText51); + } + if(customText52 != null){ + sb.append(lbc + "customText52=").append(customText52); + } + if(customText53 != null){ + sb.append(lbc + "customText53=").append(customText53); + } + if(customText54 != null){ + sb.append(lbc + "customText54=").append(customText54); + } + if(customText55 != null){ + sb.append(lbc + "customText55=").append(customText55); + } + if(customText56 != null){ + sb.append(lbc + "customText56=").append(customText56); + } + if(customText57 != null){ + sb.append(lbc + "customText57=").append(customText57); + } + if(customText58 != null){ + sb.append(lbc + "customText58=").append(customText58); + } + if(customText59 != null){ + sb.append(lbc + "customText59=").append(customText59); + } + if(customText60 != null){ + sb.append(lbc + "customText60=").append(customText60); + } + if(customTextBlock6 != null){ + sb.append(lbc + "customTextBlock6=").append(customTextBlock6); + } + if(customTextBlock7 != null){ + sb.append(lbc + "customTextBlock7=").append(customTextBlock7); + } + if(customTextBlock8 != null){ + sb.append(lbc + "customTextBlock8=").append(customTextBlock8); + } + if(customTextBlock9 != null){ + sb.append(lbc + "customTextBlock9=").append(customTextBlock9); + } + if(customTextBlock10 != null){ + sb.append(lbc + "customTextBlock10=").append(customTextBlock10); + } + if(customDate4 != null){ + sb.append(lbc + "customDate4=").append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + "customDate5=").append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + "customDate6=").append(customDate6); + } + if(customDate7 != null){ + sb.append(lbc + "customDate7=").append(customDate7); + } + if(customDate8 != null){ + sb.append(lbc + "customDate8=").append(customDate8); + } + if(customDate9 != null){ + sb.append(lbc + "customDate9=").append(customDate9); + } + if(customDate10 != null){ + sb.append(lbc + "customDate10=").append(customDate10); + } + if(customDate11 != null){ + sb.append(lbc + "customDate11=").append(customDate11); + } + if(customDate12 != null){ + sb.append(lbc + "customDate12=").append(customDate12); + } + if(customDate13 != null){ + sb.append(lbc + "customDate13=").append(customDate13); + } + if(customInt4 != null){ + sb.append(lbc + "customInt4=").append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + "customInt5=").append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + "customInt6=").append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + "customInt7=").append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + "customInt8=").append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + "customInt9=").append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + "customInt10=").append(customInt10); + } + if(customInt11 != null){ + sb.append(lbc + "customInt11=").append(customInt11); + } + if(customInt12 != null){ + sb.append(lbc + "customInt12=").append(customInt12); + } + if(customInt13 != null){ + sb.append(lbc + "customInt13=").append(customInt13); + } + if(customInt14 != null){ + sb.append(lbc + "customInt14=").append(customInt14); + } + if(customInt15 != null){ + sb.append(lbc + "customInt15=").append(customInt15); + } + if(customInt16 != null){ + sb.append(lbc + "customInt16=").append(customInt16); + } + if(customInt17 != null){ + sb.append(lbc + "customInt17=").append(customInt17); + } + if(customInt18 != null){ + sb.append(lbc + "customInt18=").append(customInt18); + } + if(customInt19 != null){ + sb.append(lbc + "customInt19=").append(customInt19); + } + if(customInt20 != null){ + sb.append(lbc + "customInt20=").append(customInt20); + } + if(customInt21 != null){ + sb.append(lbc + "customInt21=").append(customInt21); + } + if(customInt22 != null){ + sb.append(lbc + "customInt22=").append(customInt22); + } + if(customInt23 != null){ + sb.append(lbc + "customInt23=").append(customInt23); + } + if(customFloat4 != null){ + sb.append(lbc + "customFloat4=").append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + "customFloat5=").append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + "customFloat6=").append(customFloat6); + } + if(customFloat7 != null){ + sb.append(lbc + "customFloat7=").append(customFloat7); + } + if(customFloat8 != null){ + sb.append(lbc + "customFloat8=").append(customFloat8); + } + if(customFloat9 != null){ + sb.append(lbc + "customFloat9=").append(customFloat9); + } + if(customFloat10 != null){ + sb.append(lbc + "customFloat10=").append(customFloat10); + } + if(customFloat11 != null){ + sb.append(lbc + "customFloat11=").append(customFloat11); + } + if(customFloat12 != null){ + sb.append(lbc + "customFloat12=").append(customFloat12); + } + if(customFloat13 != null){ + sb.append(lbc + "customFloat13=").append(customFloat13); + } + if(customFloat14 != null){ + sb.append(lbc + "customFloat14=").append(customFloat14); + } + if(customFloat15 != null){ + sb.append(lbc + "customFloat15=").append(customFloat15); + } + if(customFloat16 != null){ + sb.append(lbc + "customFloat16=").append(customFloat16); + } + if(customFloat17 != null){ + sb.append(lbc + "customFloat17=").append(customFloat17); + } + if(customFloat18 != null){ + sb.append(lbc + "customFloat18=").append(customFloat18); + } + if(customFloat19 != null){ + sb.append(lbc + "customFloat19=").append(customFloat19); + } + if(customFloat20 != null){ + sb.append(lbc + "customFloat20=").append(customFloat20); + } + if(customFloat21 != null){ + sb.append(lbc + "customFloat21=").append(customFloat21); + } + if(customFloat22 != null){ + sb.append(lbc + "customFloat22=").append(customFloat22); + } + if(customFloat23 != null){ + sb.append(lbc + "customFloat23=").append(customFloat23); + } + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder sb = new StringBuilder(super.toStringNonNull()); + if(customBillRate1 != null){ + sb.append(lbc + "customBillRate1=").append(customBillRate1); + } + if(customBillRate2 != null){ + sb.append(lbc + "customBillRate2=").append(customBillRate2); + } + if(customBillRate3 != null){ + sb.append(lbc + "customBillRate3=").append(customBillRate3); + } + if(customBillRate4 != null){ + sb.append(lbc + "customBillRate4=").append(customBillRate4); + } + if(customBillRate5 != null){ + sb.append(lbc + "customBillRate5=").append(customBillRate5); + } + if(customBillRate6 != null){ + sb.append(lbc + "customBillRate6=").append(customBillRate6); + } + if(customBillRate7 != null){ + sb.append(lbc + "customBillRate7=").append(customBillRate7); + } + if(customBillRate8 != null){ + sb.append(lbc + "customBillRate8=").append(customBillRate8); + } + if(customBillRate9 != null){ + sb.append(lbc + "customBillRate9=").append(customBillRate9); + } + if(customBillRate10 != null){ + sb.append(lbc + "customBillRate10=").append(customBillRate10); + } + if(customPayRate1 != null){ + sb.append(lbc + "customPayRate1=").append(customPayRate1); + } + if(customPayRate2 != null){ + sb.append(lbc + "customPayRate2=").append(customPayRate2); + } + if(customPayRate3 != null){ + sb.append(lbc + "customPayRate3=").append(customPayRate3); + } + if(customPayRate4 != null){ + sb.append(lbc + "customPayRate4=").append(customPayRate4); + } + if(customPayRate5 != null){ + sb.append(lbc + "customPayRate5=").append(customPayRate5); + } + if(customPayRate6 != null){ + sb.append(lbc + "customPayRate6=").append(customPayRate6); + } + if(customPayRate7 != null){ + sb.append(lbc + "customPayRate7=").append(customPayRate7); + } + if(customPayRate8 != null){ + sb.append(lbc + "customPayRate8=").append(customPayRate8); + } + if(customPayRate9 != null){ + sb.append(lbc + "customPayRate9=").append(customPayRate9); + } + if(customPayRate10 != null){ + sb.append(lbc + "customPayRate10=").append(customPayRate10); + } + if(customEncryptedText1 != null){ + sb.append(lbc + "customEncryptedText1=").append(customEncryptedText1); + } + if(customEncryptedText2 != null){ + sb.append(lbc + "customEncryptedText2=").append(customEncryptedText2); + } + if(customEncryptedText3 != null){ + sb.append(lbc + "customEncryptedText3=").append(customEncryptedText3); + } + if(customEncryptedText4 != null){ + sb.append(lbc + "customEncryptedText4=").append(customEncryptedText4); + } + if(customEncryptedText5 != null){ + sb.append(lbc + "customEncryptedText5=").append(customEncryptedText5); + } + if(customEncryptedText6 != null){ + sb.append(lbc + "customEncryptedText6=").append(customEncryptedText6); + } + if(customEncryptedText7 != null){ + sb.append(lbc + "customEncryptedText7=").append(customEncryptedText7); + } + if(customEncryptedText8 != null){ + sb.append(lbc + "customEncryptedText8=").append(customEncryptedText8); + } + if(customEncryptedText9 != null){ + sb.append(lbc + "customEncryptedText9=").append(customEncryptedText9); + } + if(customEncryptedText10 != null){ + sb.append(lbc + "customEncryptedText10=").append(customEncryptedText10); + } + if(customText21 != null){ + sb.append(lbc + "customText21=").append(customText21); + } + if(customText22 != null){ + sb.append(lbc + "customText22=").append(customText22); + } + if(customText23 != null){ + sb.append(lbc + "customText23=").append(customText23); + } + if(customText24 != null){ + sb.append(lbc + "customText24=").append(customText24); + } + if(customText25 != null){ + sb.append(lbc + "customText25=").append(customText25); + } + if(customText26 != null){ + sb.append(lbc + "customText26=").append(customText26); + } + if(customText27 != null){ + sb.append(lbc + "customText27=").append(customText27); + } + if(customText28 != null){ + sb.append(lbc + "customText28=").append(customText28); + } + if(customText29 != null){ + sb.append(lbc + "customText29=").append(customText29); + } + if(customText30 != null){ + sb.append(lbc + "customText30=").append(customText30); + } + if(customText31 != null){ + sb.append(lbc + "customText31=").append(customText31); + } + if(customText32 != null){ + sb.append(lbc + "customText32=").append(customText32); + } + if(customText33 != null){ + sb.append(lbc + "customText33=").append(customText33); + } + if(customText34 != null){ + sb.append(lbc + "customText34=").append(customText34); + } + if(customText35 != null){ + sb.append(lbc + "customText35=").append(customText35); + } + if(customText36 != null){ + sb.append(lbc + "customText36=").append(customText36); + } + if(customText37 != null){ + sb.append(lbc + "customText37=").append(customText37); + } + if(customText38 != null){ + sb.append(lbc + "customText38=").append(customText38); + } + if(customText39 != null){ + sb.append(lbc + "customText39=").append(customText39); + } + if(customText40 != null){ + sb.append(lbc + "customText40=").append(customText40); + } + if(customText41 != null){ + sb.append(lbc + "customText41=").append(customText41); + } + if(customText42 != null){ + sb.append(lbc + "customText42=").append(customText42); + } + if(customText43 != null){ + sb.append(lbc + "customText43=").append(customText43); + } + if(customText44 != null){ + sb.append(lbc + "customText44=").append(customText44); + } + if(customText45 != null){ + sb.append(lbc + "customText45=").append(customText45); + } + if(customText46 != null){ + sb.append(lbc + "customText46=").append(customText46); + } + if(customText47 != null){ + sb.append(lbc + "customText47=").append(customText47); + } + if(customText48 != null){ + sb.append(lbc + "customText48=").append(customText48); + } + if(customText49 != null){ + sb.append(lbc + "customText49=").append(customText49); + } + if(customText50 != null){ + sb.append(lbc + "customText50=").append(customText50); + } + if(customText51 != null){ + sb.append(lbc + "customText51=").append(customText51); + } + if(customText52 != null){ + sb.append(lbc + "customText52=").append(customText52); + } + if(customText53 != null){ + sb.append(lbc + "customText53=").append(customText53); + } + if(customText54 != null){ + sb.append(lbc + "customText54=").append(customText54); + } + if(customText55 != null){ + sb.append(lbc + "customText55=").append(customText55); + } + if(customText56 != null){ + sb.append(lbc + "customText56=").append(customText56); + } + if(customText57 != null){ + sb.append(lbc + "customText57=").append(customText57); + } + if(customText58 != null){ + sb.append(lbc + "customText58=").append(customText58); + } + if(customText59 != null){ + sb.append(lbc + "customText59=").append(customText59); + } + if(customText60 != null){ + sb.append(lbc + "customText60=").append(customText60); + } + if(customTextBlock6 != null){ + sb.append(lbc + "customTextBlock6=").append(customTextBlock6); + } + if(customTextBlock7 != null){ + sb.append(lbc + "customTextBlock7=").append(customTextBlock7); + } + if(customTextBlock8 != null){ + sb.append(lbc + "customTextBlock8=").append(customTextBlock8); + } + if(customTextBlock9 != null){ + sb.append(lbc + "customTextBlock9=").append(customTextBlock9); + } + if(customTextBlock10 != null){ + sb.append(lbc + "customTextBlock10=").append(customTextBlock10); + } + if(customDate4 != null){ + sb.append(lbc + "customDate4=").append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + "customDate5=").append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + "customDate6=").append(customDate6); + } + if(customDate7 != null){ + sb.append(lbc + "customDate7=").append(customDate7); + } + if(customDate8 != null){ + sb.append(lbc + "customDate8=").append(customDate8); + } + if(customDate9 != null){ + sb.append(lbc + "customDate9=").append(customDate9); + } + if(customDate10 != null){ + sb.append(lbc + "customDate10=").append(customDate10); + } + if(customDate11 != null){ + sb.append(lbc + "customDate11=").append(customDate11); + } + if(customDate12 != null){ + sb.append(lbc + "customDate12=").append(customDate12); + } + if(customDate13 != null){ + sb.append(lbc + "customDate13=").append(customDate13); + } + if(customInt4 != null){ + sb.append(lbc + "customInt4=").append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + "customInt5=").append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + "customInt6=").append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + "customInt7=").append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + "customInt8=").append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + "customInt9=").append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + "customInt10=").append(customInt10); + } + if(customInt11 != null){ + sb.append(lbc + "customInt11=").append(customInt11); + } + if(customInt12 != null){ + sb.append(lbc + "customInt12=").append(customInt12); + } + if(customInt13 != null){ + sb.append(lbc + "customInt13=").append(customInt13); + } + if(customInt14 != null){ + sb.append(lbc + "customInt14=").append(customInt14); + } + if(customInt15 != null){ + sb.append(lbc + "customInt15=").append(customInt15); + } + if(customInt16 != null){ + sb.append(lbc + "customInt16=").append(customInt16); + } + if(customInt17 != null){ + sb.append(lbc + "customInt17=").append(customInt17); + } + if(customInt18 != null){ + sb.append(lbc + "customInt18=").append(customInt18); + } + if(customInt19 != null){ + sb.append(lbc + "customInt19=").append(customInt19); + } + if(customInt20 != null){ + sb.append(lbc + "customInt20=").append(customInt20); + } + if(customInt21 != null){ + sb.append(lbc + "customInt21=").append(customInt21); + } + if(customInt22 != null){ + sb.append(lbc + "customInt22=").append(customInt22); + } + if(customInt23 != null){ + sb.append(lbc + "customInt23=").append(customInt23); + } + if(customFloat4 != null){ + sb.append(lbc + "customFloat4=").append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + "customFloat5=").append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + "customFloat6=").append(customFloat6); + } + if(customFloat7 != null){ + sb.append(lbc + "customFloat7=").append(customFloat7); + } + if(customFloat8 != null){ + sb.append(lbc + "customFloat8=").append(customFloat8); + } + if(customFloat9 != null){ + sb.append(lbc + "customFloat9=").append(customFloat9); + } + if(customFloat10 != null){ + sb.append(lbc + "customFloat10=").append(customFloat10); + } + if(customFloat11 != null){ + sb.append(lbc + "customFloat11=").append(customFloat11); + } + if(customFloat12 != null){ + sb.append(lbc + "customFloat12=").append(customFloat12); + } + if(customFloat13 != null){ + sb.append(lbc + "customFloat13=").append(customFloat13); + } + if(customFloat14 != null){ + sb.append(lbc + "customFloat14=").append(customFloat14); + } + if(customFloat15 != null){ + sb.append(lbc + "customFloat15=").append(customFloat15); + } + if(customFloat16 != null){ + sb.append(lbc + "customFloat16=").append(customFloat16); + } + if(customFloat17 != null){ + sb.append(lbc + "customFloat17=").append(customFloat17); + } + if(customFloat18 != null){ + sb.append(lbc + "customFloat18=").append(customFloat18); + } + if(customFloat19 != null){ + sb.append(lbc + "customFloat19=").append(customFloat19); + } + if(customFloat20 != null){ + sb.append(lbc + "customFloat20=").append(customFloat20); + } + if(customFloat21 != null){ + sb.append(lbc + "customFloat21=").append(customFloat21); + } + if(customFloat22 != null){ + sb.append(lbc + "customFloat22=").append(customFloat22); + } + if(customFloat23 != null){ + sb.append(lbc + "customFloat23=").append(customFloat23); + } + return sb.toString(); + } + @Override public String toString() { - return "CustomFieldsD{" + - "customBillRate1=" + customBillRate1 + - ", customBillRate10=" + customBillRate10 + - ", customBillRate2=" + customBillRate2 + - ", customBillRate3=" + customBillRate3 + - ", customBillRate4=" + customBillRate4 + - ", customBillRate5=" + customBillRate5 + - ", customBillRate6=" + customBillRate6 + - ", customBillRate7=" + customBillRate7 + - ", customBillRate8=" + customBillRate8 + - ", customBillRate9=" + customBillRate9 + - ", customPayRate1=" + customPayRate1 + - - ", customPayRate10=" + customPayRate10 + - ", customPayRate2=" + customPayRate2 + - ", customPayRate3=" + customPayRate3 + - ", customPayRate4=" + customPayRate4 + - ", customPayRate5=" + customPayRate5 + - ", customPayRate6=" + customPayRate6 + - ", customPayRate7=" + customPayRate7 + - ", customPayRate8=" + customPayRate8 + - ", customPayRate9=" + customPayRate9 + - ", customEncryptedText1='" + customEncryptedText1 + '\'' + - ", customEncryptedText2='" + customEncryptedText2 + '\'' + - ", customEncryptedText3='" + customEncryptedText3 + '\'' + - ", customEncryptedText4='" + customEncryptedText4 + '\'' + - ", customEncryptedText5='" + customEncryptedText5 + '\'' + - ", customEncryptedText6='" + customEncryptedText6 + '\'' + - ", customEncryptedText7='" + customEncryptedText7 + '\'' + - ", customEncryptedText8='" + customEncryptedText8 + '\'' + - ", customEncryptedText9='" + customEncryptedText9 + '\'' + - ", customEncryptedText10='" + customEncryptedText10 + '\'' + - ", customText21='" + customText21 + '\'' + - ", customText22='" + customText22 + '\'' + - ", customText23='" + customText23 + '\'' + - ", customText24='" + customText24 + '\'' + - ", customText25='" + customText25 + '\'' + - ", customText26='" + customText26 + '\'' + - ", customText27='" + customText27 + '\'' + - ", customText28='" + customText28 + '\'' + - ", customText29='" + customText29 + '\'' + - ", customText30='" + customText30 + '\'' + - ", customText31='" + customText31 + '\'' + - ", customText32='" + customText32 + '\'' + - ", customText33='" + customText33 + '\'' + - ", customText34='" + customText34 + '\'' + - ", customText35='" + customText35 + '\'' + - ", customText36='" + customText36 + '\'' + - ", customText37='" + customText37 + '\'' + - ", customText38='" + customText38 + '\'' + - ", customText39='" + customText39 + '\'' + - ", customText40='" + customText40 + '\'' + - ", customText41='" + customText41 + '\'' + - ", customText42='" + customText42 + '\'' + - ", customText43='" + customText43 + '\'' + - ", customText44='" + customText44 + '\'' + - ", customText45='" + customText45 + '\'' + - ", customText46='" + customText46 + '\'' + - ", customText47='" + customText47 + '\'' + - ", customText48='" + customText48 + '\'' + - ", customText49='" + customText49 + '\'' + - ", customText50='" + customText50 + '\'' + - ", customText51='" + customText51 + '\'' + - ", customText52='" + customText52 + '\'' + - ", customText53='" + customText53 + '\'' + - ", customText54='" + customText54 + '\'' + - ", customText55='" + customText55 + '\'' + - ", customText56='" + customText56 + '\'' + - ", customText57='" + customText57 + '\'' + - ", customText58='" + customText58 + '\'' + - ", customText59='" + customText59 + '\'' + - ", customText60='" + customText60 + '\'' + - ", customTextBlock6='" + customTextBlock6 + '\'' + - ", customTextBlock7='" + customTextBlock7 + '\'' + - ", customTextBlock8='" + customTextBlock8 + '\'' + - ", customTextBlock9='" + customTextBlock9 + '\'' + - ", customTextBlock10='" + customTextBlock10 + '\'' + - ", customDate4=" + customDate4 + - ", customDate5=" + customDate5 + - ", customDate6=" + customDate6 + - ", customDate7=" + customDate7 + - ", customDate8=" + customDate8 + - ", customDate9=" + customDate9 + - ", customDate10=" + customDate10 + - ", customDate11=" + customDate11 + - ", customDate12=" + customDate12 + - ", customDate13=" + customDate13 + - ", customInt4=" + customInt4 + - ", customInt5=" + customInt5 + - ", customInt6=" + customInt6 + - ", customInt7=" + customInt7 + - ", customInt8=" + customInt8 + - ", customInt9=" + customInt9 + - ", customInt10=" + customInt10 + - ", customInt11=" + customInt11 + - ", customInt12=" + customInt12 + - ", customInt13=" + customInt13 + - ", customInt14=" + customInt14 + - ", customInt15=" + customInt15 + - ", customInt16=" + customInt16 + - ", customInt17=" + customInt17 + - ", customInt18=" + customInt18 + - ", customInt19=" + customInt19 + - ", customInt20=" + customInt20 + - ", customInt21=" + customInt21 + - ", customInt22=" + customInt22 + - ", customInt23=" + customInt23 + - ", customFloat4=" + customFloat4 + - ", customFloat5=" + customFloat5 + - ", customFloat6=" + customFloat6 + - ", customFloat7=" + customFloat7 + - ", customFloat8=" + customFloat8 + - ", customFloat9=" + customFloat9 + - ", customFloat10=" + customFloat10 + - ", customFloat11=" + customFloat11 + - ", customFloat12=" + customFloat12 + - ", customFloat13=" + customFloat13 + - ", customFloat14=" + customFloat14 + - ", customFloat15=" + customFloat15 + - ", customFloat16=" + customFloat16 + - ", customFloat17=" + customFloat17 + - ", customFloat18=" + customFloat18 + - ", customFloat19=" + customFloat19 + - ", customFloat20=" + customFloat20 + - ", customFloat21=" + customFloat21 + - ", customFloat22=" + customFloat22 + - ", customFloat23=" + customFloat23 + - '}'; + StringBuilder sb = new StringBuilder(super.toString()); + sb.append(", customBillRate1=").append(customBillRate1); + sb.append(", customBillRate2=").append(customBillRate2); + sb.append(", customBillRate3=").append(customBillRate3); + sb.append(", customBillRate4=").append(customBillRate4); + sb.append(", customBillRate5=").append(customBillRate5); + sb.append(", customBillRate6=").append(customBillRate6); + sb.append(", customBillRate7=").append(customBillRate7); + sb.append(", customBillRate8=").append(customBillRate8); + sb.append(", customBillRate9=").append(customBillRate9); + sb.append(", customBillRate10=").append(customBillRate10); + sb.append(", customPayRate1=").append(customPayRate1); + sb.append(", customPayRate2=").append(customPayRate2); + sb.append(", customPayRate3=").append(customPayRate3); + sb.append(", customPayRate4=").append(customPayRate4); + sb.append(", customPayRate5=").append(customPayRate5); + sb.append(", customPayRate6=").append(customPayRate6); + sb.append(", customPayRate7=").append(customPayRate7); + sb.append(", customPayRate8=").append(customPayRate8); + sb.append(", customPayRate9=").append(customPayRate9); + sb.append(", customPayRate10=").append(customPayRate10); + sb.append(", customEncryptedText1=").append(customEncryptedText1); + sb.append(", customEncryptedText2=").append(customEncryptedText2); + sb.append(", customEncryptedText3=").append(customEncryptedText3); + sb.append(", customEncryptedText4=").append(customEncryptedText4); + sb.append(", customEncryptedText5=").append(customEncryptedText5); + sb.append(", customEncryptedText6=").append(customEncryptedText6); + sb.append(", customEncryptedText7=").append(customEncryptedText7); + sb.append(", customEncryptedText8=").append(customEncryptedText8); + sb.append(", customEncryptedText9=").append(customEncryptedText9); + sb.append(", customEncryptedText10=").append(customEncryptedText10); + sb.append(", customText21=").append(customText21); + sb.append(", customText22=").append(customText22); + sb.append(", customText23=").append(customText23); + sb.append(", customText24=").append(customText24); + sb.append(", customText25=").append(customText25); + sb.append(", customText26=").append(customText26); + sb.append(", customText27=").append(customText27); + sb.append(", customText28=").append(customText28); + sb.append(", customText29=").append(customText29); + sb.append(", customText30=").append(customText30); + sb.append(", customText31=").append(customText31); + sb.append(", customText32=").append(customText32); + sb.append(", customText33=").append(customText33); + sb.append(", customText34=").append(customText34); + sb.append(", customText35=").append(customText35); + sb.append(", customText36=").append(customText36); + sb.append(", customText37=").append(customText37); + sb.append(", customText38=").append(customText38); + sb.append(", customText39=").append(customText39); + sb.append(", customText40=").append(customText40); + sb.append(", customText41=").append(customText41); + sb.append(", customText42=").append(customText42); + sb.append(", customText43=").append(customText43); + sb.append(", customText44=").append(customText44); + sb.append(", customText45=").append(customText45); + sb.append(", customText46=").append(customText46); + sb.append(", customText47=").append(customText47); + sb.append(", customText48=").append(customText48); + sb.append(", customText49=").append(customText49); + sb.append(", customText50=").append(customText50); + sb.append(", customText51=").append(customText51); + sb.append(", customText52=").append(customText52); + sb.append(", customText53=").append(customText53); + sb.append(", customText54=").append(customText54); + sb.append(", customText55=").append(customText55); + sb.append(", customText56=").append(customText56); + sb.append(", customText57=").append(customText57); + sb.append(", customText58=").append(customText58); + sb.append(", customText59=").append(customText59); + sb.append(", customText60=").append(customText60); + sb.append(", customTextBlock6=").append(customTextBlock6); + sb.append(", customTextBlock7=").append(customTextBlock7); + sb.append(", customTextBlock8=").append(customTextBlock8); + sb.append(", customTextBlock9=").append(customTextBlock9); + sb.append(", customTextBlock10=").append(customTextBlock10); + sb.append(", customDate4=").append(customDate4); + sb.append(", customDate5=").append(customDate5); + sb.append(", customDate6=").append(customDate6); + sb.append(", customDate7=").append(customDate7); + sb.append(", customDate8=").append(customDate8); + sb.append(", customDate9=").append(customDate9); + sb.append(", customDate10=").append(customDate10); + sb.append(", customDate11=").append(customDate11); + sb.append(", customDate12=").append(customDate12); + sb.append(", customDate13=").append(customDate13); + sb.append(", customInt4=").append(customInt4); + sb.append(", customInt5=").append(customInt5); + sb.append(", customInt6=").append(customInt6); + sb.append(", customInt7=").append(customInt7); + sb.append(", customInt8=").append(customInt8); + sb.append(", customInt9=").append(customInt9); + sb.append(", customInt10=").append(customInt10); + sb.append(", customInt11=").append(customInt11); + sb.append(", customInt12=").append(customInt12); + sb.append(", customInt13=").append(customInt13); + sb.append(", customInt14=").append(customInt14); + sb.append(", customInt15=").append(customInt15); + sb.append(", customInt16=").append(customInt16); + sb.append(", customInt17=").append(customInt17); + sb.append(", customInt18=").append(customInt18); + sb.append(", customInt19=").append(customInt19); + sb.append(", customInt20=").append(customInt20); + sb.append(", customInt21=").append(customInt21); + sb.append(", customInt22=").append(customInt22); + sb.append(", customInt23=").append(customInt23); + sb.append(", customFloat4=").append(customFloat4); + sb.append(", customFloat5=").append(customFloat5); + sb.append(", customFloat6=").append(customFloat6); + sb.append(", customFloat7=").append(customFloat7); + sb.append(", customFloat8=").append(customFloat8); + sb.append(", customFloat9=").append(customFloat9); + sb.append(", customFloat10=").append(customFloat10); + sb.append(", customFloat11=").append(customFloat11); + sb.append(", customFloat12=").append(customFloat12); + sb.append(", customFloat13=").append(customFloat13); + sb.append(", customFloat14=").append(customFloat14); + sb.append(", customFloat15=").append(customFloat15); + sb.append(", customFloat16=").append(customFloat16); + sb.append(", customFloat17=").append(customFloat17); + sb.append(", customFloat18=").append(customFloat18); + sb.append(", customFloat19=").append(customFloat19); + sb.append(", customFloat20=").append(customFloat20); + sb.append(", customFloat21=").append(customFloat21); + sb.append(", customFloat22=").append(customFloat22); + sb.append(", customFloat23=").append(customFloat23); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsE.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsE.java index a7554492..b0066678 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsE.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsE.java @@ -517,62 +517,276 @@ public boolean equals(Object obj) { return true; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder builder = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(customDate1 != null){ + builder.append(lbc + "customDate1="); + builder.append(customDate1); + } + if(customDate2 != null){ + builder.append(lbc + "customDate2="); + builder.append(customDate2); + } + if(customDate3 != null){ + builder.append(lbc + "customDate3="); + builder.append(customDate3); + } + if(customDate4 != null){ + builder.append(lbc + "customDate4="); + builder.append(customDate4); + } + if(customDate5 != null){ + builder.append(lbc + "customDate5="); + builder.append(customDate5); + } + if(customDate6 != null){ + builder.append(lbc + "customDate6="); + builder.append(customDate6); + } + if(customDate7 != null){ + builder.append(lbc + "customDate7="); + builder.append(customDate7); + } + if(customDate8 != null){ + builder.append(lbc + "customDate8="); + builder.append(customDate8); + } + if(customDate9 != null){ + builder.append(lbc + "customDate9="); + builder.append(customDate9); + } + if(customDate10 != null){ + builder.append(lbc + "customDate10="); + builder.append(customDate10); + } + if(customText6 != null){ + builder.append(lbc + "customText6="); + builder.append(customText6); + } + if(customText7 != null){ + builder.append(lbc + "customText7="); + builder.append(customText7); + } + if(customText8 != null){ + builder.append(lbc + "customText8="); + builder.append(customText8); + } + if(customText9 != null){ + builder.append(lbc + "customText9="); + builder.append(customText9); + } + if(customText10 != null){ + builder.append(lbc + "customText10="); + builder.append(customText10); + } + if(customTextBlock1 != null){ + builder.append(lbc + "customTextBlock1="); + builder.append(customTextBlock1); + } + if(customTextBlock2 != null){ + builder.append(lbc + "customTextBlock2="); + builder.append(customTextBlock2); + } + if(customTextBlock3 != null){ + builder.append(lbc + "customTextBlock3="); + builder.append(customTextBlock3); + } + if(customTextBlock4 != null){ + builder.append(lbc + "customTextBlock4="); + builder.append(customTextBlock4); + } + if(customTextBlock5 != null){ + builder.append(lbc + "customTextBlock5="); + builder.append(customTextBlock5); + } + if(customTextBlock6 != null){ + builder.append(lbc + "customTextBlock6="); + builder.append(customTextBlock6); + } + if(customTextBlock7 != null){ + builder.append(lbc + "customTextBlock7="); + builder.append(customTextBlock7); + } + if(customTextBlock8 != null){ + builder.append(lbc + "customTextBlock8="); + builder.append(customTextBlock8); + } + if(customTextBlock9 != null){ + builder.append(lbc + "customTextBlock9="); + builder.append(customTextBlock9); + } + if(customTextBlock10 != null){ + builder.append(lbc + "customTextBlock10="); + builder.append(customTextBlock10); + } + return builder.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder builder = new StringBuilder(super.toStringNonNull()); + if(customDate1 != null){ + builder.append(lbc + "customDate1="); + builder.append(customDate1); + } + if(customDate2 != null){ + builder.append(lbc + "customDate2="); + builder.append(customDate2); + } + if(customDate3 != null){ + builder.append(lbc + "customDate3="); + builder.append(customDate3); + } + if(customDate4 != null){ + builder.append(lbc + "customDate4="); + builder.append(customDate4); + } + if(customDate5 != null){ + builder.append(lbc + "customDate5="); + builder.append(customDate5); + } + if(customDate6 != null){ + builder.append(lbc + "customDate6="); + builder.append(customDate6); + } + if(customDate7 != null){ + builder.append(lbc + "customDate7="); + builder.append(customDate7); + } + if(customDate8 != null){ + builder.append(lbc + "customDate8="); + builder.append(customDate8); + } + if(customDate9 != null){ + builder.append(lbc + "customDate9="); + builder.append(customDate9); + } + if(customDate10 != null){ + builder.append(lbc + "customDate10="); + builder.append(customDate10); + } + if(customText6 != null){ + builder.append(lbc + "customText6="); + builder.append(customText6); + } + if(customText7 != null){ + builder.append(lbc + "customText7="); + builder.append(customText7); + } + if(customText8 != null){ + builder.append(lbc + "customText8="); + builder.append(customText8); + } + if(customText9 != null){ + builder.append(lbc + "customText9="); + builder.append(customText9); + } + if(customText10 != null){ + builder.append(lbc + "customText10="); + builder.append(customText10); + } + if(customTextBlock1 != null){ + builder.append(lbc + "customTextBlock1="); + builder.append(customTextBlock1); + } + if(customTextBlock2 != null){ + builder.append(lbc + "customTextBlock2="); + builder.append(customTextBlock2); + } + if(customTextBlock3 != null){ + builder.append(lbc + "customTextBlock3="); + builder.append(customTextBlock3); + } + if(customTextBlock4 != null){ + builder.append(lbc + "customTextBlock4="); + builder.append(customTextBlock4); + } + if(customTextBlock5 != null){ + builder.append(lbc + "customTextBlock5="); + builder.append(customTextBlock5); + } + if(customTextBlock6 != null){ + builder.append(lbc + "customTextBlock6="); + builder.append(customTextBlock6); + } + if(customTextBlock7 != null){ + builder.append(lbc + "customTextBlock7="); + builder.append(customTextBlock7); + } + if(customTextBlock8 != null){ + builder.append(lbc + "customTextBlock8="); + builder.append(customTextBlock8); + } + if(customTextBlock9 != null){ + builder.append(lbc + "customTextBlock9="); + builder.append(customTextBlock9); + } + if(customTextBlock10 != null){ + builder.append(lbc + "customTextBlock10="); + builder.append(customTextBlock10); + } + return builder.toString(); + } @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append(super.toString()); - builder.append(", \ncustomDate1="); + StringBuilder builder = new StringBuilder(super.toString()); + builder.append(", customDate1="); builder.append(customDate1); - builder.append(", \ncustomDate2="); + builder.append(", customDate2="); builder.append(customDate2); - builder.append(", \ncustomDate3="); + builder.append(", customDate3="); builder.append(customDate3); - builder.append(", \ncustomDate4="); + builder.append(", customDate4="); builder.append(customDate4); - builder.append(", \ncustomDate5="); + builder.append(", customDate5="); builder.append(customDate5); - builder.append(", \ncustomDate6="); + builder.append(", customDate6="); builder.append(customDate6); - builder.append(", \ncustomDate7="); + builder.append(", customDate7="); builder.append(customDate7); - builder.append(", \ncustomDate8="); + builder.append(", customDate8="); builder.append(customDate8); - builder.append(", \ncustomDate9="); + builder.append(", customDate9="); builder.append(customDate9); - builder.append(", \ncustomDate10="); + builder.append(", customDate10="); builder.append(customDate10); - builder.append(", \ncustomText6="); + builder.append(", customText6="); builder.append(customText6); - builder.append(", \ncustomText7="); + builder.append(", customText7="); builder.append(customText7); - builder.append(", \ncustomText8="); + builder.append(", customText8="); builder.append(customText8); - builder.append(", \ncustomText9="); + builder.append(", customText9="); builder.append(customText9); - builder.append(", \ncustomText10="); + builder.append(", customText10="); builder.append(customText10); - builder.append(", \ncustomTextBlock1="); + builder.append(", customTextBlock1="); builder.append(customTextBlock1); - builder.append(", \ncustomTextBlock2="); + builder.append(", customTextBlock2="); builder.append(customTextBlock2); - builder.append(", \ncustomTextBlock3="); + builder.append(", customTextBlock3="); builder.append(customTextBlock3); - builder.append(", \ncustomTextBlock4="); + builder.append(", customTextBlock4="); builder.append(customTextBlock4); - builder.append(", \ncustomTextBlock5="); + builder.append(", customTextBlock5="); builder.append(customTextBlock5); - builder.append(", \ncustomTextBlock6="); + builder.append(", customTextBlock6="); builder.append(customTextBlock6); - builder.append(", \ncustomTextBlock7="); + builder.append(", customTextBlock7="); builder.append(customTextBlock7); - builder.append(", \ncustomTextBlock8="); + builder.append(", customTextBlock8="); builder.append(customTextBlock8); - builder.append(", \ncustomTextBlock9="); + builder.append(", customTextBlock9="); builder.append(customTextBlock9); - builder.append(", \ncustomTextBlock10="); + builder.append(", customTextBlock10="); builder.append(customTextBlock10); - return builder.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsF.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsF.java index 00764fed..74784d27 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsF.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsF.java @@ -1092,84 +1092,551 @@ public int hashCode() { return result; } + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + StringBuilder sb = new StringBuilder(super.toStringNonNull(includeLineBreaks)); + if(customText21 != null){ + sb.append(lbc + "customText21=").append(customText21); + } + if(customText22 != null){ + sb.append(lbc + "customText22=").append(customText22); + } + if(customText23 != null){ + sb.append(lbc + "customText23=").append(customText23); + } + if(customText24 != null){ + sb.append(lbc + "customText24=").append(customText24); + } + if(customText25 != null){ + sb.append(lbc + "customText25=").append(customText25); + } + if(customText26 != null){ + sb.append(lbc + "customText26=").append(customText26); + } + if(customText27 != null){ + sb.append(lbc + "customText27=").append(customText27); + } + if(customText28 != null){ + sb.append(lbc + "customText28=").append(customText28); + } + if(customText29 != null){ + sb.append(lbc + "customText29=").append(customText29); + } + if(customText30 != null){ + sb.append(lbc + "customText30=").append(customText30); + } + if(customText31 != null){ + sb.append(lbc + "customText31=").append(customText31); + } + if(customText32 != null){ + sb.append(lbc + "customText32=").append(customText32); + } + if(customText33 != null){ + sb.append(lbc + "customText33=").append(customText33); + } + if(customText34 != null){ + sb.append(lbc + "customText34=").append(customText34); + } + if(customText35 != null){ + sb.append(lbc + "customText35=").append(customText35); + } + if(customText36 != null){ + sb.append(lbc + "customText36=").append(customText36); + } + if(customText37 != null){ + sb.append(lbc + "customText37=").append(customText37); + } + if(customText38 != null){ + sb.append(lbc + "customText38=").append(customText38); + } + if(customText39 != null){ + sb.append(lbc + "customText39=").append(customText39); + } + if(customText40 != null){ + sb.append(lbc + "customText40=").append(customText40); + } + if(customTextBlock6 != null){ + sb.append(lbc + "customTextBlock6=").append(customTextBlock6); + } + if(customTextBlock7 != null){ + sb.append(lbc + "customTextBlock7=").append(customTextBlock7); + } + if(customTextBlock8 != null){ + sb.append(lbc + "customTextBlock8=").append(customTextBlock8); + } + if(customTextBlock9 != null){ + sb.append(lbc + "customTextBlock9=").append(customTextBlock9); + } + if(customTextBlock10 != null){ + sb.append(lbc + "customTextBlock10=").append(customTextBlock10); + } + if(customDate4 != null){ + sb.append(lbc + "customDate4=").append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + "customDate5=").append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + "customDate6=").append(customDate6); + } + if(customDate7 != null){ + sb.append(lbc + "customDate7=").append(customDate7); + } + if(customDate8 != null){ + sb.append(lbc + "customDate8=").append(customDate8); + } + if(customDate9 != null){ + sb.append(lbc + "customDate9=").append(customDate9); + } + if(customDate10 != null){ + sb.append(lbc + "customDate10=").append(customDate10); + } + if(customDate11 != null){ + sb.append(lbc + "customDate11=").append(customDate11); + } + if(customDate12 != null){ + sb.append(lbc + "customDate12=").append(customDate12); + } + if(customDate13 != null){ + sb.append(lbc + "customDate13=").append(customDate13); + } + if(customInt4 != null){ + sb.append(lbc + "customInt4=").append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + "customInt5=").append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + "customInt6=").append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + "customInt7=").append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + "customInt8=").append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + "customInt9=").append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + "customInt10=").append(customInt10); + } + if(customInt11 != null){ + sb.append(lbc + "customInt11=").append(customInt11); + } + if(customInt12 != null){ + sb.append(lbc + "customInt12=").append(customInt12); + } + if(customInt13 != null){ + sb.append(lbc + "customInt13=").append(customInt13); + } + if(customInt14 != null){ + sb.append(lbc + "customInt14=").append(customInt14); + } + if(customInt15 != null){ + sb.append(lbc + "customInt15=").append(customInt15); + } + if(customInt16 != null){ + sb.append(lbc + "customInt16=").append(customInt16); + } + if(customInt17 != null){ + sb.append(lbc + "customInt17=").append(customInt17); + } + if(customInt18 != null){ + sb.append(lbc + "customInt18=").append(customInt18); + } + if(customInt19 != null){ + sb.append(lbc + "customInt19=").append(customInt19); + } + if(customInt20 != null){ + sb.append(lbc + "customInt20=").append(customInt20); + } + if(customInt21 != null){ + sb.append(lbc + "customInt21=").append(customInt21); + } + if(customInt22 != null){ + sb.append(lbc + "customInt22=").append(customInt22); + } + if(customInt23 != null){ + sb.append(lbc + "customInt23=").append(customInt23); + } + if(customFloat4 != null){ + sb.append(lbc + "customFloat4=").append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + "customFloat5=").append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + "customFloat6=").append(customFloat6); + } + if(customFloat7 != null){ + sb.append(lbc + "customFloat7=").append(customFloat7); + } + if(customFloat8 != null){ + sb.append(lbc + "customFloat8=").append(customFloat8); + } + if(customFloat9 != null){ + sb.append(lbc + "customFloat9=").append(customFloat9); + } + if(customFloat10 != null){ + sb.append(lbc + "customFloat10=").append(customFloat10); + } + if(customFloat11 != null){ + sb.append(lbc + "customFloat11=").append(customFloat11); + } + if(customFloat12 != null){ + sb.append(lbc + "customFloat12=").append(customFloat12); + } + if(customFloat13 != null){ + sb.append(lbc + "customFloat13=").append(customFloat13); + } + if(customFloat14 != null){ + sb.append(lbc + "customFloat14=").append(customFloat14); + } + if(customFloat15 != null){ + sb.append(lbc + "customFloat15=").append(customFloat15); + } + if(customFloat16 != null){ + sb.append(lbc + "customFloat16=").append(customFloat16); + } + if(customFloat17 != null){ + sb.append(lbc + "customFloat17=").append(customFloat17); + } + if(customFloat18 != null){ + sb.append(lbc + "customFloat18=").append(customFloat18); + } + if(customFloat19 != null){ + sb.append(lbc + "customFloat19=").append(customFloat19); + } + if(customFloat20 != null){ + sb.append(lbc + "customFloat20=").append(customFloat20); + } + if(customFloat21 != null){ + sb.append(lbc + "customFloat21=").append(customFloat21); + } + if(customFloat22 != null){ + sb.append(lbc + "customFloat22=").append(customFloat22); + } + if(customFloat23 != null){ + sb.append(lbc + "customFloat23=").append(customFloat23); + } + return sb.toString(); + } + + + @Override + public String toStringNonNull() { + String lbc = ", "; + StringBuilder sb = new StringBuilder(super.toStringNonNull()); + if(customText21 != null){ + sb.append(lbc + "customText21=").append(customText21); + } + if(customText22 != null){ + sb.append(lbc + "customText22=").append(customText22); + } + if(customText23 != null){ + sb.append(lbc + "customText23=").append(customText23); + } + if(customText24 != null){ + sb.append(lbc + "customText24=").append(customText24); + } + if(customText25 != null){ + sb.append(lbc + "customText25=").append(customText25); + } + if(customText26 != null){ + sb.append(lbc + "customText26=").append(customText26); + } + if(customText27 != null){ + sb.append(lbc + "customText27=").append(customText27); + } + if(customText28 != null){ + sb.append(lbc + "customText28=").append(customText28); + } + if(customText29 != null){ + sb.append(lbc + "customText29=").append(customText29); + } + if(customText30 != null){ + sb.append(lbc + "customText30=").append(customText30); + } + if(customText31 != null){ + sb.append(lbc + "customText31=").append(customText31); + } + if(customText32 != null){ + sb.append(lbc + "customText32=").append(customText32); + } + if(customText33 != null){ + sb.append(lbc + "customText33=").append(customText33); + } + if(customText34 != null){ + sb.append(lbc + "customText34=").append(customText34); + } + if(customText35 != null){ + sb.append(lbc + "customText35=").append(customText35); + } + if(customText36 != null){ + sb.append(lbc + "customText36=").append(customText36); + } + if(customText37 != null){ + sb.append(lbc + "customText37=").append(customText37); + } + if(customText38 != null){ + sb.append(lbc + "customText38=").append(customText38); + } + if(customText39 != null){ + sb.append(lbc + "customText39=").append(customText39); + } + if(customText40 != null){ + sb.append(lbc + "customText40=").append(customText40); + } + if(customTextBlock6 != null){ + sb.append(lbc + "customTextBlock6=").append(customTextBlock6); + } + if(customTextBlock7 != null){ + sb.append(lbc + "customTextBlock7=").append(customTextBlock7); + } + if(customTextBlock8 != null){ + sb.append(lbc + "customTextBlock8=").append(customTextBlock8); + } + if(customTextBlock9 != null){ + sb.append(lbc + "customTextBlock9=").append(customTextBlock9); + } + if(customTextBlock10 != null){ + sb.append(lbc + "customTextBlock10=").append(customTextBlock10); + } + if(customDate4 != null){ + sb.append(lbc + "customDate4=").append(customDate4); + } + if(customDate5 != null){ + sb.append(lbc + "customDate5=").append(customDate5); + } + if(customDate6 != null){ + sb.append(lbc + "customDate6=").append(customDate6); + } + if(customDate7 != null){ + sb.append(lbc + "customDate7=").append(customDate7); + } + if(customDate8 != null){ + sb.append(lbc + "customDate8=").append(customDate8); + } + if(customDate9 != null){ + sb.append(lbc + "customDate9=").append(customDate9); + } + if(customDate10 != null){ + sb.append(lbc + "customDate10=").append(customDate10); + } + if(customDate11 != null){ + sb.append(lbc + "customDate11=").append(customDate11); + } + if(customDate12 != null){ + sb.append(lbc + "customDate12=").append(customDate12); + } + if(customDate13 != null){ + sb.append(lbc + "customDate13=").append(customDate13); + } + if(customInt4 != null){ + sb.append(lbc + "customInt4=").append(customInt4); + } + if(customInt5 != null){ + sb.append(lbc + "customInt5=").append(customInt5); + } + if(customInt6 != null){ + sb.append(lbc + "customInt6=").append(customInt6); + } + if(customInt7 != null){ + sb.append(lbc + "customInt7=").append(customInt7); + } + if(customInt8 != null){ + sb.append(lbc + "customInt8=").append(customInt8); + } + if(customInt9 != null){ + sb.append(lbc + "customInt9=").append(customInt9); + } + if(customInt10 != null){ + sb.append(lbc + "customInt10=").append(customInt10); + } + if(customInt11 != null){ + sb.append(lbc + "customInt11=").append(customInt11); + } + if(customInt12 != null){ + sb.append(lbc + "customInt12=").append(customInt12); + } + if(customInt13 != null){ + sb.append(lbc + "customInt13=").append(customInt13); + } + if(customInt14 != null){ + sb.append(lbc + "customInt14=").append(customInt14); + } + if(customInt15 != null){ + sb.append(lbc + "customInt15=").append(customInt15); + } + if(customInt16 != null){ + sb.append(lbc + "customInt16=").append(customInt16); + } + if(customInt17 != null){ + sb.append(lbc + "customInt17=").append(customInt17); + } + if(customInt18 != null){ + sb.append(lbc + "customInt18=").append(customInt18); + } + if(customInt19 != null){ + sb.append(lbc + "customInt19=").append(customInt19); + } + if(customInt20 != null){ + sb.append(lbc + "customInt20=").append(customInt20); + } + if(customInt21 != null){ + sb.append(lbc + "customInt21=").append(customInt21); + } + if(customInt22 != null){ + sb.append(lbc + "customInt22=").append(customInt22); + } + if(customInt23 != null){ + sb.append(lbc + "customInt23=").append(customInt23); + } + if(customFloat4 != null){ + sb.append(lbc + "customFloat4=").append(customFloat4); + } + if(customFloat5 != null){ + sb.append(lbc + "customFloat5=").append(customFloat5); + } + if(customFloat6 != null){ + sb.append(lbc + "customFloat6=").append(customFloat6); + } + if(customFloat7 != null){ + sb.append(lbc + "customFloat7=").append(customFloat7); + } + if(customFloat8 != null){ + sb.append(lbc + "customFloat8=").append(customFloat8); + } + if(customFloat9 != null){ + sb.append(lbc + "customFloat9=").append(customFloat9); + } + if(customFloat10 != null){ + sb.append(lbc + "customFloat10=").append(customFloat10); + } + if(customFloat11 != null){ + sb.append(lbc + "customFloat11=").append(customFloat11); + } + if(customFloat12 != null){ + sb.append(lbc + "customFloat12=").append(customFloat12); + } + if(customFloat13 != null){ + sb.append(lbc + "customFloat13=").append(customFloat13); + } + if(customFloat14 != null){ + sb.append(lbc + "customFloat14=").append(customFloat14); + } + if(customFloat15 != null){ + sb.append(lbc + "customFloat15=").append(customFloat15); + } + if(customFloat16 != null){ + sb.append(lbc + "customFloat16=").append(customFloat16); + } + if(customFloat17 != null){ + sb.append(lbc + "customFloat17=").append(customFloat17); + } + if(customFloat18 != null){ + sb.append(lbc + "customFloat18=").append(customFloat18); + } + if(customFloat19 != null){ + sb.append(lbc + "customFloat19=").append(customFloat19); + } + if(customFloat20 != null){ + sb.append(lbc + "customFloat20=").append(customFloat20); + } + if(customFloat21 != null){ + sb.append(lbc + "customFloat21=").append(customFloat21); + } + if(customFloat22 != null){ + sb.append(lbc + "customFloat22=").append(customFloat22); + } + if(customFloat23 != null){ + sb.append(lbc + "customFloat23=").append(customFloat23); + } + return sb.toString(); + } + @Override public String toString() { - return "CustomFieldsF{" + - "customText21='" + customText21 + '\'' + - ", customText22='" + customText22 + '\'' + - ", customText23='" + customText23 + '\'' + - ", customText24='" + customText24 + '\'' + - ", customText25='" + customText25 + '\'' + - ", customText26='" + customText26 + '\'' + - ", customText27='" + customText27 + '\'' + - ", customText28='" + customText28 + '\'' + - ", customText29='" + customText29 + '\'' + - ", customText30='" + customText30 + '\'' + - ", customText31='" + customText31 + '\'' + - ", customText32='" + customText32 + '\'' + - ", customText33='" + customText33 + '\'' + - ", customText34='" + customText34 + '\'' + - ", customText35='" + customText35 + '\'' + - ", customText36='" + customText36 + '\'' + - ", customText37='" + customText37 + '\'' + - ", customText38='" + customText38 + '\'' + - ", customText39='" + customText39 + '\'' + - ", customText40='" + customText40 + '\'' + - ", customTextBlock6='" + customTextBlock6 + '\'' + - ", customTextBlock7='" + customTextBlock7 + '\'' + - ", customTextBlock8='" + customTextBlock8 + '\'' + - ", customTextBlock9='" + customTextBlock9 + '\'' + - ", customTextBlock10='" + customTextBlock10 + '\'' + - ", customDate4=" + customDate4 + - ", customDate5=" + customDate5 + - ", customDate6=" + customDate6 + - ", customDate7=" + customDate7 + - ", customDate8=" + customDate8 + - ", customDate9=" + customDate9 + - ", customDate10=" + customDate10 + - ", customDate11=" + customDate11 + - ", customDate12=" + customDate12 + - ", customDate13=" + customDate13 + - ", customInt4=" + customInt4 + - ", customInt5=" + customInt5 + - ", customInt6=" + customInt6 + - ", customInt7=" + customInt7 + - ", customInt8=" + customInt8 + - ", customInt9=" + customInt9 + - ", customInt10=" + customInt10 + - ", customInt11=" + customInt11 + - ", customInt12=" + customInt12 + - ", customInt13=" + customInt13 + - ", customInt14=" + customInt14 + - ", customInt15=" + customInt15 + - ", customInt16=" + customInt16 + - ", customInt17=" + customInt17 + - ", customInt18=" + customInt18 + - ", customInt19=" + customInt19 + - ", customInt20=" + customInt20 + - ", customInt21=" + customInt21 + - ", customInt22=" + customInt22 + - ", customInt23=" + customInt23 + - ", customFloat4=" + customFloat4 + - ", customFloat5=" + customFloat5 + - ", customFloat6=" + customFloat6 + - ", customFloat7=" + customFloat7 + - ", customFloat8=" + customFloat8 + - ", customFloat9=" + customFloat9 + - ", customFloat10=" + customFloat10 + - ", customFloat11=" + customFloat11 + - ", customFloat12=" + customFloat12 + - ", customFloat13=" + customFloat13 + - ", customFloat14=" + customFloat14 + - ", customFloat15=" + customFloat15 + - ", customFloat16=" + customFloat16 + - ", customFloat17=" + customFloat17 + - ", customFloat18=" + customFloat18 + - ", customFloat19=" + customFloat19 + - ", customFloat20=" + customFloat20 + - ", customFloat21=" + customFloat21 + - ", customFloat22=" + customFloat22 + - ", customFloat23=" + customFloat23 + - '}'; + StringBuilder sb = new StringBuilder(super.toString()); + sb.append(", customText21=").append(customText21); + sb.append(", customText22=").append(customText22); + sb.append(", customText23=").append(customText23); + sb.append(", customText24=").append(customText24); + sb.append(", customText25=").append(customText25); + sb.append(", customText26=").append(customText26); + sb.append(", customText27=").append(customText27); + sb.append(", customText28=").append(customText28); + sb.append(", customText29=").append(customText29); + sb.append(", customText30=").append(customText30); + sb.append(", customText31=").append(customText31); + sb.append(", customText32=").append(customText32); + sb.append(", customText33=").append(customText33); + sb.append(", customText34=").append(customText34); + sb.append(", customText35=").append(customText35); + sb.append(", customText36=").append(customText36); + sb.append(", customText37=").append(customText37); + sb.append(", customText38=").append(customText38); + sb.append(", customText39=").append(customText39); + sb.append(", customText40=").append(customText40); + sb.append(", customTextBlock6=").append(customTextBlock6); + sb.append(", customTextBlock7=").append(customTextBlock7); + sb.append(", customTextBlock8=").append(customTextBlock8); + sb.append(", customTextBlock9=").append(customTextBlock9); + sb.append(", customTextBlock10=").append(customTextBlock10); + sb.append(", customDate4=").append(customDate4); + sb.append(", customDate5=").append(customDate5); + sb.append(", customDate6=").append(customDate6); + sb.append(", customDate7=").append(customDate7); + sb.append(", customDate8=").append(customDate8); + sb.append(", customDate9=").append(customDate9); + sb.append(", customDate10=").append(customDate10); + sb.append(", customDate11=").append(customDate11); + sb.append(", customDate12=").append(customDate12); + sb.append(", customDate13=").append(customDate13); + sb.append(", customInt4=").append(customInt4); + sb.append(", customInt5=").append(customInt5); + sb.append(", customInt6=").append(customInt6); + sb.append(", customInt7=").append(customInt7); + sb.append(", customInt8=").append(customInt8); + sb.append(", customInt9=").append(customInt9); + sb.append(", customInt10=").append(customInt10); + sb.append(", customInt11=").append(customInt11); + sb.append(", customInt12=").append(customInt12); + sb.append(", customInt13=").append(customInt13); + sb.append(", customInt14=").append(customInt14); + sb.append(", customInt15=").append(customInt15); + sb.append(", customInt16=").append(customInt16); + sb.append(", customInt17=").append(customInt17); + sb.append(", customInt18=").append(customInt18); + sb.append(", customInt19=").append(customInt19); + sb.append(", customInt20=").append(customInt20); + sb.append(", customInt21=").append(customInt21); + sb.append(", customInt22=").append(customInt22); + sb.append(", customInt23=").append(customInt23); + sb.append(", customFloat4=").append(customFloat4); + sb.append(", customFloat5=").append(customFloat5); + sb.append(", customFloat6=").append(customFloat6); + sb.append(", customFloat7=").append(customFloat7); + sb.append(", customFloat8=").append(customFloat8); + sb.append(", customFloat9=").append(customFloat9); + sb.append(", customFloat10=").append(customFloat10); + sb.append(", customFloat11=").append(customFloat11); + sb.append(", customFloat12=").append(customFloat12); + sb.append(", customFloat13=").append(customFloat13); + sb.append(", customFloat14=").append(customFloat14); + sb.append(", customFloat15=").append(customFloat15); + sb.append(", customFloat16=").append(customFloat16); + sb.append(", customFloat17=").append(customFloat17); + sb.append(", customFloat18=").append(customFloat18); + sb.append(", customFloat19=").append(customFloat19); + sb.append(", customFloat20=").append(customFloat20); + sb.append(", customFloat21=").append(customFloat21); + sb.append(", customFloat22=").append(customFloat22); + sb.append(", customFloat23=").append(customFloat23); + return sb.toString(); } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java index c59761d9..9ed8eb78 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/embedded/Address.java @@ -1,187 +1,187 @@ -package com.bullhornsdk.data.model.entity.embedded; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -/** - * - * @author magnus.palm - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -public class Address extends AbstractEntity { - - private String address1; - - private String address2; - - private String city; - - @JsonIgnore - private String state; - - private String zip; - - private Integer countryID; - - private String countryName; - - @JsonProperty("address1") - public String getAddress1() { - return address1; - } - - @JsonProperty("address1") - public void setAddress1(String address1) { - this.address1 = address1; - } - - @JsonProperty("address2") - public String getAddress2() { - return address2; - } - - @JsonProperty("address2") - public void setAddress2(String address2) { - this.address2 = address2; - } - - @JsonProperty("city") - public String getCity() { - return city; - } - - @JsonProperty("city") - public void setCity(String city) { - this.city = city; - } - - @JsonProperty("state") - public String getState() { - return state; - } - - @JsonIgnore - public void setState(String state) { - this.state = state; - } - - @JsonProperty("zip") - public String getZip() { - return zip; - } - - @JsonProperty("zip") - public void setZip(String zip) { - this.zip = zip; - } - - @JsonProperty("countryID") - public Integer getCountryID() { - return countryID; - } - - @JsonProperty("countryID") - public void setCountryID(Integer countryID) { - this.countryID = countryID; - } - - @JsonProperty("countryName") - public String getCountryName() { - return countryName; - } - - @JsonProperty("countryName") - public void setCountryName(String countryName) { - this.countryName = countryName; - } - - public Address instantiateForInsert() { - Address address = new Address(); - address.setAddress1("123 Main St"); - address.setCity("St Louis"); - address.setState("MO"); - address.setZip("1234563"); - return address; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((address1 == null) ? 0 : address1.hashCode()); - result = prime * result + ((address2 == null) ? 0 : address2.hashCode()); - result = prime * result + ((city == null) ? 0 : city.hashCode()); - result = prime * result + ((countryID == null) ? 0 : countryID.hashCode()); - result = prime * result + ((state == null) ? 0 : state.hashCode()); - result = prime * result + ((zip == null) ? 0 : zip.hashCode()); - return result; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - Address address = (Address) o; - - if (address1 != null ? !address1.equals(address.address1) : address.address1 != null) return false; - if (address2 != null ? !address2.equals(address.address2) : address.address2 != null) return false; - if (city != null ? !city.equals(address.city) : address.city != null) return false; - if (state != null ? !state.equals(address.state) : address.state != null) return false; - if (zip != null ? !zip.equals(address.zip) : address.zip != null) return false; - if (countryID != null ? !countryID.equals(address.countryID) : address.countryID != null) return false; - return countryName != null ? countryName.equals(address.countryName) : address.countryName == null; - } - - @Override - public String toStringNonNull(boolean includeLineBreaks) { - String lbc = ", "; - if(includeLineBreaks) - lbc = ",\n "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(lbc + "address2=" + address2); - sb.append(lbc + "city=" + city); - sb.append(lbc + "state=" + state); - sb.append(lbc + "zip=" + zip); - sb.append(lbc + "countryID=" + countryID); - sb.append(lbc + "countryName=" + countryName); - if(includeLineBreaks) - sb.append("\n"); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toStringNonNull() { - String lbc = ", "; - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(lbc + "address2=" + address2); - sb.append(lbc + "city=" + city); - sb.append(lbc + "state=" + state); - sb.append(lbc + "zip=" + zip); - sb.append(lbc + "countryID=" + countryID); - sb.append(lbc + "countryName=" + countryName); - sb.append("}"); - return sb.toString(); - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder(getClass() + " { "); - sb.append("address1=" + address1); - sb.append(", address2=" + address2); - sb.append(", city=" + city); - sb.append(", state=" + state); - sb.append(", zip=" + zip); - sb.append(", countryID=" + countryID); - sb.append(", countryName=" + countryName); - sb.append("}"); - return sb.toString(); - } -} +package com.bullhornsdk.data.model.entity.embedded; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +/** + * + * @author magnus.palm + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +public class Address extends AbstractEntity { + + private String address1; + + private String address2; + + private String city; + + @JsonIgnore + private String state; + + private String zip; + + private Integer countryID; + + private String countryName; + + @JsonProperty("address1") + public String getAddress1() { + return address1; + } + + @JsonProperty("address1") + public void setAddress1(String address1) { + this.address1 = address1; + } + + @JsonProperty("address2") + public String getAddress2() { + return address2; + } + + @JsonProperty("address2") + public void setAddress2(String address2) { + this.address2 = address2; + } + + @JsonProperty("city") + public String getCity() { + return city; + } + + @JsonProperty("city") + public void setCity(String city) { + this.city = city; + } + + @JsonProperty("state") + public String getState() { + return state; + } + + @JsonIgnore + public void setState(String state) { + this.state = state; + } + + @JsonProperty("zip") + public String getZip() { + return zip; + } + + @JsonProperty("zip") + public void setZip(String zip) { + this.zip = zip; + } + + @JsonProperty("countryID") + public Integer getCountryID() { + return countryID; + } + + @JsonProperty("countryID") + public void setCountryID(Integer countryID) { + this.countryID = countryID; + } + + @JsonProperty("countryName") + public String getCountryName() { + return countryName; + } + + @JsonProperty("countryName") + public void setCountryName(String countryName) { + this.countryName = countryName; + } + + public Address instantiateForInsert() { + Address address = new Address(); + address.setAddress1("123 Main St"); + address.setCity("St Louis"); + address.setState("MO"); + address.setZip("1234563"); + return address; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((address1 == null) ? 0 : address1.hashCode()); + result = prime * result + ((address2 == null) ? 0 : address2.hashCode()); + result = prime * result + ((city == null) ? 0 : city.hashCode()); + result = prime * result + ((countryID == null) ? 0 : countryID.hashCode()); + result = prime * result + ((state == null) ? 0 : state.hashCode()); + result = prime * result + ((zip == null) ? 0 : zip.hashCode()); + return result; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Address address = (Address) o; + + if (address1 != null ? !address1.equals(address.address1) : address.address1 != null) return false; + if (address2 != null ? !address2.equals(address.address2) : address.address2 != null) return false; + if (city != null ? !city.equals(address.city) : address.city != null) return false; + if (state != null ? !state.equals(address.state) : address.state != null) return false; + if (zip != null ? !zip.equals(address.zip) : address.zip != null) return false; + if (countryID != null ? !countryID.equals(address.countryID) : address.countryID != null) return false; + return countryName != null ? countryName.equals(address.countryName) : address.countryName == null; + } + + @Override + public String toStringNonNull(boolean includeLineBreaks) { + String lbc = ", "; + if(includeLineBreaks) + lbc = ",\n "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + if(includeLineBreaks) + sb.append("\n"); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toStringNonNull() { + String lbc = ", "; + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("address1=" + address1); + sb.append(lbc + "address2=" + address2); + sb.append(lbc + "city=" + city); + sb.append(lbc + "state=" + state); + sb.append(lbc + "zip=" + zip); + sb.append(lbc + "countryID=" + countryID); + sb.append(lbc + "countryName=" + countryName); + sb.append("}"); + return sb.toString(); + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); + sb.append("address1=" + address1); + sb.append(", address2=" + address2); + sb.append(", city=" + city); + sb.append(", state=" + state); + sb.append(", zip=" + zip); + sb.append(", countryID=" + countryID); + sb.append(", countryName=" + countryName); + sb.append("}"); + return sb.toString(); + } +} From c36e6c6467bfb394c65701c06a4a708d1c6461c3 Mon Sep 17 00:00:00 2001 From: Lucas Grey Date: Thu, 13 Jun 2019 14:57:36 -0400 Subject: [PATCH 12/12] nesting tostring functions more --- .../model/entity/core/standard/Branch.java | 79 ++++---- .../model/entity/core/standard/Candidate.java | 1 + .../core/standard/ClientCorporation.java | 3 + .../entity/core/standard/CorporateUser.java | 95 +++++----- .../model/entity/core/standard/JobData.java | 7 +- .../entity/core/standard/JobSubmission.java | 3 + .../data/model/entity/core/standard/Lead.java | 3 + .../entity/core/standard/Opportunity.java | 3 + .../model/entity/core/standard/Person.java | 5 +- .../model/entity/core/standard/Placement.java | 1 + .../core/standard/PlacementChangeRequest.java | 171 +++++++++--------- 11 files changed, 198 insertions(+), 173 deletions(-) diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java index 05b1ec8c..81dab485 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Branch.java @@ -954,85 +954,84 @@ public String toStringNonNull(boolean includeLineBreaks) { public String toString() { StringBuilder sb =new StringBuilder(getClass().getSimpleName()); sb.append(" { "); - sb.append("\n id="); + sb.append(" id="); sb.append(id); - sb.append(",\n name="); + sb.append(", name="); sb.append(name); - sb.append(",\n isDeleted="); + sb.append(", isDeleted="); sb.append(isDeleted); - sb.append(",\n parentBranch="); + sb.append(", parentBranch="); sb.append(parentBranch); - sb.append(",\n externalID="); + sb.append(", externalID="); sb.append(externalID); - sb.append(",\n dateAdded="); + sb.append(", dateAdded="); sb.append(dateAdded); - sb.append(",\n customText1="); sb.append(super.toString()); - sb.append(",\n customText6="); + sb.append(", customText6="); sb.append(customText6); - sb.append(",\n customText7="); + sb.append(", customText7="); sb.append(customText7); - sb.append(",\n customText8="); + sb.append(", customText8="); sb.append(customText8); - sb.append(",\n customText9="); + sb.append(", customText9="); sb.append(customText9); - sb.append(",\n customText10="); + sb.append(", customText10="); sb.append(customText10); - sb.append(",\n customTextBlock1="); + sb.append(", customTextBlock1="); sb.append(customTextBlock1); - sb.append(",\n customTextBlock2="); + sb.append(", customTextBlock2="); sb.append(customTextBlock2); - sb.append(",\n customTextBlock3="); + sb.append(", customTextBlock3="); sb.append(customTextBlock3); - sb.append(",\n customDate1="); + sb.append(", customDate1="); sb.append(customDate1); - sb.append(",\n customDate2="); + sb.append(", customDate2="); sb.append(customDate2); - sb.append(",\n customDate3="); + sb.append(", customDate3="); sb.append(customDate3); - sb.append(",\n customDate4="); + sb.append(", customDate4="); sb.append(customDate4); - sb.append(",\n customDate5="); + sb.append(", customDate5="); sb.append(customDate5); - sb.append(",\n customDate6="); + sb.append(", customDate6="); sb.append(customDate6); - sb.append(",\n customFloat1="); + sb.append(", customFloat1="); sb.append(customFloat1); - sb.append(",\n customFloat2="); + sb.append(", customFloat2="); sb.append(customFloat2); - sb.append(",\n customFloat3="); + sb.append(", customFloat3="); sb.append(customFloat3); - sb.append(",\n customFloat4="); + sb.append(", customFloat4="); sb.append(customFloat4); - sb.append(",\n customFloat5="); + sb.append(", customFloat5="); sb.append(customFloat5); - sb.append(",\n customFloat6="); + sb.append(", customFloat6="); sb.append(customFloat6); - sb.append(",\n customInt1="); + sb.append(", customInt1="); sb.append(customInt1); - sb.append(",\n customInt2="); + sb.append(", customInt2="); sb.append(customInt2); - sb.append(",\n customInt3="); + sb.append(", customInt3="); sb.append(customInt3); - sb.append(",\n customInt4="); + sb.append(", customInt4="); sb.append(customInt4); - sb.append(",\n customInt5="); + sb.append(", customInt5="); sb.append(customInt5); - sb.append(",\n customInt6="); + sb.append(", customInt6="); sb.append(customInt6); - sb.append(",\n customInt7="); + sb.append(", customInt7="); sb.append(customInt7); - sb.append(",\n customInt8="); + sb.append(", customInt8="); sb.append(customInt8); - sb.append(",\n customInt9="); + sb.append(", customInt9="); sb.append(customInt9); - sb.append(",\n customInt10="); + sb.append(", customInt10="); sb.append(customInt10); - sb.append(",\n ancestors="); + sb.append(", ancestors="); sb.append(ancestors); - sb.append(",\n descendants="); + sb.append(", descendants="); sb.append(descendants); - sb.append(",\n corporateUsers="); + sb.append(", corporateUsers="); sb.append(corporateUsers); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java index 9a1739e9..347147f0 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Candidate.java @@ -3333,6 +3333,7 @@ public String toString() { sb.append(", willRelocate=").append(willRelocate); sb.append(", workAuthorized=").append(workAuthorized); sb.append(", workHistories=").append(workHistories); + sb.append(super.toString()); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java index 8fa399b7..dcafeab3 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/ClientCorporation.java @@ -1453,6 +1453,7 @@ public String toStringNonNull() { if(certificationGroups != null){ sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull()); } + sb.append(super.toStringNonNull()); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); } @@ -1652,6 +1653,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(certificationGroups != null){ sb.append(lbc + "certificationGroups=").append(certificationGroups.toStringNonNull(includeLineBreaks)); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); } @@ -1764,6 +1766,7 @@ public String toString() { sb.append(", workWeekStart=").append(workWeekStart); sb.append(", requirements=").append(requirements); sb.append(", certificationGroups=").append(certificationGroups); + sb.append(super.toString()); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java index 49e0226a..1c2c54e0 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/CorporateUser.java @@ -1112,6 +1112,7 @@ public String toStringNonNull(boolean includeLineBreaks) { builder.append(lbc + "userType="); builder.append(userType); } + builder.append(super.toStringNonNull(includeLineBreaks)); if(includeLineBreaks) builder.append("\n"); builder.append("}"); @@ -1303,6 +1304,7 @@ public String toStringNonNull() { builder.append(lbc + "userType="); builder.append(userType); } + builder.append(super.toStringNonNull()); builder.append("}"); return builder.toString(); } @@ -1310,97 +1312,98 @@ public String toStringNonNull() { @Override public String toString() { StringBuilder builder = new StringBuilder(getClass().getSimpleName()); - builder.append(" {\n\tid="); + builder.append(" { id="); builder.append(id); - builder.append("\n\taddress="); + builder.append(", address="); builder.append(address); - builder.append("\n\tbranches="); + builder.append(", branches="); builder.append(branches); - builder.append("\n\tdateLastComment="); + builder.append(", dateLastComment="); builder.append(dateLastComment); - builder.append("\n\tdepartments="); + builder.append(", departments="); builder.append(departments); - builder.append("\n\temail="); + builder.append(", email="); builder.append(email); - builder.append("\n\temail2="); + builder.append(", email2="); builder.append(email2); - builder.append("\n\temail3="); + builder.append(", email3="); builder.append(email3); - builder.append("\n\temailNotify="); + builder.append(", emailNotify="); builder.append(emailNotify); - builder.append("\n\temailSignature="); + builder.append(", emailSignature="); builder.append(emailSignature); - builder.append("\n\tenabled="); + builder.append(", enabled="); builder.append(enabled); - builder.append("\n\texternalEmail="); + builder.append(", externalEmail="); builder.append(externalEmail); - builder.append("\n\tfax="); + builder.append(", fax="); builder.append(fax); - builder.append("\n\tfax2="); + builder.append(", fax2="); builder.append(fax2); - builder.append("\n\tfax3="); + builder.append(", fax3="); builder.append(fax3); - builder.append("\n\tfirstName="); + builder.append(", firstName="); builder.append(firstName); - builder.append("\n\tinboundEmailEnabled="); + builder.append(", inboundEmailEnabled="); builder.append(inboundEmailEnabled); - builder.append("\n\tisDayLightSavings="); + builder.append(", isDayLightSavings="); builder.append(isDayLightSavings); - builder.append("\n\tisDeleted="); + builder.append(", isDeleted="); builder.append(isDeleted); - builder.append("\n\tisLockedOut="); + builder.append(", isLockedOut="); builder.append(isLockedOut); - builder.append("\n\tisOutboundFaxEnabled="); + builder.append(", isOutboundFaxEnabled="); builder.append(isOutboundFaxEnabled); - builder.append("\n\tjobAssignments="); + builder.append(", jobAssignments="); builder.append(jobAssignments); - builder.append("\n\tlastName="); + builder.append(", lastName="); builder.append(lastName); - builder.append("\n\tloginRestrictions="); + builder.append(", loginRestrictions="); builder.append(loginRestrictions); - builder.append("\n\tmassMailOptOut="); + builder.append(", massMailOptOut="); builder.append(massMailOptOut); - builder.append("\n\tmiddleName="); + builder.append(", middleName="); builder.append(middleName); - builder.append("\n\tmobile="); + builder.append(", mobile="); builder.append(mobile); - builder.append("\n\tname="); + builder.append(", name="); builder.append(name); - builder.append("\n\tnamePrefix="); + builder.append(", namePrefix="); builder.append(namePrefix); - builder.append("\n\tnameSuffix="); + builder.append(", nameSuffix="); builder.append(nameSuffix); - builder.append("\n\tnickName="); + builder.append(", nickName="); builder.append(nickName); - builder.append("\n\toccupation="); + builder.append(", occupation="); builder.append(occupation); - builder.append("\n\tpager="); + builder.append(", pager="); builder.append(pager); - builder.append("\n\tphone="); + builder.append(", phone="); builder.append(phone); - builder.append("\n\tphone2="); + builder.append(", phone2="); builder.append(phone2); - builder.append("\n\tphone3="); + builder.append(", phone3="); builder.append(phone3); - builder.append("\n\tprimaryDepartment="); + builder.append(", primaryDepartment="); builder.append(primaryDepartment); - builder.append("\n\tprivateLabel="); + builder.append(", privateLabel="); builder.append(privateLabel); - builder.append("\n\treportToPerson="); + builder.append(", reportToPerson="); builder.append(reportToPerson); - builder.append("\n\tsmsOptIn="); + builder.append(", smsOptIn="); builder.append(smsOptIn); - builder.append("\n\ttaskAssignments="); + builder.append(", taskAssignments="); builder.append(taskAssignments); - builder.append("\n\ttimeZoneOffsetEST="); + builder.append(", timeZoneOffsetEST="); builder.append(timeZoneOffsetEST); - builder.append("\n\tuserDateAdded="); + builder.append(", userDateAdded="); builder.append(userDateAdded); - builder.append("\n\tusername="); + builder.append(", username="); builder.append(username); - builder.append("\n\tuserType="); + builder.append(", userType="); builder.append(userType); - builder.append("\n}"); + builder.append(super.toString()); + builder.append("}"); return builder.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java index bee0f140..44749722 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobData.java @@ -1698,6 +1698,7 @@ public String toStringNonNull() { if(yearsRequired != null){ sb.append(lbc + "yearsRequired=").append(yearsRequired); } + sb.append(super.toStringNonNull()); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); } @@ -1981,6 +1982,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(yearsRequired != null){ sb.append(lbc + "yearsRequired=").append(yearsRequired); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); } @@ -2020,8 +2022,7 @@ public String toStringNonNull(boolean includeLineBreaks) { @Override public String toString() { final StringBuilder sb = new StringBuilder(getClass().getSimpleName() + " { "); - sb.append("luceneScore=").append(luceneScore); - sb.append(", id=").append(id); + sb.append("id=").append(id); sb.append(", address=").append(address); sb.append(", appointments=").append(appointments); sb.append(", approvedPlacements=").append(approvedPlacements); @@ -2063,6 +2064,7 @@ public String toString() { sb.append(", isOpen=").append(isOpen); sb.append(", isPublic=").append(isPublic); sb.append(", jobBoardList=").append(jobBoardList); + sb.append(", luceneScore=").append(luceneScore); sb.append(", notes=").append(notes); sb.append(", numOpenings=").append(numOpenings); sb.append(", onSite=").append(onSite); @@ -2101,6 +2103,7 @@ public String toString() { sb.append(", willSponsor=").append(willSponsor); sb.append(", workersCompRate=").append(workersCompRate); sb.append(", yearsRequired=").append(yearsRequired); + sb.append(super.toString()); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java index db677026..166499a7 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/JobSubmission.java @@ -491,6 +491,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(comments != null){ sb.append(lbc + "comments=").append(comments); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(includeLineBreaks) sb.append("\n"); sb.append("}"); @@ -573,6 +574,7 @@ public String toStringNonNull() { if(comments != null){ sb.append(lbc + "comments=").append(comments); } + sb.append(super.toStringNonNull()); sb.append("}"); return sb.toString(); } @@ -604,6 +606,7 @@ public String toString() { sb.append(", status=").append(status); sb.append(", tasks=").append(tasks); sb.append(", comments=").append(comments); + sb.append(super.toString()); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java index 1f8b6fb9..84b12b1c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Lead.java @@ -1374,6 +1374,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(willRelocate != null){ sb.append(lbc + "willRelocate=").append(willRelocate); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(includeLineBreaks) sb.append("\n"); sb.append("}"); @@ -1596,6 +1597,7 @@ public String toStringNonNull() { if(willRelocate != null){ sb.append(", willRelocate=").append(willRelocate); } + sb.append(super.toStringNonNull()); sb.append("}"); return sb.toString(); } @@ -1674,6 +1676,7 @@ public String toString() { sb.append(", timeZoneOffsetEST=").append(timeZoneOffsetEST); sb.append(", type=").append(type); sb.append(", willRelocate=").append(willRelocate); + sb.append(super.toString()); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java index 1d7d852c..9d71b28d 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Opportunity.java @@ -1817,6 +1817,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(luceneScore != null){ sb.append(lbc + "luceneScore=").append(luceneScore); } + sb.append(super.toStringNonNull(includeLineBreaks)); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull(includeLineBreaks)); } @@ -2118,6 +2119,7 @@ public String toStringNonNull() { if(luceneScore != null){ sb.append(lbc + "luceneScore=").append(luceneScore); } + sb.append(super.toStringNonNull()); if(customObject1s != null){ sb.append(lbc + "customObject1s=").append(customObject1s.toStringNonNull()); } @@ -2242,6 +2244,7 @@ public String toString() { sb.append(", dateLastModified=").append(dateLastModified); sb.append(", tearsheets=").append(tearsheets); sb.append(", luceneScore=").append(luceneScore); + sb.append(super.toString()); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java index f0f39da8..df9605ab 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Person.java @@ -864,6 +864,7 @@ public String toStringNonNull(boolean includeLineBreaks) { builder.append(lbc + "userType="); builder.append(userType); } + builder.append(super.toStringNonNull(includeLineBreaks)); if(includeLineBreaks) builder.append("\n"); builder.append("}"); @@ -1010,6 +1011,7 @@ public String toStringNonNull() { builder.append(lbc + "userType="); builder.append(userType); } + builder.append(super.toStringNonNull()); builder.append("}"); return builder.toString(); } @@ -1085,7 +1087,8 @@ public String toString() { builder.append(username); builder.append(", userType="); builder.append(userType); - builder.append("]"); + builder.append(super.toString()); + builder.append("}"); return builder.toString(); } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index 5a3f2270..6cec8197 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -1846,6 +1846,7 @@ public String toString() { sb.append(", vendorClientCorporation=").append(vendorClientCorporation); sb.append(", workWeekStart=").append(workWeekStart); sb.append(", workersCompensationRate=").append(workersCompensationRate); + sb.append(super.toString()); sb.append(", customObject1s=").append(customObject1s); sb.append(", customObject2s=").append(customObject2s); sb.append(", customObject3s=").append(customObject3s); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java index 6a415662..0b10ee35 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementChangeRequest.java @@ -1975,6 +1975,7 @@ public String toStringNonNull(boolean includeLineBreaks) { if(workWeekStart != null){ builder.append(lbc + "workWeekStart=").append(workWeekStart); } + builder.append(super.toStringNonNull(includeLineBreaks)); if(includeLineBreaks) builder.append("\n"); builder.append("}"); @@ -2318,6 +2319,7 @@ public String toStringNonNull() { builder.append(lbc + "workWeekStart="); builder.append(workWeekStart); } + builder.append(super.toStringNonNull()); builder.append("}"); return builder.toString(); } @@ -2325,173 +2327,174 @@ public String toStringNonNull() { @Override public String toString() { StringBuilder builder = new StringBuilder(); - builder.append("PlacementChangeRequest {\nid="); + builder.append("PlacementChangeRequest { id="); builder.append(id); - builder.append(", \napprovingUser="); + builder.append(", approvingUser="); builder.append(approvingUser); - builder.append(", \nbillingClientContact="); + builder.append(", billingClientContact="); builder.append(billingClientContact); - builder.append(", \nbillingFrequency="); + builder.append(", billingFrequency="); builder.append(billingFrequency); - builder.append(", \nbonusPackage="); + builder.append(", bonusPackage="); builder.append(bonusPackage); - builder.append(", \nclientBillRate="); + builder.append(", clientBillRate="); builder.append(clientBillRate); - builder.append(", \nclientOvertimeRate="); + builder.append(", clientOvertimeRate="); builder.append(clientOvertimeRate); - builder.append(", \ncomments="); + builder.append(", comments="); builder.append(comments); - builder.append(", \ncostCenter="); + builder.append(", costCenter="); builder.append(costCenter); - builder.append(", \ndateAdded="); + builder.append(", dateAdded="); builder.append(dateAdded); - builder.append(", \ndateApproved="); + builder.append(", dateApproved="); builder.append(dateApproved); - builder.append(", \ndateBegin="); + builder.append(", dateBegin="); builder.append(dateBegin); - builder.append(", \ndateClientEffective="); + builder.append(", dateClientEffective="); builder.append(dateClientEffective); - builder.append(", \ndateEffective="); + builder.append(", dateEffective="); builder.append(dateEffective); - builder.append(", \ndateEnd="); + builder.append(", dateEnd="); builder.append(dateEnd); - builder.append(", \ndateLastModified="); + builder.append(", dateLastModified="); builder.append(dateLastModified); - builder.append(", \ndaysGuaranteed="); + builder.append(", daysGuaranteed="); builder.append(daysGuaranteed); - builder.append(", \ndaysProRated="); + builder.append(", daysProRated="); builder.append(daysProRated); - builder.append(", \ndurationWeeks="); + builder.append(", durationWeeks="); builder.append(durationWeeks); - builder.append(", \nemployeeType="); + builder.append(", employeeType="); builder.append(employeeType); - builder.append(", \nemploymentType="); + builder.append(", employmentType="); builder.append(employmentType); - builder.append(", \nfee="); + builder.append(", fee="); builder.append(fee); - builder.append(", \nhoursOfOperation="); + builder.append(", hoursOfOperation="); builder.append(hoursOfOperation); - builder.append(", \nhoursPerDay="); + builder.append(", hoursPerDay="); builder.append(hoursPerDay); - builder.append(", \nhousingManagerID="); + builder.append(", housingManagerID="); builder.append(housingManagerID); - builder.append(", \nhousingStatus="); + builder.append(", housingStatus="); builder.append(housingStatus); - builder.append(", \nmigrateGUID="); + builder.append(", migrateGUID="); builder.append(migrateGUID); - builder.append(", \noptionsPackage="); + builder.append(", optionsPackage="); builder.append(optionsPackage); - builder.append(", \notExemption="); + builder.append(", otExemption="); builder.append(otExemption); - builder.append(", \notherHourlyFee="); + builder.append(", otherHourlyFee="); builder.append(otherHourlyFee); - builder.append(", \notherHourlyFeeComments="); + builder.append(", otherHourlyFeeComments="); builder.append(otherHourlyFeeComments); - builder.append(", \novertimeRate="); + builder.append(", overtimeRate="); builder.append(overtimeRate); - builder.append(", \npayRate="); + builder.append(", payRate="); builder.append(payRate); - builder.append(", \nplacement="); + builder.append(", placement="); builder.append(placement); - builder.append(", \nrecruitingManagerPercentGrossMargin="); + builder.append(", recruitingManagerPercentGrossMargin="); builder.append(recruitingManagerPercentGrossMargin); - builder.append(", \nreferralFee="); + builder.append(", referralFee="); builder.append(referralFee); - builder.append(", \nreferralFeeType="); + builder.append(", referralFeeType="); builder.append(referralFeeType); - builder.append(", \nreportTo="); + builder.append(", reportTo="); builder.append(reportTo); - builder.append(", \nrequestCustomDate1="); + builder.append(", requestCustomDate1="); builder.append(requestCustomDate1); - builder.append(", \nrequestCustomDate2="); + builder.append(", requestCustomDate2="); builder.append(requestCustomDate2); - builder.append(", \nrequestCustomDate3="); + builder.append(", requestCustomDate3="); builder.append(requestCustomDate3); - builder.append(", \nrequestCustomFloat1="); + builder.append(", requestCustomFloat1="); builder.append(requestCustomFloat1); - builder.append(", \nrequestCustomFloat2="); + builder.append(", requestCustomFloat2="); builder.append(requestCustomFloat2); - builder.append(", \nrequestCustomFloat3="); + builder.append(", requestCustomFloat3="); builder.append(requestCustomFloat3); - builder.append(", \nrequestCustomInt1="); + builder.append(", requestCustomInt1="); builder.append(requestCustomInt1); - builder.append(", \nrequestCustomInt2="); + builder.append(", requestCustomInt2="); builder.append(requestCustomInt2); - builder.append(", \nrequestCustomInt3="); + builder.append(", requestCustomInt3="); builder.append(requestCustomInt3); - builder.append(", \nrequestCustomText1="); + builder.append(", requestCustomText1="); builder.append(requestCustomText1); - builder.append(", \nrequestCustomText10="); + builder.append(", requestCustomText10="); builder.append(requestCustomText10); - builder.append(", \nrequestCustomText11="); + builder.append(", requestCustomText11="); builder.append(requestCustomText11); - builder.append(", \nrequestCustomText12="); + builder.append(", requestCustomText12="); builder.append(requestCustomText12); - builder.append(", \nrequestCustomText13="); + builder.append(", requestCustomText13="); builder.append(requestCustomText13); - builder.append(", \nrequestCustomText14="); + builder.append(", requestCustomText14="); builder.append(requestCustomText14); - builder.append(", \nrequestCustomText15="); + builder.append(", requestCustomText15="); builder.append(requestCustomText15); - builder.append(", \nrequestCustomText16="); + builder.append(", requestCustomText16="); builder.append(requestCustomText16); - builder.append(", \nrequestCustomText17="); + builder.append(", requestCustomText17="); builder.append(requestCustomText17); - builder.append(", \nrequestCustomText18="); + builder.append(", requestCustomText18="); builder.append(requestCustomText18); - builder.append(", \nrequestCustomText19="); + builder.append(", requestCustomText19="); builder.append(requestCustomText19); - builder.append(", \nrequestCustomText2="); + builder.append(", requestCustomText2="); builder.append(requestCustomText2); - builder.append(", \nrequestCustomText20="); + builder.append(", requestCustomText20="); builder.append(requestCustomText20); - builder.append(", \nrequestCustomText3="); + builder.append(", requestCustomText3="); builder.append(requestCustomText3); - builder.append(", \nrequestCustomText4="); + builder.append(", requestCustomText4="); builder.append(requestCustomText4); - builder.append(", \nrequestCustomText5="); + builder.append(", requestCustomText5="); builder.append(requestCustomText5); - builder.append(", \nrequestCustomText6="); + builder.append(", requestCustomText6="); builder.append(requestCustomText6); - builder.append(", \nrequestCustomText7="); + builder.append(", requestCustomText7="); builder.append(requestCustomText7); - builder.append(", \nrequestCustomText8="); + builder.append(", requestCustomText8="); builder.append(requestCustomText8); - builder.append(", \nrequestCustomText9="); + builder.append(", requestCustomText9="); builder.append(requestCustomText9); - builder.append(", \nrequestCustomTextBlock1="); + builder.append(", requestCustomTextBlock1="); builder.append(requestCustomTextBlock1); - builder.append(", \nrequestCustomTextBlock2="); + builder.append(", requestCustomTextBlock2="); builder.append(requestCustomTextBlock2); - builder.append(", \nrequestCustomTextBlock3="); + builder.append(", requestCustomTextBlock3="); builder.append(requestCustomTextBlock3); - builder.append(", \nrequestCustomTextBlock4="); + builder.append(", requestCustomTextBlock4="); builder.append(requestCustomTextBlock4); - builder.append(", \nrequestCustomTextBlock5="); + builder.append(", requestCustomTextBlock5="); builder.append(requestCustomTextBlock5); - builder.append(", \nrequestStatus="); + builder.append(", requestStatus="); builder.append(requestStatus); - builder.append(", \nrequestType="); + builder.append(", requestType="); builder.append(requestType); - builder.append(", \nrequestingUser="); + builder.append(", requestingUser="); builder.append(requestingUser); - builder.append(", \nsalary="); + builder.append(", salary="); builder.append(salary); - builder.append(", \nsalaryUnit="); + builder.append(", salaryUnit="); builder.append(salaryUnit); - builder.append(", \nsalesManagerPercentGrossMargin="); + builder.append(", salesManagerPercentGrossMargin="); builder.append(salesManagerPercentGrossMargin); - builder.append(", \nstatementClientContact="); + builder.append(", statementClientContact="); builder.append(statementClientContact); - builder.append(", \nstatus="); + builder.append(", status="); builder.append(status); - builder.append(", \nterminationReason="); + builder.append(", terminationReason="); builder.append(terminationReason); - builder.append(", \nvendorClientCorporation="); + builder.append(", vendorClientCorporation="); builder.append(vendorClientCorporation); - builder.append(", \nworkWeekStart="); + builder.append(", workWeekStart="); builder.append(workWeekStart); - builder.append("\n}"); + builder.append(super.toString()); + builder.append("}"); return builder.toString(); }