X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=config-data%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fconfig%2Fmodel%2FConfigFileContent.java;fp=config-data%2Fsrc%2Fmain%2Fjava%2Forg%2Fcommscope%2Ftr069adapter%2Fconfig%2Fmodel%2FConfigFileContent.java;h=b00622b9942866928edfd490fe10af4550e211ef;hb=76744e810f35c84ecbd1d9998e361052466e9483;hp=1b6482c68dd806eba311026009bad4d6bbd9bd02;hpb=ce4e2d38e3d42725f61c39dd172325d2def4bc44;p=oam%2Ftr069-adapter.git diff --git a/config-data/src/main/java/org/commscope/tr069adapter/config/model/ConfigFileContent.java b/config-data/src/main/java/org/commscope/tr069adapter/config/model/ConfigFileContent.java index 1b6482c..b00622b 100644 --- a/config-data/src/main/java/org/commscope/tr069adapter/config/model/ConfigFileContent.java +++ b/config-data/src/main/java/org/commscope/tr069adapter/config/model/ConfigFileContent.java @@ -1,97 +1,98 @@ -/* - * ============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.config.model; - -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 = "config_file_content", - uniqueConstraints = @UniqueConstraint(columnNames = {"MACID", "SW_VERSION", "HW_VERSION"})) -public class ConfigFileContent implements Serializable { - private static final long serialVersionUID = -5435735270835950132L; - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "ID") - private Long id; - - @Column(name = "MACID", length = 255) - private String macId; - - @Column(name = "FILE_CONTENT", columnDefinition = "MEDIUMTEXT") - private String fileContent; - - @Column(name = "SW_VERSION", length = 64) - private String swVersion; - - @Column(name = "HW_VERSION", length = 64) - private String hwVersion; - - public ConfigFileContent() { - super(); - } - - public String getMacId() { - return macId; - } - - public void setMacId(String macId) { - this.macId = macId; - } - - public String getFileContent() { - return fileContent; - } - - public void setFileContent(String fileContent) { - this.fileContent = fileContent; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getSwVersion() { - return swVersion; - } - - public void setSwVersion(String swVersion) { - this.swVersion = swVersion; - } - - public String getHwVersion() { - return hwVersion; - } - - public void setHwVersion(String hwVersion) { - this.hwVersion = hwVersion; - } -} +/* + * ============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.config.model; + +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 = "config_file_content", + uniqueConstraints = @UniqueConstraint(columnNames = {"MACID", "SW_VERSION", "HW_VERSION"})) +public class ConfigFileContent implements Serializable { + private static final long serialVersionUID = -5435735270835950132L; + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + @Column(name = "ID") + private Long id; + + @Column(name = "MACID", length = 255) + private String macId; + + @Column(name = "FILE_CONTENT", columnDefinition = "MEDIUMTEXT") + private String fileContent; + + @Column(name = "SW_VERSION", length = 64) + private String swVersion; + + @Column(name = "HW_VERSION", length = 64) + private String hwVersion; + + public ConfigFileContent() { + super(); + } + + public String getMacId() { + return macId; + } + + public void setMacId(String macId) { + this.macId = macId; + } + + public String getFileContent() { + return fileContent; + } + + public void setFileContent(String fileContent) { + this.fileContent = fileContent; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getSwVersion() { + return swVersion; + } + + public void setSwVersion(String swVersion) { + this.swVersion = swVersion; + } + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } +}