示例#1
0
 public Page<Tag> findAll(List<SearchFilter> filters, Pageable pageable) {
   return tagDao.findAll(Specifications.fromFilters(filters, Tag.class), pageable);
 }
示例#2
0
 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));
 }