X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=acs%2Frequestprocessor%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Facs%2Frequestprocessor%2Fentity%2FTR069DeviceEntity.java;h=a7ae38db77800d0af2bc9969fcac19077036f91a;hb=76744e810f35c84ecbd1d9998e361052466e9483;hp=2193f5aada1e80de55ab5032301eb18f1e3fddfb;hpb=ce4e2d38e3d42725f61c39dd172325d2def4bc44;p=oam%2Ftr069-adapter.git diff --git a/acs/requestprocessor/src/main/java/org/commscope/tr069adapter/acs/requestprocessor/entity/TR069DeviceEntity.java b/acs/requestprocessor/src/main/java/org/commscope/tr069adapter/acs/requestprocessor/entity/TR069DeviceEntity.java index 2193f5a..a7ae38d 100644 --- a/acs/requestprocessor/src/main/java/org/commscope/tr069adapter/acs/requestprocessor/entity/TR069DeviceEntity.java +++ b/acs/requestprocessor/src/main/java/org/commscope/tr069adapter/acs/requestprocessor/entity/TR069DeviceEntity.java @@ -1,136 +1,169 @@ -/* - * ============LICENSE_START======================================================================== - * ONAP : tr-069-adapter - * ================================================================================================= - * Copyright (C) 2020 CommScope Inc Intellectual Property. - * ================================================================================================= - * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License, - * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You - * may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language governing permissions and - * limitations under the License. - * ===============LICENSE_END======================================================================= - */ - -package org.commscope.tr069adapter.acs.requestprocessor.entity; - -import java.io.Serializable; -import java.util.Date; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; - -/** - * The persistent class for the TR069_DEVICE_ database table. - * - */ -@Entity -@Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"})) -public class TR069DeviceEntity implements Serializable { - - private static final long serialVersionUID = -2696584252283707720L; - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "ID") - private Long id; - - @Column(name = "DEVICE_ID", length = 30) - private String deviceId; - - @Column(name = "USER_NAME", length = 256) - private String userName; - - @Column(name = "PASSWORD", length = 256) - private String password; - - @Column(name = "HW_VERSION", length = 20) - private String hwVersion; - - @Column(name = "SW_VERSION", length = 20) - private String swVersion; - - @Column(name = "CONNECTION_REQUEST_URL", length = 1024) - private String connectionReqURL; - - @Column(name = "LAST_UPDATED_TIME") - private Date lastUpdatedTime; - - public TR069DeviceEntity() { - super(); - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getDeviceId() { - return deviceId; - } - - public void setDeviceId(String deviceID) { - this.deviceId = deviceID; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getHwVersion() { - return hwVersion; - } - - public void setHwVersion(String hwVersion) { - this.hwVersion = hwVersion; - } - - public String getSwVersion() { - return swVersion; - } - - public void setSwVersion(String swVersion) { - this.swVersion = swVersion; - } - - public String getConnectionReqURL() { - return connectionReqURL; - } - - public void setConnectionReqURL(String connectionReqURL) { - this.connectionReqURL = connectionReqURL; - } - - public Date getLastUpdatedTime() { - return lastUpdatedTime; - } - - public void setLastUpdatedTime(Date rowUpdatedTime) { - this.lastUpdatedTime = rowUpdatedTime; - } - -} +/* + * ============LICENSE_START======================================================================== + * ONAP : tr-069-adapter + * ================================================================================================= + * Copyright (C) 2020 CommScope Inc Intellectual Property. + * ================================================================================================= + * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License, + * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You + * may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language governing permissions and + * limitations under the License. + * ===============LICENSE_END======================================================================= + */ + +package org.commscope.tr069adapter.acs.requestprocessor.entity; + +import java.io.Serializable; +import java.util.Date; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.Table; +import javax.persistence.UniqueConstraint; + +/** + * The persistent class for the TR069_DEVICE_ database table. + * + */ +@Entity +@Table(name = "TR069_DEVICE", uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"})) +public class TR069DeviceEntity implements Serializable { + + private static final long serialVersionUID = -2696584252283707720L; + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + @Column(name = "ID") + private Long id; + + @Column(name = "DEVICE_ID", length = 30) + private String deviceId; + + @Column(name = "USER_NAME", length = 256) + private String userName; + + @Column(name = "PASSWORD", length = 256) + private String password; + + @Column(name = "HW_VERSION", length = 20) + private String hwVersion; + + @Column(name = "SW_VERSION", length = 20) + private String swVersion; + + @Column(name = "CONNECTION_REQUEST_URL", length = 1024) + private String connectionReqURL; + + @Column(name = "LAST_UPDATED_TIME") + private Date lastUpdatedTime; + + @Column(name = "LAST_FAILED_ATTEMPT_TIME") + private Date lastFailedAttemptTime; + + @Column(name = "CONN_STATUS") + private boolean connStatus; + + @Column(name = "ERROR_MESSGAE") + private String errorMsg; + + public TR069DeviceEntity() { + super(); + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceID) { + this.deviceId = deviceID; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } + + public String getSwVersion() { + return swVersion; + } + + public void setSwVersion(String swVersion) { + this.swVersion = swVersion; + } + + public String getConnectionReqURL() { + return connectionReqURL; + } + + public void setConnectionReqURL(String connectionReqURL) { + this.connectionReqURL = connectionReqURL; + } + + public Date getLastUpdatedTime() { + return lastUpdatedTime; + } + + public void setLastUpdatedTime(Date rowUpdatedTime) { + this.lastUpdatedTime = rowUpdatedTime; + } + + public Date getLastFailedAttemptTime() { + return lastFailedAttemptTime; + } + + public void setLastFailedAttemptTime(Date lastFailedAttemptTime) { + this.lastFailedAttemptTime = lastFailedAttemptTime; + } + + public boolean isConnStatus() { + return connStatus; + } + + public void setConnStatus(boolean connStatus) { + this.connStatus = connStatus; + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + +}