19 package org.turro.dossier.graph;
21 import java.util.Objects;
22 import org.turro.dossier.entity.Issue;
23 import org.turro.jpa.Dao;
24 import org.turro.util.Cached;
32 private final Long issueId;
35 this.issueId = issueId;
36 this.issue = Cached.instance(() -> dao.get().find(
Issue.class,
this.issueId));
40 this.issueId = issue.
getId();
41 this.issue = Cached.instance(issue);
50 private final Cached<Issue> issue;
61 hash = 17 * hash + Objects.hashCode(this.issueId);
73 if (getClass() != obj.getClass()) {
77 return Objects.
equals(this.issueId, other.issueId);
boolean equals(Object obj)
IssueItem(Cached< Dao > dao, Long issueId)