Hey, sorry for reviving this thread but i noticed some strange behaviour.
I get an exception:
No matching constructor found on type class models.MyRow for record
org.jooq.impl.DefaultRecordMapper
when using .fetch(r -> r.into(new MyRow(helper)));
Why would it be looking for a constructor when I'm passing in instance of
MyRow?
This issue is resolved when I add a default constructor:
public MyRow() { }
Again, strange since I'm passing an already constructed instance to the
record mapper. Could you please shed some light on this?
On Wednesday, January 2, 2019 at 6:59:21 AM UTC-6, Lukas Eder wrote:
>
> Yes of course, thanks for the correction
>
> On Sat, Dec 29, 2018 at 8:30 PM Max Kremer <[email protected]
> <javascript:>> wrote:
>
>> Hi
>>
>> Correction.
>>
>> .fetchInto(r -> r.into(new MyRow(helper)));
>> vs
>> .fetchInto(MyRow.class);
>>
>>
>> The RowMapper example above should read
>>
>> .fetch(r -> r.into(new MyRow(helper)));
>>
>>
>>
>>>> --
>> 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] <javascript:>.
>> 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.