If you have a query that returns Record1<Integer> and you execute the query 
using fetchOptional(), how can you provide an alternative value in the 
.orElse() method of the optional?

i.e.

Integer result = 
select(FOO.MY_INT).from(FOO).where(FOO.BAR.eq("baz")).fetchOptional().orElse(new
 
Record1<Integer>() { -1 });

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