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 java.io.Serializable;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import javax.persistence.Table;
28 @Table(name = "catalog_node_template_table")
29 @JsonIgnoreProperties(ignoreUnknown = true)
30 public class NodeTemplateData extends BaseData implements Serializable{
32 private static final long serialVersionUID = -2512216362645538471L;
34 @Column(name = "NODETEMPLATEID")
35 private String nodeTemplateId;
36 @Column(name = "NAME")
39 @Column(name = "SERVICETEMPLATEID")
40 private String serviceTemplateId;
42 @Column(name = "TYPE")
45 @Column(name = "PROPERTIES")
46 private String properties;
48 @Column(name = "RELATIONSHIPS")
49 private String relationShips;
51 public String getName() {
55 public void setName(String name) {
59 public String getServiceTemplateId() {
60 return serviceTemplateId;
63 public void setServiceTemplateId(String serviceTemplateId) {
64 this.serviceTemplateId = serviceTemplateId;
67 public String getType() {
71 public void setType(String type) {
75 public String getProperties() {
79 public void setProperties(String properties) {
80 this.properties = properties;
83 public String getRelationShips() {
87 public void setRelationShips(String relationShips) {
88 this.relationShips = relationShips;
91 public void setNodeTemplateId(String nodeTemplateId) {
92 this.nodeTemplateId = nodeTemplateId;
95 public String getNodeTemplateId() {
96 return nodeTemplateId;