X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mapper%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fmapper%2Fentity%2FDeviceOperationDetails.java;h=baef55f80ce6df84ae2e7c519a96d7ae196e5a9a;hb=HEAD;hp=0c5a1905c9c2ce3e9fc16e8ad766755fe383c10d;hpb=c4ed11115cea02bb72770e74805081ddba12daef;p=oam%2Ftr069-adapter.git diff --git a/mapper/src/main/java/org/commscope/tr069adapter/mapper/entity/DeviceOperationDetails.java b/mapper/src/main/java/org/commscope/tr069adapter/mapper/entity/DeviceOperationDetails.java index 0c5a190..baef55f 100644 --- a/mapper/src/main/java/org/commscope/tr069adapter/mapper/entity/DeviceOperationDetails.java +++ b/mapper/src/main/java/org/commscope/tr069adapter/mapper/entity/DeviceOperationDetails.java @@ -1,72 +1,102 @@ -package org.commscope.tr069adapter.mapper.entity; - -import java.io.Serializable; - -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; - -@Entity -@Table(name = "device_operation_details", - uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"})) -public class DeviceOperationDetails implements Serializable { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(name = "DEVICE_ID", length = 30) - private String deviceId; - - @Column(name = "SW_VERSION", length = 30) - private String swVersion; - - @Column(name = "DOWN_LOAD_STATUS") - private int downLoadStatus; - - @Column(name = "FIRMWARE_FILE", length = 1024) - private String fileName; - - 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 getSwVersion() { - return swVersion; - } - - public void setSwVersion(String swVersion) { - this.swVersion = swVersion; - } - - public int getDownLoadStatus() { - return downLoadStatus; - } - - public void setDownLoadStatus(int downLoadStatus) { - this.downLoadStatus = downLoadStatus; - } - - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } -} +/* + * ============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.mapper.entity; + +import java.io.Serializable; + +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; + +@Entity +@Table(name = "device_operation_details", + uniqueConstraints = @UniqueConstraint(columnNames = {"DEVICE_ID"})) +public class DeviceOperationDetails implements Serializable { + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + private Long id; + + @Column(name = "DEVICE_ID", length = 30) + private String deviceId; + + @Column(name = "SW_VERSION", length = 30) + private String swVersion; + + @Column(name = "DOWN_LOAD_STATUS") + private int downLoadStatus; + + @Column(name = "FIRMWARE_FILE", length = 1024) + private String fileName; + + @Column(name = "ORIGIN", length = 30) + private String origin; + + + 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 getSwVersion() { + return swVersion; + } + + public void setSwVersion(String swVersion) { + this.swVersion = swVersion; + } + + public int getDownLoadStatus() { + return downLoadStatus; + } + + public void setDownLoadStatus(int downLoadStatus) { + this.downLoadStatus = downLoadStatus; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public String getOrigin() { + return origin; + } + + public void setOrigin(String origin) { + this.origin = origin; + } +}