/* * ============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; } }