Notification.java
package at.htl.beeyond.entity;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import javax.persistence.*;
@Entity
public class Notification extends PanacheEntityBase {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
private User user;
private String message;
private String details;
private NotificationStatus status;
private String entityName;
private Long entityId;
public Notification() {
}
public Notification(User user, String message, String details, NotificationStatus status, String entityName, Long entityId) {
this.user = user;
this.message = message;
this.details = details;
this.status = status;
this.entityName = entityName;
this.entityId = entityId;
}
public Long getId() {
return id;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
this.details = details;
}
public NotificationStatus getStatus() {
return status;
}
public void setStatus(NotificationStatus status) {
this.status = status;
}
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
public Long getEntityId() {
return entityId;
}
public void setEntityId(Long entityId) {
this.entityId = entityId;
}
}