18 package org.turro.dossier.entity;
20 import java.util.Date;
21 import java.util.Objects;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.Temporal;
29 import javax.persistence.TemporalType;
30 import org.turro.i18n.I_;
40 @GeneratedValue(strategy=GenerationType.IDENTITY)
41 @Column(name=
"IDENTIFIER")
46 @Temporal(value = TemporalType.TIMESTAMP)
47 private java.util.Date creation;
68 this.creation = creation;
96 return "#" + target.getId() +
" " + target.getDescription() +
" " +
98 " #" + source.getId() +
" " + source.getDescription();
102 if(Objects.equals(source.getId(), issue.
getId())) {
104 }
else if(Objects.equals(target.getId(), issue.
getId())) {
111 if(Objects.equals(source.getId(), issue.
getId())) {
113 return "starts when this issue is resolved";
115 return "and this issue start together";
117 }
else if(Objects.equals(target.getId(), issue.
getId())) {
119 return "must be resolved to start this issue";
121 return "and this issue start together";
void setCreation(Date creation)
IssuePredecessorType getType()
void setSource(Issue source)
String getFullDescription()
void setTarget(Issue target)
Issue getCounterFor(Issue issue)
String getDescriptionFor(Issue issue)
void setType(IssuePredecessorType type)
static String byKey(String key)