instantiate and terminate servce
[usecase-ui/server.git] / server / src / main / java / org / onap / usecaseui / server / bean / AlarmsInformation.java
1 /*
2  * Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
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.onap.usecaseui.server.bean;
17
18 import java.io.Serializable;
19 import java.util.Date;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
25
26
27 @Entity
28 @Table(name="alarms_additionalinformation")
29 public class AlarmsInformation implements Serializable{
30         
31         @Id
32         @Column(name = "name")
33         private String name;
34         
35         @Column(name = "value")
36         private String value;
37         
38         @Id
39         @Column(name = "eventId")
40         private String eventId;
41         
42         @Column(name = "createTime")
43         private Date  createTime;
44         
45         @Column(name = "updateTime")
46         private Date updateTime;
47
48         public String getName() {
49                 return name;
50         }
51
52         public void setName(String name) {
53                 this.name = name;
54         }
55
56         public String getValue() {
57                 return value;
58         }
59
60         public void setValue(String value) {
61                 this.value = value;
62         }
63
64         public String getEventId() {
65                 return eventId;
66         }
67
68         public void setEventId(String eventId) {
69                 this.eventId = eventId;
70         }
71
72         public Date getCreateTime() {
73                 return createTime;
74         }
75
76         public void setCreateTime(Date createTime) {
77                 this.createTime = createTime;
78         }
79
80         public Date getUpdateTime() {
81                 return updateTime;
82         }
83
84         public void setUpdateTime(Date updateTime) {
85                 this.updateTime = updateTime;
86         }
87         
88         
89 }