@Override
 public Query<PostEntity> posts() {
   QueryBuilder<PostEntity> queryBuilder = module.newQueryBuilder(PostEntity.class);
   return module
       .currentUnitOfWork()
       .newQuery(queryBuilder)
       .orderBy(templateFor(PostEntity.class).postedAt(), Order.DESCENDING);
 }
Example #2
0
 public Query<Board> boards() {
   return module.newQueryBuilder(Board.class).newQuery(self.boards());
 }