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