3630a13565bc6535ca37ae6c939a9f55f7133866
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 [ZTE] and others.
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
17 package org.openo.commontosca.catalog.db.entity;
18
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
25
26 @Entity
27 @Table(name = "catalog_node_template_table")
28 @JsonIgnoreProperties(ignoreUnknown = true)
29 public class NodeTemplateData extends BaseData {
30
31   @Id
32   @Column(name = "NODETEMPLATEID")
33   private String nodeTemplateId;
34   @Column(name = "NAME")
35   private String name;
36
37   @Column(name = "SERVICETEMPLATEID")
38   private String serviceTemplateId;
39
40   @Column(name = "TYPE")
41   private String type;
42
43   @Column(name = "PROPERTIES")
44   private String properties;
45
46   @Column(name = "RELATIONSHIPS")
47   private String relationShips;
48
49   public String getName() {
50     return name;
51   }
52
53   public void setName(String name) {
54     this.name = name;
55   }
56
57   public String getServiceTemplateId() {
58     return serviceTemplateId;
59   }
60
61   public void setServiceTemplateId(String serviceTemplateId) {
62     this.serviceTemplateId = serviceTemplateId;
63   }
64
65   public String getType() {
66     return type;
67   }
68
69   public void setType(String type) {
70     this.type = type;
71   }
72
73   public String getProperties() {
74     return properties;
75   }
76
77   public void setProperties(String properties) {
78     this.properties = properties;
79   }
80
81   public String getRelationShips() {
82     return relationShips;
83   }
84
85   public void setRelationShips(String relationShips) {
86     this.relationShips = relationShips;
87   }
88
89   public void setNodeTemplateId(String nodeTemplateId) {
90     this.nodeTemplateId = nodeTemplateId;
91   }
92
93   public String getNodeTemplateId() {
94     return nodeTemplateId;
95   }
96
97
98 }