7348b868f0c12ac0ed289c4ba4b341cc8d5820ff
[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 javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.Id;
23 import javax.persistence.Table;
24
25
26 @Entity
27 @Table(name = "catalog_service_template_table")
28 @JsonIgnoreProperties(ignoreUnknown = true)
29 public class ServiceTemplateData extends BaseData {
30   @Id
31   @Column(name = "SERVICETEMPLATEID")
32   private String serviceTemplateId;
33   @Column(name = "TEMPLATENAME")
34   private String templateName;
35
36   @Column(name = "TYPE")
37   private String type;
38
39   @Column(name = "VENDOR")
40   private String vendor;
41
42   @Column(name = "VERSION")
43   private String version;
44
45   @Column(name = "CSARID")
46   private String csarId;
47
48   @Column(name = "INPUTS")
49   private String inputs;
50
51   @Column(name = "DOWNLOADURI")
52   private String downloadUri;
53
54   @Column(name = "ROWDATA")
55   private String rowData;
56   @Column(name = "OPERATIONS")
57   private String operations;
58
59   @Column(name = "METADATA")
60   private String metadata;
61
62   @Column(name = "SERVICETEMPLATEORIGINALID")
63   private String serviceTemplateOriginalId;
64
65   public String getRowData() {
66     return rowData;
67   }
68
69   public void setRowData(String rowData) {
70     this.rowData = rowData;
71   }
72
73   public String getOperations() {
74     return operations;
75   }
76
77   public void setOperations(String operations) {
78     this.operations = operations;
79   }
80
81   public String getTemplateName() {
82     return templateName;
83   }
84
85   public void setTemplateName(String templateName) {
86     this.templateName = templateName;
87   }
88
89   public String getType() {
90     return type;
91   }
92
93   public void setType(String type) {
94     this.type = type;
95   }
96
97   public String getVendor() {
98     return vendor;
99   }
100
101   public void setVendor(String vendor) {
102     this.vendor = vendor;
103   }
104
105   public String getVersion() {
106     return version;
107   }
108
109   public void setVersion(String version) {
110     this.version = version;
111   }
112
113   public String getCsarId() {
114     return csarId;
115   }
116
117   public void setCsarId(String csarId) {
118     this.csarId = csarId;
119   }
120
121   public String getInputs() {
122     return inputs;
123   }
124
125   public void setInputs(String inputs) {
126     this.inputs = inputs;
127   }
128
129   public String getDownloadUri() {
130     return downloadUri;
131   }
132
133   public void setDownloadUri(String downloadUri) {
134     this.downloadUri = downloadUri;
135   }
136
137   public void setServiceTemplateId(String serviceTemplateId) {
138     this.serviceTemplateId = serviceTemplateId;
139   }
140
141   public String getServiceTemplateId() {
142     return serviceTemplateId;
143   }
144
145   public String getMetadata() {
146     return metadata;
147   }
148
149   public void setMetadata(String metadata) {
150     this.metadata = metadata;
151   }
152
153   public String getServiceTemplateOriginalId() {
154     return serviceTemplateOriginalId;
155   }
156
157   public void setServiceTemplateOriginalId(String serviceTemplateOriginalId) {
158     this.serviceTemplateOriginalId = serviceTemplateOriginalId;
159   }
160 }