Hi Rafael,

You can use one of the many "into(Class)" methods of jOOQ, for instance
ResultQuery.fetchInto(Class):
http://www.jooq.org/javadoc/latest/org/jooq/ResultQuery.html#fetchInto-java.lang.Class-

The implementation is backed by default by the DefaultRecordMapper, which
maps record values onto your Class by naming convention:
http://www.jooq.org/javadoc/latest/org/jooq/impl/DefaultRecordMapper.html

An example:

List<Children> return =
DSL.using(configuration)
   .select(CHILDREN.NAME, CHILDREN.AGE)
   .from(CHILDREN)
   .fetchInto(Children.class);


Hope this helps,
Lukas

2015-09-03 14:24 GMT+02:00 Rafael da Silva Monteiro Leite <
[email protected]>:

> Hi,
>
> I have one type of object 'children', where this object have a:
>
>      String name;
>      int age;
>
> My select JOOQ returns one list of name and age.
>
> How to get this list and to return of  my object type?
>
> List<Children> return = selectJooq;
>
> Sorry for my english.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to