2 * ============LICENSE_START========================================================================
3 * ONAP : tr-069-adapter
4 * =================================================================================================
5 * Copyright (C) 2020 CommScope Inc Intellectual Property.
6 * =================================================================================================
7 * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,
8 * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
9 * may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14 * either express or implied. See the License for the specific language governing permissions and
15 * limitations under the License.
16 * ===============LICENSE_END=======================================================================
19 package org.commscope.tr069adapter.acs.requestprocessor.entity;
21 import java.io.Serializable;
22 import java.util.Date;
24 import javax.persistence.Column;
25 import javax.persistence.Entity;
26 import javax.persistence.GeneratedValue;
27 import javax.persistence.GenerationType;
28 import javax.persistence.Id;
29 import javax.persistence.Table;
30 import javax.persistence.UniqueConstraint;
33 * The persistent class for the TR069_DEVICE_ database table.
37 @Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"}))
38 public class TR069DeviceEntity implements Serializable {
40 private static final long serialVersionUID = -2696584252283707720L;
43 @GeneratedValue(strategy = GenerationType.AUTO)
47 @Column(name = "DEVICE_ID", length = 30)
48 private String deviceId;
50 @Column(name = "USER_NAME", length = 256)
51 private String userName;
53 @Column(name = "PASSWORD", length = 256)
54 private String password;
56 @Column(name = "HW_VERSION", length = 20)
57 private String hwVersion;
59 @Column(name = "SW_VERSION", length = 20)
60 private String swVersion;
62 @Column(name = "CONNECTION_REQUEST_URL", length = 1024)
63 private String connectionReqURL;
65 @Column(name = "LAST_UPDATED_TIME")
66 private Date lastUpdatedTime;
68 @Column(name = "LAST_FAILED_ATTEMPT_TIME")
69 private Date lastFailedAttemptTime;
71 @Column(name = "CONN_STATUS")
72 private boolean connStatus;
74 @Column(name = "ERROR_MESSGAE")
75 private String errorMsg;
77 public TR069DeviceEntity() {
85 public void setId(Long id) {
89 public String getDeviceId() {
93 public void setDeviceId(String deviceID) {
94 this.deviceId = deviceID;
97 public String getUserName() {
101 public void setUserName(String userName) {
102 this.userName = userName;
105 public String getPassword() {
109 public void setPassword(String password) {
110 this.password = password;
113 public String getHwVersion() {
117 public void setHwVersion(String hwVersion) {
118 this.hwVersion = hwVersion;
121 public String getSwVersion() {
125 public void setSwVersion(String swVersion) {
126 this.swVersion = swVersion;
129 public String getConnectionReqURL() {
130 return connectionReqURL;
133 public void setConnectionReqURL(String connectionReqURL) {
134 this.connectionReqURL = connectionReqURL;
137 public Date getLastUpdatedTime() {
138 return lastUpdatedTime;
141 public void setLastUpdatedTime(Date rowUpdatedTime) {
142 this.lastUpdatedTime = rowUpdatedTime;
145 public Date getLastFailedAttemptTime() {
146 return lastFailedAttemptTime;
149 public void setLastFailedAttemptTime(Date lastFailedAttemptTime) {
150 this.lastFailedAttemptTime = lastFailedAttemptTime;
153 public boolean isConnStatus() {
157 public void setConnStatus(boolean connStatus) {
158 this.connStatus = connStatus;
161 public String getErrorMsg() {
165 public void setErrorMsg(String errorMsg) {
166 this.errorMsg = errorMsg;