public Page<Tag> findAll(List<SearchFilter> filters, Pageable pageable) { return tagDao.findAll(Specifications.fromFilters(filters, Tag.class), pageable); }
public Tag findOne(long ownerId, String title) { List<SearchFilter> filters = Lists.newArrayList(); filters.add(new SearchFilter("owner.id", Operator.EQ, ownerId)); filters.add(new SearchFilter("title", Operator.EQ, title)); return tagDao.findOne(Specifications.fromFilters(filters, Tag.class)); }