diff --git a/OpenATC-Admin-server/agent/src/main/java/com/openatc/agent/model/VipRouteDevice.java b/OpenATC-Admin-server/agent/src/main/java/com/openatc/agent/model/VipRouteDevice.java index 14aeed364f45a2e7fc785d9be505602b82761968..24f0b4fd76fcf057b7c6e426aacb448d49443f9e 100644 --- a/OpenATC-Admin-server/agent/src/main/java/com/openatc/agent/model/VipRouteDevice.java +++ b/OpenATC-Admin-server/agent/src/main/java/com/openatc/agent/model/VipRouteDevice.java @@ -1,5 +1,6 @@ package com.openatc.agent.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.openatc.model.model.ControlPattern; import com.openatc.model.model.MyGeometry; import com.vladmihalcea.hibernate.type.json.JsonBinaryType; @@ -13,6 +14,7 @@ import javax.persistence.*; @Table(name = "vip_route_device") @Entity @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class) +@JsonIgnoreProperties(ignoreUnknown = true) public class VipRouteDevice { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/OpenATC-Admin-server/model/pom.xml b/OpenATC-Admin-server/model/pom.xml index cc6f1e3c4a6a62f8a8d67cbb080d7afd65fccdc8..a34acdc8ba68d89ded7acc64d9b95d754deba334 100644 --- a/OpenATC-Admin-server/model/pom.xml +++ b/OpenATC-Admin-server/model/pom.xml @@ -9,11 +9,12 @@ 4.0.0 model - - - - - - + + + com.fasterxml.jackson.core + jackson-databind + 2.13.5 + + \ No newline at end of file diff --git a/OpenATC-Admin-server/model/src/main/java/com/openatc/model/model/ControlPattern.java b/OpenATC-Admin-server/model/src/main/java/com/openatc/model/model/ControlPattern.java index a985ecb0913d8ce0ce7d4ac7fd1a6c81cb239f70..871580ff30cb9177ea3c0781074359b08ad1cb3e 100644 --- a/OpenATC-Admin-server/model/src/main/java/com/openatc/model/model/ControlPattern.java +++ b/OpenATC-Admin-server/model/src/main/java/com/openatc/model/model/ControlPattern.java @@ -1,5 +1,6 @@ package com.openatc.model.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Data; /** @@ -10,6 +11,7 @@ import lombok.Data; * @version: $ */ @Data +@JsonIgnoreProperties(ignoreUnknown = true) public class ControlPattern { int control; int terminal;