1 /*******************************************************************************
2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 *******************************************************************************/
22 package org.onap.dcaegen2.services.sonhms.entity;
24 import java.sql.Timestamp;
26 import javax.persistence.Column;
27 import javax.persistence.Entity;
28 import javax.persistence.Id;
29 import javax.persistence.Table;
31 import org.hibernate.annotations.CreationTimestamp;
34 @Table(name = "PERFORMANCE_NOTIFICATIONS")
35 public class PerformanceNotifications {
38 @Column(name = "notification", columnDefinition = "text")
39 private String notification;
42 @Column(name = "created_at", columnDefinition = "timestamp")
43 private Timestamp createdAt;
45 public PerformanceNotifications() {
49 public PerformanceNotifications(String notification, Timestamp createdAt) {
50 this.notification = notification;
51 this.createdAt = createdAt;
54 public String getNotification() {
58 public void setNotification(String notification) {
59 this.notification = notification;
62 public Timestamp getCreatedAt() {
66 public void setCreatedAt(Timestamp createdAt) {
67 this.createdAt = createdAt;