Serializable
, Cloneable
, Comparable<Entity>
, Entity
public class IssueHistory extends AbstractEntity
An IssueHistory can only belong to 1 Issue (composition).
PENDING : what's the difference with an IssueActivity ?
Modifier and Type | Class | Description |
---|---|---|
static class |
IssueHistory.Status |
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
Constructor | Description |
---|---|
IssueHistory() |
Default constructor (required by Hibernate).
|
IssueHistory(Issue issue,
User creator) |
|
IssueHistory(Issue issue,
User creator,
String description,
int status) |
Modifier and Type | Method | Description |
---|---|---|
String |
getDescription() |
|
Issue |
getIssue() |
|
int |
getStatus() |
|
User |
getUser() |
|
void |
setDescription(String description) |
|
void |
setIssue(Issue issue) |
|
void |
setStatus(int status) |
|
void |
setUser(User creator) |
|
String |
toString() |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
public IssueHistory()
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 Issue getIssue()
public void setIssue(Issue issue)
public User getUser()
public void setUser(User creator)
public int getStatus()
public void setStatus(int status)
public String getDescription()
public void setDescription(String description)
Copyright © 2002–2019 itracker. All rights reserved.