Little jOOQ trick to get a List of POJOs

This took a little research. The idea is to obtain a List of POJOs generated by jOOQ using the related DAO.






In this case, we generated the PostDao and the Post POJO with jOOQ's generator. The trick is to use the mapper() method defined in the DAO to generate the List of Post instead of Result<Record>.

No hay comentarios:

Publicar un comentario