2 * Copyright 2016-2017, Nokia Corporation
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.db.bean;
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;
27 @Table(name = "vnfm_resource_record")
28 public class VnfmResourceInfo {
30 @GeneratedValue(strategy = GenerationType.AUTO)
33 @Column(name = "type")
34 private ResourceType type;
36 @Column(name = "resourceDefinitionId")
37 private String resourceDefinitionId;
42 @Column(name = "status")
43 private String status;
49 public void setId(int id) {
53 public ResourceType getType() {
57 public void setType(ResourceType type) {
61 public String getResourceDefinitionId() {
62 return resourceDefinitionId;
65 public void setResourceDefinitionId(String resourceDefinitionId) {
66 this.resourceDefinitionId = resourceDefinitionId;
69 public String getVdu() {
73 public void setVdu(String vdu) {
77 public String getStatus() {
81 public void setStatus(String status) {