Fix bugs and formatting issues
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / entity / PerformanceNotifications.java
1 /*******************************************************************************
2  *  ============LICENSE_START=======================================================
3  *  son-handler
4  *  ================================================================================
5  *   Copyright (C) 2019 Wipro Limited.
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
22 package org.onap.dcaegen2.services.sonhms.entity;
23
24 import java.sql.Timestamp;
25
26 import javax.persistence.Column;
27 import javax.persistence.Entity;
28 import javax.persistence.Id;
29 import javax.persistence.Table;
30
31 import org.hibernate.annotations.CreationTimestamp;
32
33 @Entity
34 @Table(name = "PERFORMANCE_NOTIFICATIONS")
35 public class PerformanceNotifications {
36         
37         @Id
38     @Column(name = "notification", columnDefinition = "text")
39     private String notification;
40
41     @CreationTimestamp
42     @Column(name = "created_at", columnDefinition = "timestamp")
43     private Timestamp createdAt;
44
45     public PerformanceNotifications() {
46
47     }
48
49     public PerformanceNotifications(String notification, Timestamp createdAt) {
50         this.notification = notification;
51         this.createdAt = createdAt;
52     }
53
54     public String getNotification() {
55         return notification;
56     }
57
58     public void setNotification(String notification) {
59         this.notification = notification;
60     }
61
62     public Timestamp getCreatedAt() {
63         return createdAt;
64     }
65
66     public void setCreatedAt(Timestamp createdAt) {
67         this.createdAt = createdAt;
68     }
69
70
71 }