1.1 --- a/src/main/java/de/uapcore/lightpit/entities/IssueComment.java Fri Oct 23 18:40:50 2020 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,85 +0,0 @@ 1.4 -package de.uapcore.lightpit.entities; 1.5 - 1.6 -import java.sql.Timestamp; 1.7 -import java.time.Instant; 1.8 -import java.util.Objects; 1.9 - 1.10 -public class IssueComment { 1.11 - 1.12 - private final Issue issue; 1.13 - private final int commentid; 1.14 - 1.15 - private User author; 1.16 - private String comment; 1.17 - 1.18 - private Timestamp created = Timestamp.from(Instant.now()); 1.19 - private Timestamp updated = Timestamp.from(Instant.now()); 1.20 - private int updatecount = 0; 1.21 - 1.22 - 1.23 - public IssueComment(int id, Issue issue) { 1.24 - this.commentid = id; 1.25 - this.issue = issue; 1.26 - } 1.27 - 1.28 - public Issue getIssue() { 1.29 - return issue; 1.30 - } 1.31 - 1.32 - public int getId() { 1.33 - return commentid; 1.34 - } 1.35 - 1.36 - public User getAuthor() { 1.37 - return author; 1.38 - } 1.39 - 1.40 - public void setAuthor(User author) { 1.41 - this.author = author; 1.42 - } 1.43 - 1.44 - public String getComment() { 1.45 - return comment; 1.46 - } 1.47 - 1.48 - public void setComment(String comment) { 1.49 - this.comment = comment; 1.50 - } 1.51 - 1.52 - public Timestamp getCreated() { 1.53 - return created; 1.54 - } 1.55 - 1.56 - public void setCreated(Timestamp created) { 1.57 - this.created = created; 1.58 - } 1.59 - 1.60 - public Timestamp getUpdated() { 1.61 - return updated; 1.62 - } 1.63 - 1.64 - public void setUpdated(Timestamp updated) { 1.65 - this.updated = updated; 1.66 - } 1.67 - 1.68 - public int getUpdateCount() { 1.69 - return updatecount; 1.70 - } 1.71 - 1.72 - public void setUpdateCount(int updatecount) { 1.73 - this.updatecount = updatecount; 1.74 - } 1.75 - 1.76 - @Override 1.77 - public boolean equals(Object o) { 1.78 - if (this == o) return true; 1.79 - if (o == null || getClass() != o.getClass()) return false; 1.80 - IssueComment that = (IssueComment) o; 1.81 - return commentid == that.commentid; 1.82 - } 1.83 - 1.84 - @Override 1.85 - public int hashCode() { 1.86 - return Objects.hash(commentid); 1.87 - } 1.88 -}