Serializable
, Cloneable
, Comparable<Entity>
, Entity
public class Notification extends AbstractEntity implements Comparable<Entity>
An Notification can only belong to 1 Issue (composition).
Modifier and Type | Class | Description |
---|---|---|
static class |
Notification.IssueUserRoleComparator |
Compares by properties issue, user, role.
|
static class |
Notification.Role |
|
static class |
Notification.Type |
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
Modifier and Type | Field | Description |
---|---|---|
static Comparator<Notification> |
ISSUE_USER_ROLE_COMPARATOR |
|
static Comparator<Notification> |
TYPE_COMPARATOR |
|
static Comparator<Notification> |
USER_COMPARATOR |
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
Constructor | Description |
---|---|
Notification() |
Default constructor (required by Hibernate).
|
Notification(User user,
Issue issue,
int role) |
Deprecated.
use Role instead int for role
|
Notification(User user,
Issue issue,
Notification.Role role) |
Modifier and Type | Method | Description |
---|---|---|
Issue |
getIssue() |
|
int |
getNotificationRole() |
Deprecated.
use getRole instead
|
Notification.Role |
getRole() |
|
User |
getUser() |
|
void |
setIssue(Issue issue) |
|
void |
setNotificationRole(int role) |
Deprecated.
|
void |
setRole(Notification.Role role) |
|
void |
setUser(User user) |
|
String |
toString() |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
compareTo
public static final Comparator<Notification> TYPE_COMPARATOR
public static final Comparator<Notification> USER_COMPARATOR
public static final Comparator<Notification> ISSUE_USER_ROLE_COMPARATOR
public Notification()
PENDING: should be private
so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
public Notification(User user, Issue issue, int role)
public Notification(User user, Issue issue, Notification.Role role)
public Issue getIssue()
public void setIssue(Issue issue)
public User getUser()
public void setUser(User user)
public int getNotificationRole()
public void setNotificationRole(int role)
public Notification.Role getRole()
public void setRole(Notification.Role role)
Copyright © 2002–2019 itracker. All rights reserved.