1 package org.onap.portalapp.widget.domain;
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 import javax.validation.constraints.Digits;
10 import javax.validation.constraints.Size;
13 import org.hibernate.validator.constraints.SafeHtml;
16 * TODO: moved all microservice-related code (domain, controller, service)
17 * from onap portal Backend to widget microservice
20 @Table(name="EP_MICROSERVICE_PARAMETER")
23 public class MicroserviceParameter {
27 @GeneratedValue(strategy=GenerationType.IDENTITY)
28 @Digits(integer = 11, fraction = 0)
31 @Column(name = "service_id")
32 @Digits(integer = 11, fraction = 0)
33 private long serviceId;
35 @Column(name = "para_key")
38 private String para_key;
40 @Column(name = "para_value")
43 private String para_value;
46 public String toString() {
47 return "MicroserviceParameter [serviceId=" + serviceId + ", para_key=" + para_key + ", para_value=" + para_value