fab23d6cd83fe214c3c8a531dea5daf7e99e5ddb
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openo.commontosca.catalog.db.entity;
17
18 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
19
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.Id;
23 import javax.persistence.Table;
24
25 @Entity
26 @Table(name = "catalog_model_substitution_mapping_table")
27 @JsonIgnoreProperties(ignoreUnknown = true)
28 public class ServiceTemplateMappingData extends BaseData {
29
30   @Id
31   @Column(name = "MAPPINGID")
32   private String mappingId;
33
34   @Column(name = "NODETYPE")
35   private String nodeType;
36
37   @Column(name = "SERVICETEMPLATEID")
38   private String serviceTemplateId;
39
40   @Column(name = "REQUIREMENTS")
41   private String requirements;
42
43   @Column(name = "CAPABILITIES")
44   private String capabilities;
45
46   public String getMappingId() {
47     return mappingId;
48   }
49
50   public void setMappingId(String mappingId) {
51     this.mappingId = mappingId;
52   }
53
54   public String getNodeType() {
55     return nodeType;
56   }
57
58   public void setNodeType(String nodeType) {
59     this.nodeType = nodeType;
60   }
61
62   public String getServiceTemplateId() {
63     return serviceTemplateId;
64   }
65
66   public void setServiceTemplateId(String serviceTemplateId) {
67     this.serviceTemplateId = serviceTemplateId;
68   }
69
70   public String getRequirements() {
71     return requirements;
72   }
73
74   public void setRequirements(String requirements) {
75     this.requirements = requirements;
76   }
77
78   public String getCapabilities() {
79     return capabilities;
80   }
81
82   public void setCapabilities(String capabilities) {
83     this.capabilities = capabilities;
84   }
85
86 }