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=========================================================
20 package org.openecomp.mso.db.catalog.beans;
22 import java.io.Serializable;
23 import java.sql.Timestamp;
25 import com.openpojo.business.annotation.BusinessKey;
27 public class ServiceToAllottedResources implements Serializable {
30 private String serviceModelUuid = null;
32 private String arModelCustomizationUuid = null;
33 private Timestamp created = null;
35 public static final long serialVersionUID = -1322322139926390329L;
37 public ServiceToAllottedResources() {
41 public String getServiceModelUuid() {
42 return this.serviceModelUuid;
44 public void setServiceModelUuid(String serviceModelUuid) {
45 this.serviceModelUuid = serviceModelUuid;
47 public String getArModelCustomizationUuid() {
48 return this.arModelCustomizationUuid;
50 public void setArModelCustomizationUuid(String arModelCustomizationUuid) {
51 this.arModelCustomizationUuid = arModelCustomizationUuid;
53 public Timestamp getCreated() {
56 public void setCreated(Timestamp created) {
57 this.created = created;
61 public boolean equals(Object o) {
62 if (!(o instanceof ServiceToAllottedResources)) {
68 ServiceToAllottedResources star = (ServiceToAllottedResources) o;
69 if (star.getArModelCustomizationUuid().equals(this.getArModelCustomizationUuid())
70 && star.getServiceModelUuid().equals(this.getServiceModelUuid())) {
77 public int hashCode() {
79 int code = this.arModelCustomizationUuid == null ? 0 : this.arModelCustomizationUuid.hashCode();
80 code += this.serviceModelUuid == null ? 0 : this.serviceModelUuid.hashCode();
86 public String toString() {
87 return "serviceModelUuid=" + this.serviceModelUuid + "arModelCustomizationUuid=" + this.arModelCustomizationUuid;