diff --git a/src/main/java/ubc/pavlab/rdp/model/User.java b/src/main/java/ubc/pavlab/rdp/model/User.java index d91f0f32..9f0d3e06 100644 --- a/src/main/java/ubc/pavlab/rdp/model/User.java +++ b/src/main/java/ubc/pavlab/rdp/model/User.java @@ -1,6 +1,7 @@ package ubc.pavlab.rdp.model; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonUnwrapped; import lombok.*; import org.hibernate.annotations.CacheConcurrencyStrategy; @@ -26,6 +27,7 @@ @NoArgsConstructor @EqualsAndHashCode(of = {"id"}) @ToString( of = {"id", "email", "enabled"}) +@JsonIgnoreProperties(ignoreUnknown = true) public class User{ @Id diff --git a/src/main/java/ubc/pavlab/rdp/model/UserGene.java b/src/main/java/ubc/pavlab/rdp/model/UserGene.java index 372d758e..07c0d245 100644 --- a/src/main/java/ubc/pavlab/rdp/model/UserGene.java +++ b/src/main/java/ubc/pavlab/rdp/model/UserGene.java @@ -1,6 +1,7 @@ package ubc.pavlab.rdp.model; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @@ -25,6 +26,7 @@ @Setter @NoArgsConstructor @ToString(callSuper = true) +@JsonIgnoreProperties(ignoreUnknown = true) public class UserGene extends Gene { @Id diff --git a/src/main/java/ubc/pavlab/rdp/model/UserTerm.java b/src/main/java/ubc/pavlab/rdp/model/UserTerm.java index b245d558..66323472 100644 --- a/src/main/java/ubc/pavlab/rdp/model/UserTerm.java +++ b/src/main/java/ubc/pavlab/rdp/model/UserTerm.java @@ -1,6 +1,7 @@ package ubc.pavlab.rdp.model; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @@ -23,6 +24,7 @@ @Getter @Setter @NoArgsConstructor +@JsonIgnoreProperties(ignoreUnknown = true) public class UserTerm extends GeneOntologyTerm { @Id