Fix the java code style issue.
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / entity / aai / EsrEms.java
index e8c402e..1a347e2 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright 2016-2017 ZTE Corporation.
+ * Copyright 2017 ZTE Corporation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 package org.onap.aai.esr.entity.aai;
 
+import java.io.Serializable;
+import com.google.gson.annotations.SerializedName;
 
-public class EsrEms {
+public class EsrEms implements Serializable {
 
-  private String emsId;
-  
-  private String resouceVersion;
-  
-  private EsrSystemInfoList esrSystemInfoList;
+    public static final long serialVersionUID = 1L;
 
-  public String getEmsId() {
-    return emsId;
-  }
+    @SerializedName("ems-id")
+    private String emsId;
 
-  public void setEmsId(String emsId) {
-    this.emsId = emsId;
-  }
+    @SerializedName("resource-version")
+    private String resourceVersion;
 
-  public EsrSystemInfoList getEsrSystemInfoList() {
-    return esrSystemInfoList;
-  }
+    public String getEmsId() {
+        return emsId;
+    }
 
-  public void setEsrSystemInfoList(EsrSystemInfoList esrSystemInfoList) {
-    this.esrSystemInfoList = esrSystemInfoList;
-  }
+    public void setEmsId(String emsId) {
+        this.emsId = emsId;
+    }
 
-  public String getResouceVersion() {
-    return resouceVersion;
-  }
+    public String getResourceVersion() {
+        return resourceVersion;
+    }
 
-  public void setResouceVersion(String resouceVersion) {
-    this.resouceVersion = resouceVersion;
-  }
+    public void setResourceVersion(String resourceVersion) {
+        this.resourceVersion = resourceVersion;
+    }
 }