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 public class ServiceToNetworks implements Serializable {
27 // This maps to SERVICE.SERVICE_NAME_VERSION_ID / Service.serviceNameVersionId in SERVICE/Service table
28 private String serviceModelUuid;
29 // This maps to NETWORK_RESOURCE_CUSTOMIZATION.MODEL_CUSTOMIZATION_UUID / NetworkResourceCustomization.ModelCustomizationUuid
30 private String networkModelCustomizationUuid;
31 private Timestamp created;
32 public static final long serialVersionUID = -1322322139926390329L;
34 public ServiceToNetworks() {
38 public String getServiceModelUuid() {
39 return this.serviceModelUuid;
41 public void setServiceModelUuid(String serviceModelUuid) {
42 this.serviceModelUuid = serviceModelUuid;
45 public String getNetworkModelCustomizationUuid() {
46 return this.networkModelCustomizationUuid;
48 public void setNetworkModelCustomizationUuid(String networkCustomizationUuid) {
49 this.networkModelCustomizationUuid = networkCustomizationUuid;
52 public Timestamp getCreated() {
55 public void setCreated(Timestamp timestamp) {
56 this.created = timestamp;
60 public String toString() {
61 StringBuilder sb = new StringBuilder();
62 sb.append("ServiceToNetworks mapping: ");
63 sb.append("serviceModelUuid=" + this.serviceModelUuid);
64 sb.append(",networkModelCustomizationUuid=" + networkModelCustomizationUuid);