package com.sequenceiq.periscope.domain;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
@Entity
public class Notification {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "notification_generator")
@SequenceGenerator(name = "notification_generator", sequenceName = "sequence_table")
private long id;
private String[] target;
@Enumerated(EnumType.STRING)
private NotificationType type;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String[] getTarget() {
return target;
}
public void setTarget(String[] target) {
this.target = target;
}
public NotificationType getType() {
return type;
}
public void setType(NotificationType type) {
this.type = type;
}
}