2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package com.onap.sdnc.vnfbackupservice.model;
22 import java.io.Serializable;
23 import java.sql.Timestamp;
25 import javax.persistence.Column;
26 import javax.persistence.Entity;
27 import javax.persistence.GeneratedValue;
28 import javax.persistence.GenerationType;
29 import javax.persistence.Id;
30 import javax.persistence.Lob;
31 import javax.persistence.Table;
32 import org.springframework.data.annotation.CreatedDate;
33 import org.springframework.data.annotation.LastModifiedDate;
35 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
38 @Table(name = "vnfconfigdetails", schema = "testreports")
39 @JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
41 public class VnfConfigDetailsDB implements Serializable{
43 private static final long serialVersionUID = 1L;
46 @GeneratedValue(strategy = GenerationType.IDENTITY)
49 @Column(name = "vnfid")
52 @Column(name = "vnfversion")
53 private String vnfversion;
55 @Column(name = "vnfname")
56 private String vnfname;
58 @Column(name = "configinfo")
60 private String configinfo;
62 @Column(nullable = false, updatable = false,columnDefinition="DATETIME")
64 private Timestamp creationdate;
66 @Column(nullable = false,columnDefinition="DATETIME")
68 private Timestamp lastupdated;
70 @Column(name = "status")
77 public void setId(int id) {
81 public String getVnfid() {
85 public void setVnfid(String vnfid) {
89 public String getVnfversion() {
93 public void setVnfversion(String vnfversion) {
94 this.vnfversion = vnfversion;
97 public String getVnfname() {
101 public void setVnfname(String vnfname) {
102 this.vnfname = vnfname;
105 public String getConfiginfo() {
109 public void setConfiginfo(String configinfo) {
110 this.configinfo = configinfo;
113 public Timestamp getCreationdate() {
117 public void setCreationdate(Timestamp creationdate) {
118 this.creationdate = creationdate;
121 public int getStatus() {
125 public void setStatus(int status) {
126 this.status = status;
129 public Timestamp getLastupdated() {
133 public void setLastupdated(Timestamp lastupdated) {
134 this.lastupdated = lastupdated;