diff --git a/Bench4Q-Share/src/main/java/org/bench4q/share/models/monitor/LimitModel.java b/Bench4Q-Share/src/main/java/org/bench4q/share/models/monitor/LimitModel.java index 49e2e604..f6afaeb1 100644 --- a/Bench4Q-Share/src/main/java/org/bench4q/share/models/monitor/LimitModel.java +++ b/Bench4Q-Share/src/main/java/org/bench4q/share/models/monitor/LimitModel.java @@ -5,13 +5,15 @@ import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; @XmlRootElement public class LimitModel { - @XmlElementWrapper - @XmlElement + private List params; + @XmlElementWrapper(name = "limitParameterList") + @XmlElement(name = "limitParameter") public List getParams() { return params; } @@ -20,7 +22,9 @@ public class LimitModel { this.params = params; } + @XmlRootElement + @XmlType(name = "limitParameterModel") public static class ParameterModel { private String name; private double limit;