18 package org.turro.dossier.issue;
20 import java.util.TreeSet;
21 import org.turro.attach.db.AttachPU;
22 import org.turro.attach.entity.Attachment;
23 import org.turro.commentit.CommentItUtil;
24 import org.turro.dossier.db.DossierPU;
25 import org.turro.dossier.entity.Issue;
26 import org.turro.dossier.entity.IssueComment;
27 import org.turro.dossier.entity.IssuePredecessor;
28 import org.turro.jpa.Dao;
29 import org.turro.sql.SqlClause;
30 import org.turro.starit.StarItUtil;
31 import org.turro.voteit.VoteItUtil;
44 private void addDetail(
Issue issue) {
47 addAll(SqlClause.select(
"c").from(
"IssueComment c")
48 .where().equal(
"c.issue", issue)
50 addAll(SqlClause.select(
"p").from(
"IssuePredecessor p")
51 .where().notEqual(
"creation",
null)
53 .equal(
"p.source", issue)
54 .or().equal(
"p.target", issue)
57 addAll(SqlClause.select(
"a").from(
"Attachment a")
58 .where().equal(
"a.path", path)
static String getObjectPath(Object object)
IssueDetailSet(Issue issue)
static List< StarIt > allStars(Object entity)
static List< VoteIt > allVotes(String path)