Skip to content

Commit

Permalink
adding support for person CO29 (#402)
Browse files Browse the repository at this point in the history
Co-authored-by: ayman.saad-mis <[email protected]>
  • Loading branch information
AymanSaad7777 and ayman.saad-mis authored Jan 3, 2023
1 parent fb7287d commit f154e18
Show file tree
Hide file tree
Showing 9 changed files with 593 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ public class MockDataLoader {
entityFiles.put(PersonCustomObjectInstance23.class, "customobjectinstances/personcustomobjectinstance23-data.txt");
entityFiles.put(PersonCustomObjectInstance24.class, "customobjectinstances/personcustomobjectinstance24-data.txt");
entityFiles.put(PersonCustomObjectInstance25.class, "customobjectinstances/personcustomobjectinstance25-data.txt");
entityFiles.put(PersonCustomObjectInstance29.class, "customobjectinstances/personcustomobjectinstance29-data.txt");

entityFiles.put(CandidateFileAttachment.class, "file/candidatefileattachment-data.txt");
entityFiles.put(CertificationFileAttachment.class, "file/certificationfileattachment-data.txt");
Expand Down Expand Up @@ -919,6 +920,7 @@ public class MockDataLoader {
entityMetaFiles.put(PersonCustomObjectInstance23.class, "meta/customobjectinstances/personcustomobjectinstance23-meta-data.txt");
entityMetaFiles.put(PersonCustomObjectInstance24.class, "meta/customobjectinstances/personcustomobjectinstance24-meta-data.txt");
entityMetaFiles.put(PersonCustomObjectInstance25.class, "meta/customobjectinstances/personcustomobjectinstance25-meta-data.txt");
entityMetaFiles.put(PersonCustomObjectInstance29.class, "meta/customobjectinstances/personcustomobjectinstance29-meta-data.txt");

entityMetaFiles.put(ClientCorporationCustomObject.class, "meta/customobject/clientcorporationcustomobject-meta-data.txt");
entityMetaFiles.put(JobOrderCustomObject.class, "meta/customobject/jobordercustomobject-meta-data.txt");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@

import com.bullhornsdk.data.model.entity.association.AssociationField;
import com.bullhornsdk.data.model.entity.association.EntityAssociations;
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.customobjectinstances.person.*;
import com.bullhornsdk.data.model.entity.core.standard.*;
import com.bullhornsdk.data.model.entity.core.type.BullhornEntity;

Expand Down Expand Up @@ -46,6 +37,7 @@ public final class CandidateAssociations implements EntityAssociations<Candidate
private final AssociationField<Candidate, PersonCustomObjectInstance8> customObject8s = instantiateAssociationField("customObject8s", PersonCustomObjectInstance8.class);
private final AssociationField<Candidate, PersonCustomObjectInstance9> customObject9s = instantiateAssociationField("customObject9s", PersonCustomObjectInstance9.class);
private final AssociationField<Candidate, PersonCustomObjectInstance10> customObject10s = instantiateAssociationField("customObject10s", PersonCustomObjectInstance10.class);
private final AssociationField<Candidate, PersonCustomObjectInstance29> customObject29s = instantiateAssociationField("customObject29s", PersonCustomObjectInstance29.class);


private List<AssociationField<Candidate, ? extends BullhornEntity>> allAssociations;
Expand Down Expand Up @@ -133,6 +125,10 @@ public AssociationField<Candidate, PersonCustomObjectInstance10> customObject10s
return customObject10s;
}

public AssociationField<Candidate, PersonCustomObjectInstance29> customObject29s() {
return customObject29s;
}

private <E extends BullhornEntity> AssociationField<Candidate, E> instantiateAssociationField(String associationName, Class<E> associationType) {
return new StandardAssociationField<Candidate, E>(associationName, associationType);
}
Expand Down Expand Up @@ -160,6 +156,7 @@ private <E extends BullhornEntity> AssociationField<Candidate, E> instantiateAss
allAssociations.add(customObject8s());
allAssociations.add(customObject9s());
allAssociations.add(customObject10s());
allAssociations.add(customObject29s());

}
return allAssociations;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.bullhornsdk.data.model.entity.core.customobjectinstances.person;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
@JsonPropertyOrder({ "id", "person", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
public class PersonCustomObjectInstance29 extends PersonCustomObjectInstance {
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"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" })
"customObject7s", "customObject8s", "customObject9s", "customObject10s", "customObject29s" })
public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEntity, CreateEntity, SoftDeleteEntity, FileEntity,
AssociationEntity, DateLastModifiedEntity, EditHistoryEntity {

Expand Down Expand Up @@ -459,6 +459,8 @@ public class Candidate extends CustomFieldsF implements SearchEntity, UpdateEnti

private OneToMany<PersonCustomObjectInstance10> customObject10s;

private OneToMany<PersonCustomObjectInstance29> customObject29s;

public Candidate() {
super();
}
Expand Down Expand Up @@ -2103,6 +2105,18 @@ public void setCustomObject10s(OneToMany<PersonCustomObjectInstance10> customObj
this.customObject10s = customObject10s;
}

@JsonProperty("customObject29s")
@JsonSerialize(using = RestOneToManySerializer.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public OneToMany<PersonCustomObjectInstance29> getCustomObject29s() {
return customObject29s;
}

@JsonProperty("customObject29s")
public void setCustomObject29s(OneToMany<PersonCustomObjectInstance29> customObject29s) {
this.customObject29s = customObject29s;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down Expand Up @@ -2255,13 +2269,14 @@ public boolean equals(Object o) {
Objects.equals(customObject7s, candidate.customObject7s) &&
Objects.equals(customObject8s, candidate.customObject8s) &&
Objects.equals(customObject9s, candidate.customObject9s) &&
Objects.equals(customObject10s, candidate.customObject10s);
Objects.equals(customObject10s, candidate.customObject10s) &&
Objects.equals(customObject29s, candidate.customObject29s);
}

@Override
public int hashCode() {

return Objects.hash(super.hashCode(), luceneScore, id, address, branch, businessSectors, canEnterTime, categories, category, certificationList, certifications, clientCorporationBlackList, clientCorporationWhiteList, comments, companyName, companyURL, dateAdded, dateAvailable, dateAvailableEnd, dateI9Expiration, dateLastComment, dateLastModified, dateLastPayrollProviderSync, dateNextCall, dateOfBirth, dayRate, dayRateLow, degreeList, description, desiredLocations, disability, educationDegree, educations, email, email2, email3, employeeType, employmentPreference, ethnicity, experience, externalID, fax, fax2, fax3, federalAddtionalWitholdingsAmount, federalExtraWithholdingAmount, federalExemptions, federalFilingStatus, fileAttachments, firstName, gender, hourlyRate, hourlyRateLow, interviews, i9OnFile, isDayLightSavings, isDeleted, isEditable, isLockedOut, isAnonymized, lastName, linkedPerson, leads, localAddtionalWitholdingsAmount, localExemptions, localFilingStatus, localTaxCode, massMailOptOut, middleName, migrateGUID, mobile, name, namePrefix, nameSuffix, nickName, notes, numCategories, numOwners, occupation, onboardingDocumentReceivedCount, onboardingDocumentSentCount, onboardingPercentComplete, onboardingReceivedSent, onboardingStatus, owner, pager, paperWorkOnFile, password, phone, phone2, phone3, placements, preferredContact, primarySkills, recentClientList, referredBy, referredByPerson, references, salary, salaryLow, secondaryAddress, secondaryOwners, secondarySkills, sendouts, skillSet, smsOptIn, source, specialties, ssn, stateAddtionalWitholdingsAmount, stateExemptions, stateFilingStatus, status, submissions, tasks, taxID, taxState, tearsheets, timeZoneOffsetEST, travelLimit, type, username, veteran, webResponses, willRelocate, workAuthorized, workHistories, workPhone, customEncryptedText1, customEncryptedText2, customEncryptedText3, customEncryptedText4, customEncryptedText5, customEncryptedText6, customEncryptedText7, customEncryptedText8, customEncryptedText9, customEncryptedText10, customObject1s, customObject2s, customObject3s, customObject4s, customObject5s, customObject6s, customObject7s, customObject8s, customObject9s, customObject10s);
return Objects.hash(super.hashCode(), luceneScore, id, address, branch, businessSectors, canEnterTime, categories, category, certificationList, certifications, clientCorporationBlackList, clientCorporationWhiteList, comments, companyName, companyURL, dateAdded, dateAvailable, dateAvailableEnd, dateI9Expiration, dateLastComment, dateLastModified, dateLastPayrollProviderSync, dateNextCall, dateOfBirth, dayRate, dayRateLow, degreeList, description, desiredLocations, disability, educationDegree, educations, email, email2, email3, employeeType, employmentPreference, ethnicity, experience, externalID, fax, fax2, fax3, federalAddtionalWitholdingsAmount, federalExtraWithholdingAmount, federalExemptions, federalFilingStatus, fileAttachments, firstName, gender, hourlyRate, hourlyRateLow, interviews, i9OnFile, isDayLightSavings, isDeleted, isEditable, isLockedOut, isAnonymized, lastName, linkedPerson, leads, localAddtionalWitholdingsAmount, localExemptions, localFilingStatus, localTaxCode, massMailOptOut, middleName, migrateGUID, mobile, name, namePrefix, nameSuffix, nickName, notes, numCategories, numOwners, occupation, onboardingDocumentReceivedCount, onboardingDocumentSentCount, onboardingPercentComplete, onboardingReceivedSent, onboardingStatus, owner, pager, paperWorkOnFile, password, phone, phone2, phone3, placements, preferredContact, primarySkills, recentClientList, referredBy, referredByPerson, references, salary, salaryLow, secondaryAddress, secondaryOwners, secondarySkills, sendouts, skillSet, smsOptIn, source, specialties, ssn, stateAddtionalWitholdingsAmount, stateExemptions, stateFilingStatus, status, submissions, tasks, taxID, taxState, tearsheets, timeZoneOffsetEST, travelLimit, type, username, veteran, webResponses, willRelocate, workAuthorized, workHistories, workPhone, customEncryptedText1, customEncryptedText2, customEncryptedText3, customEncryptedText4, customEncryptedText5, customEncryptedText6, customEncryptedText7, customEncryptedText8, customEncryptedText9, customEncryptedText10, customObject1s, customObject2s, customObject3s, customObject4s, customObject5s, customObject6s, customObject7s, customObject8s, customObject9s, customObject10s, customObject29s);
}

@Override
Expand Down Expand Up @@ -2414,6 +2429,7 @@ public String toString() {
", customObject8s=" + customObject8s +
", customObject9s=" + customObject9s +
", customObject10s=" + customObject10s +
", customObject29s=" + customObject29s +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ public enum BullhornEntityInfo {
PERSON_CUSTOM_OBJECT_INSTANCE_23("PersonCustomObjectInstance23", PersonCustomObjectInstance23.class, PersonCustomObjectInstance23Wrapper.class, PersonCustomObjectInstance23ListWrapper.class, "PersonCustomObject23EditHistory", "PersonCustomObjectEditHistoryFieldChange"),
PERSON_CUSTOM_OBJECT_INSTANCE_24("PersonCustomObjectInstance24", PersonCustomObjectInstance24.class, PersonCustomObjectInstance24Wrapper.class, PersonCustomObjectInstance24ListWrapper.class, "PersonCustomObject24EditHistory", "PersonCustomObjectEditHistoryFieldChange"),
PERSON_CUSTOM_OBJECT_INSTANCE_25("PersonCustomObjectInstance25", PersonCustomObjectInstance25.class, PersonCustomObjectInstance25Wrapper.class, PersonCustomObjectInstance25ListWrapper.class, "PersonCustomObject25EditHistory", "PersonCustomObjectEditHistoryFieldChange"),
PERSON_CUSTOM_OBJECT_INSTANCE_29("PersonCustomObjectInstance29", PersonCustomObjectInstance29.class, PersonCustomObjectInstance29Wrapper.class, PersonCustomObjectInstance29ListWrapper.class, "PersonCustomObject29EditHistory", "PersonCustomObjectEditHistoryFieldChange"),

// File Attachment Entities
CANDIDATE_FILE_ATTACHMENT("CandidateFileAttachment", CandidateFileAttachment.class, CandidateFileAttachmentWrapper.class, CandidateFileAttachmentListWrapper.class, null, null),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.bullhornsdk.data.model.response.list.customobjectinstances;

import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance29;
import com.bullhornsdk.data.model.response.list.StandardListWrapper;



public class PersonCustomObjectInstance29ListWrapper extends StandardListWrapper<PersonCustomObjectInstance29> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.bullhornsdk.data.model.response.single.customobjectinstances;

import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance29;
import com.bullhornsdk.data.model.response.single.StandardWrapper;

public class PersonCustomObjectInstance29Wrapper extends StandardWrapper<PersonCustomObjectInstance29> {
}
Loading

0 comments on commit f154e18

Please sign in to comment.