Serializable
, Cloneable
, Comparable<Entity>
, Entity
public class IssueActivity extends AbstractEntity
An IssueActivity can only belong to 1 Issue (composition).
The natural key of an IssueActivity is issue + user + type + createDate.
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
Constructor | Description |
---|---|
IssueActivity() |
Default constructor (required by Hibernate).
|
IssueActivity(Issue issue,
User user,
IssueActivityType type) |
Creates a new instance with a
notificationSent flag set to
false and a creation and last modified time stamp set to the
current time. |
Modifier and Type | Method | Description |
---|---|---|
IssueActivityType |
getActivityType() |
|
String |
getDescription() |
|
Issue |
getIssue() |
|
boolean |
getNotificationSent() |
|
User |
getUser() |
|
void |
setActivityType(IssueActivityType type) |
|
void |
setDescription(String description) |
|
void |
setIssue(Issue issue) |
|
void |
setNotificationSent(boolean sent) |
|
void |
setUser(User user) |
|
String |
toString() |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
public IssueActivity()
PENDING: should be private
so that it can only be used by
Hibernate, to ensure that issue
, user
and
type
, which form an instance's identity, are always
initialized.
public IssueActivity(Issue issue, User user, IssueActivityType type)
notificationSent
flag set to
false and a creation and last modified time stamp set to the
current time.public Issue getIssue()
public void setIssue(Issue issue)
public User getUser()
public void setUser(User user)
public void setActivityType(IssueActivityType type)
public IssueActivityType getActivityType()
public String getDescription()
public void setDescription(String description)
public boolean getNotificationSent()
public void setNotificationSent(boolean sent)
Copyright © 2002–2019 itracker. All rights reserved.