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 javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.Id;
23 import javax.persistence.Table;
26 @Table(name = "catalog_node_template_table")
27 @JsonIgnoreProperties(ignoreUnknown = true)
28 public class NodeTemplateData extends BaseData {
31 @Column(name = "NODETEMPLATEID")
32 private String nodeTemplateId;
33 @Column(name = "NAME")
36 @Column(name = "SERVICETEMPLATEID")
37 private String serviceTemplateId;
39 @Column(name = "TYPE")
42 @Column(name = "PROPERTIES")
43 private String properties;
45 @Column(name = "RELATIONSHIPS")
46 private String relationShips;
48 public String getName() {
52 public void setName(String name) {
56 public String getServiceTemplateId() {
57 return serviceTemplateId;
60 public void setServiceTemplateId(String serviceTemplateId) {
61 this.serviceTemplateId = serviceTemplateId;
64 public String getType() {
68 public void setType(String type) {
72 public String getProperties() {
76 public void setProperties(String properties) {
77 this.properties = properties;
80 public String getRelationShips() {
84 public void setRelationShips(String relationShips) {
85 this.relationShips = relationShips;
88 public void setNodeTemplateId(String nodeTemplateId) {
89 this.nodeTemplateId = nodeTemplateId;
92 public String getNodeTemplateId() {
93 return nodeTemplateId;