Hi,

The ResultQuery class has various fetch methods. There is fetchOne which
has the following two variants in addition to many other -

R fetchOne();
<E> E fetchOneInto(Class<? extends E> type);

The equivalent fetchAny method is,

R fetchAny();

But for some cases, I find that it would be helpful if there was the
following method as well,

<E> E fetchAnyInto(Class<? extends E> type);

Mainly for the cases where there can be multiple records returned by a
query and you are interested only in the first one.

I was just curious regarding why this is not present and if there is a
workaround. Will be good to know.

Thanks,
gaurav

-- 
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