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