2 * Copyright 2016 Huawei Technologies Co., Ltd.
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.openo.nfvo.vnfmadapter.service.entity;
19 import org.apache.commons.lang3.builder.ToStringBuilder;
20 import org.apache.commons.lang3.builder.ToStringStyle;
23 * Provide database class
29 * @version NFVO 0.5 Sep 3, 2016
35 private String version;
37 private String vnfdId;
39 private String vnfPackageId;
41 public String getId() {
45 public void setId(String id) {
49 public String getVersion() {
53 public void setVersion(String version) {
54 this.version = version;
57 public String getVnfdId() {
61 public void setVnfdId(String vnfdId) {
65 public String getVnfPackageId() {
69 public void setVnfPackageId(String vnfPackageId) {
70 this.vnfPackageId = vnfPackageId;
74 public String toString() {
75 return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
79 public int hashCode() {
82 result = prime * result + ((id == null) ? 0 : id.hashCode());
87 public boolean equals(Object obj) {
94 if(!(obj instanceof Vnfm)) {
97 if(getClass() != obj.getClass()) {
100 Vnfm other = (Vnfm)obj;
102 if(other.id != null) {
105 } else if(!id.equals(other.id)) {