2 * Copyright 2016 [ZTE] and others.
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.
17 package org.openo.commontosca.catalog.db.entity;
19 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
27 @Table(name = "catalog_node_template_table")
28 @JsonIgnoreProperties(ignoreUnknown = true)
29 public class NodeTemplateData extends BaseData {
32 @Column(name = "NODETEMPLATEID")
33 private String nodeTemplateId;
34 @Column(name = "NAME")
37 @Column(name = "SERVICETEMPLATEID")
38 private String serviceTemplateId;
40 @Column(name = "TYPE")
43 @Column(name = "PROPERTIES")
44 private String properties;
46 @Column(name = "RELATIONSHIPS")
47 private String relationShips;
49 public String getName() {
53 public void setName(String name) {
57 public String getServiceTemplateId() {
58 return serviceTemplateId;
61 public void setServiceTemplateId(String serviceTemplateId) {
62 this.serviceTemplateId = serviceTemplateId;
65 public String getType() {
69 public void setType(String type) {
73 public String getProperties() {
77 public void setProperties(String properties) {
78 this.properties = properties;
81 public String getRelationShips() {
85 public void setRelationShips(String relationShips) {
86 this.relationShips = relationShips;
89 public void setNodeTemplateId(String nodeTemplateId) {
90 this.nodeTemplateId = nodeTemplateId;
93 public String getNodeTemplateId() {
94 return nodeTemplateId;