Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. // PostDao and Post are generated by jOOQ
  2.  
  3. @Autowired PostDao dao;
  4. @Autowired DSLContext dsl;
  5.  
  6. public List<Post> findAllByIdAndActive(UInteger id, Boolean active){
  7.     return dsl.selectFrom(POST)
  8.         .where(POST.ID.eq(id))
  9.         .and(POST.ACTIVE.eq(active))
  10.         .fetch()
  11.         .map(dao.mapper());
  12. }