Skip to content

Commit

Permalink
Merge pull request #35 from participating-online/feature/community-co…
Browse files Browse the repository at this point in the history
…mments

Added Community Comments
  • Loading branch information
jgrim authored Nov 25, 2023
2 parents 59cbdfd + 603cef8 commit d618aae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public List<Comment> allCommentsBySearchCriteria(CommentSearchCriteria commentSe
commentReadJoin.on(cb.equal(commentReadJoin.get("person"), commentSearchCriteria.person()));
}

if(commentSearchCriteria.community() != null){
predicates.add(cb.equal(commentTable.get("community"), commentSearchCriteria.community()));
}

cq.where(predicates.toArray(new Predicate[0]));

// @todo determine sort/pagination
Expand Down

0 comments on commit d618aae

Please sign in to comment.