d95d46c6f132dcc57ece6b0e0b63b6a7d24b5f01
[portal.git] / ecomp-portal-widget-ms / widget-ms / src / main / java / org / onap / portalapp / widget / domain / MicroserviceParameter.java
1 package org.onap.portalapp.widget.domain;
2
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.GeneratedValue;
6 import javax.persistence.GenerationType;
7 import javax.persistence.Id;
8 import javax.persistence.Table;
9
10 /**
11  * TODO: moved all microservice-related code (domain, controller, service)
12  * from onap portal Backend to widget microservice
13  */
14 @Entity
15 @Table(name="EP_MICROSERVICE_PARAMETER")
16 public class MicroserviceParameter {
17         
18         @Id
19         @Column(name = "id")
20         @GeneratedValue(strategy=GenerationType.AUTO)
21         private Long id;
22
23         @Column(name = "service_id")
24         private long serviceId;
25
26         @Column(name = "para_key")
27         private String para_key;
28
29         @Column(name = "para_value")
30         private String para_value;
31
32         public Long getId() {
33                 return id;
34         }
35
36         public void setId(Long id) {
37                 this.id = id;
38         }
39
40         public long getServiceId() {
41                 return serviceId;
42         }
43
44         public void setServiceId(long serviceId) {
45                 this.serviceId = serviceId;
46         }
47
48         public String getPara_key() {
49                 return para_key;
50         }
51
52         public void setPara_key(String para_key) {
53                 this.para_key = para_key;
54         }
55
56         public String getPara_value() {
57                 return para_value;
58         }
59
60         public void setPara_value(String para_value) {
61                 this.para_value = para_value;
62         }
63
64         @Override
65         public String toString() {
66                 return "MicroserviceParameter [serviceId=" + serviceId + ", para_key=" + para_key + ", para_value=" + para_value
67                                 + "]";
68         }
69         
70 }