/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.workspacecatalog;
import javax.persistence.*;
@Entity
@Table(name = "WORKSPACE_NOTIFICATION")
public class NotificationEntity {
private String notificationId;
private String gatewayId;
private String title;
private String notificationMessage;
private long creationTime;
private long publishedTime;
private long expirationTime;
private String priority;
@Id
@Column(name = "NOTIFICATION_ID")
public String getNotificationId() {
return notificationId;
}
public void setNotificationId(String notificationId) {
this.notificationId = notificationId;
}
@Column(name = "GATEWAY_ID")
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
@Column(name = "TITLE")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Lob
@Column(name = "NOTIFICATION_MESSAGE")
public String getNotificationMessage() {
return notificationMessage;
}
public void setNotificationMessage(String notificationMessage) {
this.notificationMessage = notificationMessage;
}
@Column(name = "CREATION_TIME")
public long getCreationTime() {
return creationTime;
}
public void setCreationTime(long creationTime) {
this.creationTime = creationTime;
}
@Column(name = "PUBLISHED_TIME")
public long getPublishedTime() {
return publishedTime;
}
public void setPublishedTime(long publishedTime) {
this.publishedTime = publishedTime;
}
@Column(name = "EXPIRATION_TIME")
public long getExpirationTime() {
return expirationTime;
}
public void setExpirationTime(long expirationTime) {
this.expirationTime = expirationTime;
}
@Column(name = "PRIORITY")
public String getPriority() {
return priority;
}
public void setPriority(String priority) {
this.priority = priority;
}
}