c6da6a72f1b6be34cd05405a0eb17dfa7f51a2f0
[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_node_template_table")
27 @JsonIgnoreProperties(ignoreUnknown = true)
28 public class NodeTemplateData extends BaseData {
29
30   @Id
31   @Column(name = "NODETEMPLATEID")
32   private String nodeTemplateId;
33   @Column(name = "NAME")
34   private String name;
35
36   @Column(name = "SERVICETEMPLATEID")
37   private String serviceTemplateId;
38
39   @Column(name = "TYPE")
40   private String type;
41
42   @Column(name = "PROPERTIES")
43   private String properties;
44
45   @Column(name = "RELATIONSHIPS")
46   private String relationShips;
47
48   public String getName() {
49     return name;
50   }
51
52   public void setName(String name) {
53     this.name = name;
54   }
55
56   public String getServiceTemplateId() {
57     return serviceTemplateId;
58   }
59
60   public void setServiceTemplateId(String serviceTemplateId) {
61     this.serviceTemplateId = serviceTemplateId;
62   }
63
64   public String getType() {
65     return type;
66   }
67
68   public void setType(String type) {
69     this.type = type;
70   }
71
72   public String getProperties() {
73     return properties;
74   }
75
76   public void setProperties(String properties) {
77     this.properties = properties;
78   }
79
80   public String getRelationShips() {
81     return relationShips;
82   }
83
84   public void setRelationShips(String relationShips) {
85     this.relationShips = relationShips;
86   }
87
88   public void setNodeTemplateId(String nodeTemplateId) {
89     this.nodeTemplateId = nodeTemplateId;
90   }
91
92   public String getNodeTemplateId() {
93     return nodeTemplateId;
94   }
95
96
97 }