diff --git a/management-api-server/src/main/java/com/datastax/mgmtapi/resources/models/Job.java b/management-api-server/src/main/java/com/datastax/mgmtapi/resources/models/Job.java index 574fd7e5..ef7e59db 100644 --- a/management-api-server/src/main/java/com/datastax/mgmtapi/resources/models/Job.java +++ b/management-api-server/src/main/java/com/datastax/mgmtapi/resources/models/Job.java @@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import java.io.Serializable; import java.util.List; @@ -27,9 +29,11 @@ public enum JobStatus { private JobStatus status; @JsonProperty(value = "submit_time") + @JsonSerialize(using = ToStringSerializer.class) private long submitTime; @JsonProperty(value = "end_time") + @JsonSerialize(using = ToStringSerializer.class) private long finishedTime; @JsonProperty(value = "error") @@ -40,6 +44,7 @@ public static class StatusChange { String status; @JsonProperty(value = "change_time") + @JsonSerialize(using = ToStringSerializer.class) long changeTime; @JsonProperty(value = "message")