b245f2b8165badb96669af5007de232673965cbe
[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 javax.persistence.Entity;
20 import javax.persistence.Column;
21 import javax.persistence.GeneratedValue;
22 import javax.persistence.GenerationType;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
25
26 @Entity
27 @Table(name = "vnfm_resource_record")
28 public class VnfmResourceInfo {
29         @Id
30         @GeneratedValue(strategy = GenerationType.AUTO)
31         private int id;
32
33         @Column(name = "type")
34         private ResourceType type;
35         
36         @Column(name = "resourceDefinitionId")
37         private String resourceDefinitionId;
38         
39         @Column(name = "vdu")
40         private String vdu;
41
42         @Column(name = "status")
43         private String status;
44         
45         public int getId() {
46                 return id;
47         }
48
49         public void setId(int id) {
50                 this.id = id;
51         }
52
53         public ResourceType getType() {
54                 return type;
55         }
56
57         public void setType(ResourceType type) {
58                 this.type = type;
59         }
60
61         public String getResourceDefinitionId() {
62                 return resourceDefinitionId;
63         }
64
65         public void setResourceDefinitionId(String resourceDefinitionId) {
66                 this.resourceDefinitionId = resourceDefinitionId;
67         }
68
69         public String getVdu() {
70                 return vdu;
71         }
72
73         public void setVdu(String vdu) {
74                 this.vdu = vdu;
75         }
76
77         public String getStatus() {
78                 return status;
79         }
80
81         public void setStatus(String status) {
82                 this.status = status;
83         }
84
85 }