Initial source code
[oam/tr069-adapter.git] / netconf-server / src / main / java / org / commscope / tr069adapter / netconf / entity / NetConfServerDetailsEntity.java
diff --git a/netconf-server/src/main/java/org/commscope/tr069adapter/netconf/entity/NetConfServerDetailsEntity.java b/netconf-server/src/main/java/org/commscope/tr069adapter/netconf/entity/NetConfServerDetailsEntity.java
new file mode 100644 (file)
index 0000000..832d7fc
--- /dev/null
@@ -0,0 +1,81 @@
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.netconf.entity;\r
+\r
+import java.io.Serializable;\r
+\r
+import javax.persistence.Column;\r
+import javax.persistence.Entity;\r
+import javax.persistence.GeneratedValue;\r
+import javax.persistence.GenerationType;\r
+import javax.persistence.Id;\r
+import javax.persistence.Table;\r
+\r
+@Entity\r
+@Table(name = "netconf_server_details")\r
+public class NetConfServerDetailsEntity implements Serializable {\r
+\r
+  private static final long serialVersionUID = 3572178771247249366L;\r
+\r
+  @Id\r
+  @GeneratedValue(strategy = GenerationType.AUTO)\r
+  private Long id;\r
+\r
+  @Column(name = "DEVICE_ID", length = 30)\r
+  private String deviceId;\r
+\r
+  @Column(name = "ENODEB_NAME", length = 255)\r
+  private String enodeBName;\r
+\r
+  @Column(name = "PORT", length = 10)\r
+  private String listenPort;\r
+\r
+  public Long getId() {\r
+    return id;\r
+  }\r
+\r
+  public void setId(Long id) {\r
+    this.id = id;\r
+  }\r
+\r
+  public String getDeviceId() {\r
+    return deviceId;\r
+  }\r
+\r
+  public void setDeviceId(String deviceId) {\r
+    this.deviceId = deviceId;\r
+  }\r
+\r
+  public String getListenPort() {\r
+    return listenPort;\r
+  }\r
+\r
+  public void setListenPort(String listenPort) {\r
+    this.listenPort = listenPort;\r
+  }\r
+\r
+  public String getEnodeBName() {\r
+    return enodeBName;\r
+  }\r
+\r
+  public void setEnodeBName(String enodeBName) {\r
+    this.enodeBName = enodeBName;\r
+  }\r
+\r
+}\r