Update db process part
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / db / bean / VnfmResourceInfo.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 org.onap.vfc.nfvo.driver.vnfm.svnfm.db.bean;
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 @Entity
29 @Table(name="vnfm_resource_info")
30 public class VnfmResourceInfo implements Serializable {
31         private static final long serialVersionUID = -288015953900428312L;
32         @Id
33         @GeneratedValue(strategy = GenerationType.AUTO)
34         private int id;
35
36         @Column(name = "type")
37         private ResourceType type;
38         
39         @Column(name = "resource_definition_id")
40         private String resourceDefinitionId;
41         
42         @Column(name = "vdu")
43         private String vdu;
44
45         @Column(name = "status")
46         private String status;
47         
48         public int getId() {
49                 return id;
50         }
51
52         public void setId(int id) {
53                 this.id = id;
54         }
55
56         public ResourceType getType() {
57                 return type;
58         }
59
60         public void setType(ResourceType type) {
61                 this.type = type;
62         }
63
64         public String getResourceDefinitionId() {
65                 return resourceDefinitionId;
66         }
67
68         public void setResourceDefinitionId(String resourceDefinitionId) {
69                 this.resourceDefinitionId = resourceDefinitionId;
70         }
71
72         public String getVdu() {
73                 return vdu;
74         }
75
76         public void setVdu(String vdu) {
77                 this.vdu = vdu;
78         }
79
80         public String getStatus() {
81                 return status;
82         }
83
84         public void setStatus(String status) {
85                 this.status = status;
86         }
87
88 }