From 58c45c92bec99fa4d0bc41f831b25a9378b96113 Mon Sep 17 00:00:00 2001 From: harshanl Date: Thu, 6 Aug 2015 18:11:40 +0530 Subject: [PATCH] Fixed tenant configuration persisting issue --- .../common/configuration/mgt/TenantConfiguration.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/TenantConfiguration.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/TenantConfiguration.java index ee7a01536b..3f326d2000 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/TenantConfiguration.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/configuration/mgt/TenantConfiguration.java @@ -18,14 +18,23 @@ package org.wso2.carbon.device.mgt.common.configuration.mgt; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; import java.util.List; /** * Represents the tenant configuration for a device platform. */ -public class TenantConfiguration { +@XmlRootElement(name="tenantConfiguration") +@XmlAccessorType(XmlAccessType.NONE) +public class TenantConfiguration implements Serializable{ + @XmlElement(name="type") private String type; + @XmlElement(name="configuration") private List configuration; public String getType() {