Create seed code of svnfm vnfmdriver
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / com / nokia / vfcadaptor / beans / VnfmJobExecutionInfo.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16  
17 package com.nokia.vfcadaptor.beans;
18
19 import java.io.Serializable;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import javax.persistence.Table;
27
28
29 @Entity
30 @Table(name = "vnfm_job_execution_record")
31 public class VnfmJobExecutionInfo implements Serializable{
32         private static final long serialVersionUID = -2880159539002942812L;
33
34         @Id
35         @GeneratedValue(strategy=GenerationType.AUTO)
36         private long jobId;
37         
38         @Column(name = "vnfmExecutionId")
39         private String vnfmExecutionId;
40         
41         @Column(name = "vnfInstanceId")
42         private String vnfInstanceId;
43         
44         @Column(name = "vnfmInterfceName")
45         private String vnfmInterfceName;
46         
47         @Column(name = "status")
48         private String status;
49
50         public long getJobId() {
51                 return jobId;
52         }
53
54         public void setJobId(long jobId) {
55                 this.jobId = jobId;
56         }
57
58         public String getVnfmExecutionId() {
59                 return vnfmExecutionId;
60         }
61
62         public void setVnfmExecutionId(String vnfmExecutionId) {
63                 this.vnfmExecutionId = vnfmExecutionId;
64         }
65
66         public String getVnfInstanceId() {
67                 return vnfInstanceId;
68         }
69
70         public void setVnfInstanceId(String vnfInstanceId) {
71                 this.vnfInstanceId = vnfInstanceId;
72         }
73
74         public String getVnfmInterfceName() {
75                 return vnfmInterfceName;
76         }
77
78         public void setVnfmInterfceName(String vnfmInterfceName) {
79                 this.vnfmInterfceName = vnfmInterfceName;
80         }
81
82         public String getStatus() {
83                 return status;
84         }
85
86         public void setStatus(String status) {
87                 this.status = status;
88         }
89         
90         
91 }