NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / SdncReports / SdncReportsDao / src / main / java / com / onap / sdnc / reports / model / PreTestConfig.java
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : SDNC-FEATURES
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
10 *
11 *     http://www.apache.org/licenses/LICENSE-2.0
12 *
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=========================================================
19 */
20 package com.onap.sdnc.reports.model;
21
22 import java.io.Serializable;
23 import java.util.Date;
24
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.JoinColumn;
31 import javax.persistence.ManyToOne;
32 import javax.persistence.Table;
33 import javax.persistence.Temporal;
34 import javax.persistence.TemporalType;
35
36 @Entity
37 @Table(name = "pretestconfig")
38 public class PreTestConfig implements Serializable{
39         
40         private static final long serialVersionUID = -3009157732242241606L;
41         @Id
42         @GeneratedValue(strategy = GenerationType.AUTO)
43         @Column(name = "testid")
44         private long testId ;
45
46         @Column(name = "testname")
47         private String testName;
48                 
49         @Column(name = "result")
50         private String result;
51         
52         @Column(name = "execuationdetails")
53         private String execuationDetails;
54         
55         @Column(name = "timestamp")
56         @Temporal(TemporalType.DATE)
57         private Date timestamp;
58         
59         @ManyToOne
60         @JoinColumn(name="deviceid",nullable=false)
61         private DeviceConfig device;
62         
63         public PreTestConfig() 
64         {
65         }
66
67         public long getTestId() {
68                 return testId;
69         }
70
71         public void setTestId(long testId) {
72                 this.testId = testId;
73         }
74
75         public String getTestName() {
76                 return testName;
77         }
78
79         public void setTestName(String testName) {
80                 this.testName = testName;
81         }
82
83         public DeviceConfig getDevice() {
84                 return device;
85         }
86
87         public void setDevice(DeviceConfig device) {
88                 this.device = device;
89         }
90
91         public String getResult() {
92                 return result;
93         }
94
95         public void setResult(String result) {
96                 this.result = result;
97         }
98
99         public String getExecuationDetails() {
100                 return execuationDetails;
101         }
102
103         public void setExecuationDetails(String execuationDetails) {
104                 this.execuationDetails = execuationDetails;
105         }
106
107         public Date getTimestamp() {
108                 return timestamp;
109         }
110
111         public void setTimestamp(Date timestamp) {
112                 this.timestamp = timestamp;
113         }
114
115         @Override
116         public String toString() {
117                 return "PreTestConfig [testId=" + testId + ", testName=" + testName + ", result=" + result
118                                 + ", execuationDetails=" + execuationDetails + ", timestamp=" + timestamp + ", device=" + device + "]";
119         }               
120 }