92cfa4ff7cf441f3083c1385cf867fe3100a6953
[ccsdk/apps.git] / ms / neng / src / main / java / org / onap / ccsdk / apps / ms / neng / persistence / entity / ServiceParameter.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : CCSDK.apps
4  * ================================================================================
5  * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.ccsdk.apps.ms.neng.persistence.entity;
22
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25 import javax.persistence.Column;
26 import javax.persistence.Entity;
27 import javax.persistence.Id;
28 import javax.persistence.Table;
29
30 /**
31  * General parameters controlling this micro-service. 
32  */
33 @Entity
34 @Table(name = "SERVICE_PARAMETER")
35 public class ServiceParameter implements Serializable {
36
37     private static final long serialVersionUID = 1L;
38
39     Integer serviceParameterId;
40     String name;
41     String value;
42     Timestamp createdTime;
43     String createdBy;
44     Timestamp lastUpdatedTime;
45     String lastUpdatedBy;
46
47     /**
48      * Primary key for this entity.
49      */
50     @Id
51     @Column(name = "SERVICE_PARAMETER_ID")
52     public Integer getServiceParameterId() {
53         return serviceParameterId;
54     }
55
56     public void setServiceParameterId(Integer serviceParameterId) {
57         this.serviceParameterId = serviceParameterId;
58     }
59
60     /**
61      * The name of the parameter.
62      */
63     @Column(name = "NAME")
64     public String getName() {
65         return name;
66     }
67
68     public void setName(String name) {
69         this.name = name;
70     }
71
72     /**
73      * The value of the parameter.
74      */
75     @Column(name = "VALUE")
76     public String getValue() {
77         return value;
78     }
79
80     public void setValue(String value) {
81         this.value = value;
82     }
83
84     /**
85      * Time-stamp for this entity creation.
86      */
87     @Column(name = "CREATED_TIME")
88     public Timestamp getCreatedTime() {
89         return createdTime;
90     }
91
92     public void setCreatedTime(Timestamp createdTime) {
93         this.createdTime = createdTime;
94     }
95
96     /**
97      * Identifier for the entity creation.
98      */
99     @Column(name = "CREATED_BY")
100     public String getCreatedBy() {
101         return createdBy;
102     }
103
104     public void setCreatedBy(String createdBy) {
105         this.createdBy = createdBy;
106     }
107
108     /**
109      * Time-stamp for this entity update.
110      */
111     @Column(name = "LAST_UPDATED_TIME")
112     public Timestamp getLastUpdatedTime() {
113         return lastUpdatedTime;
114     }
115
116     public void setLastUpdatedTime(Timestamp lastUpdatedTime) {
117         this.lastUpdatedTime = lastUpdatedTime;
118     }
119
120     /**
121      * Identifier for this entity update.
122      */
123     @Column(name = "LAST_UPDATED_BY")
124     public String getLastUpdatedBy() {
125         return lastUpdatedBy;
126     }
127
128     public void setLastUpdatedBy(String lastUpdatedBy) {
129         this.lastUpdatedBy = lastUpdatedBy;
130     }
131 }