Skip to content

Commit

Permalink
Merge pull request #33 from bullhorn/feature/jsonIgnore
Browse files Browse the repository at this point in the history
add JsonIgnore annotation to String fields
  • Loading branch information
johnsully83 committed Apr 27, 2016
2 parents 7aa8ca0 + a1ad4a7 commit bd970a9
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class Appointment extends AbstractEntity implements QueryEntity, UpdateEn

private ClientContact clientContactReference;

@JsonIgnore
@Size(max = 30)
private String communicationMethod;

Expand All @@ -66,6 +67,7 @@ public class Appointment extends AbstractEntity implements QueryEntity, UpdateEn

private Lead lead;

@JsonIgnore
@Size(max = 100)
private String location;

Expand Down Expand Up @@ -102,6 +104,7 @@ public class Appointment extends AbstractEntity implements QueryEntity, UpdateEn

private String timeZoneID;

@JsonIgnore
@Size(max = 30)
private String type;

Expand Down Expand Up @@ -189,7 +192,7 @@ public String getCommunicationMethod() {
return communicationMethod;
}

@JsonProperty("communicationMethod")
@JsonIgnore
public void setCommunicationMethod(String communicationMethod) {
this.communicationMethod = communicationMethod;
}
Expand Down Expand Up @@ -299,7 +302,7 @@ public String getLocation() {
return location;
}

@JsonProperty("location")
@JsonIgnore
public void setLocation(String location) {
this.location = location;
}
Expand Down Expand Up @@ -459,7 +462,7 @@ public String getType() {
return type;
}

@JsonProperty("type")
@JsonIgnore
public void setType(String type) {
this.type = type;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class CandidateReference extends AbstractEntity implements QueryEntity, U

private Candidate candidate;

@JsonIgnore
@Size(max = 50)
private String candidateTitle;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ public class CandidateWorkHistory extends AbstractEntity implements QueryEntity,

private DateTime startDate;

@JsonIgnore
@Size(max = 100)
private String terminationReason;

@JsonIgnore
@Size(max = 50)
private String title;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
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.AssociationEntity;
import com.bullhornsdk.data.model.entity.core.type.QueryEntity;
import com.bullhornsdk.data.model.entity.embedded.OneToMany;
import com.fasterxml.jackson.annotation.*;
import org.joda.time.DateTime;

import javax.validation.constraints.Size;
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;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
Expand Down Expand Up @@ -40,6 +45,7 @@ public class Category extends AbstractEntity implements QueryEntity, Association

private OneToMany<Category> specialties;

@JsonIgnore
@Size(max = 20)
private String type;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
package com.bullhornsdk.data.model.entity.core.standard;

import com.bullhornsdk.data.model.entity.core.type.*;
import java.math.BigDecimal;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.joda.time.DateTime;

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.LinkedPerson;
import com.bullhornsdk.data.model.entity.embedded.OneToMany;
import com.fasterxml.jackson.annotation.*;
import org.hibernate.validator.constraints.Email;
import org.joda.time.DateTime;

import javax.validation.constraints.Size;
import java.math.BigDecimal;
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;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
Expand All @@ -32,6 +46,7 @@ public class Lead extends CustomFieldsB implements SearchEntity, QueryEntity, Up

private OneToMany<BusinessSector> businessSectors;

@JsonIgnore
private String campaignSource;

private OneToMany<Candidate> candidates;
Expand Down Expand Up @@ -193,6 +208,7 @@ public class Lead extends CustomFieldsB implements SearchEntity, QueryEntity, Up

private LinkedPerson reportToPerson;

@JsonIgnore
private String role;

private BigDecimal salary;
Expand Down Expand Up @@ -753,7 +769,7 @@ public String getCampaignSource() {
return campaignSource;
}

@JsonProperty("campaignSource")
@JsonIgnore
public void setCampaignSource(String campaignSource) {
this.campaignSource = campaignSource;
}
Expand Down Expand Up @@ -853,7 +869,7 @@ public String getLeadSource() {
return leadSource;
}

@JsonProperty("leadSource")
@JsonIgnore
public void setLeadSource(String leadSource) {
this.leadSource = leadSource;
}
Expand Down Expand Up @@ -913,7 +929,7 @@ public String getRole() {
return role;
}

@JsonProperty("role")
@JsonIgnore
public void setRole(String role) {
this.role = role;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ public String getCampaignSource() {
return campaignSource;
}

@JsonProperty("campaignSource")
@JsonIgnore
public void setCampaignSource(String campaignSource) {
this.campaignSource = campaignSource;
}
Expand Down

0 comments on commit bd970a9

Please sign in to comment.