2 * Copyright 2016 ZTE 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.
16 package org.openo.commontosca.catalog.db.entity;
18 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.Id;
23 import javax.persistence.Table;
26 @Table(name = "catalog_model_substitution_mapping_table")
27 @JsonIgnoreProperties(ignoreUnknown = true)
28 public class ServiceTemplateMappingData extends BaseData {
31 @Column(name = "MAPPINGID")
32 private String mappingId;
34 @Column(name = "NODETYPE")
35 private String nodeType;
37 @Column(name = "SERVICETEMPLATEID")
38 private String serviceTemplateId;
40 @Column(name = "REQUIREMENTS")
41 private String requirements;
43 @Column(name = "CAPABILITIES")
44 private String capabilities;
46 public String getMappingId() {
50 public void setMappingId(String mappingId) {
51 this.mappingId = mappingId;
54 public String getNodeType() {
58 public void setNodeType(String nodeType) {
59 this.nodeType = nodeType;
62 public String getServiceTemplateId() {
63 return serviceTemplateId;
66 public void setServiceTemplateId(String serviceTemplateId) {
67 this.serviceTemplateId = serviceTemplateId;
70 public String getRequirements() {
74 public void setRequirements(String requirements) {
75 this.requirements = requirements;
78 public String getCapabilities() {
82 public void setCapabilities(String capabilities) {
83 this.capabilities = capabilities;