2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.mso.db.catalog.beans;
25 import java.io.Serializable;
27 public class VfModuleToHeatFiles implements Serializable {
29 private int vfModuleId;
30 private int heatFilesId;
31 public static final long serialVersionUID = -1322322139926390329L;
33 public VfModuleToHeatFiles() {
37 public int getVfModuleId() {
38 return this.vfModuleId;
40 public void setVfModuleId(int vfModuleId) {
41 this.vfModuleId = vfModuleId;
44 public int getHeatFilesId() {
45 return this.heatFilesId;
47 public void setHeatFilesId(int heatFilesId) {
48 this.heatFilesId = heatFilesId;
52 public String toString () {
53 StringBuilder sb = new StringBuilder ();
54 sb.append ("VF_MODULE_ID=" + this.vfModuleId);
55 sb.append (", HEAT_FILES_ID=" + this.heatFilesId);
56 return sb.toString ();
60 public boolean equals (Object o) {
61 if (!(o instanceof VfModuleToHeatFiles)) {
67 VfModuleToHeatFiles vmthf = (VfModuleToHeatFiles) o;
68 if (vmthf.getVfModuleId() == this.getVfModuleId() && vmthf.getVfModuleId() == this.getVfModuleId()) {
75 public int hashCode () {
76 // hash code does not have to be a unique result - only that two objects that should be treated as equal
77 // return the same value. so this should work.
79 result = this.vfModuleId + this.heatFilesId;