Sergey,

>> 1. There is a method Record.into that copies values from Record to the
>> another bean with the same properties. But I  have not found reverse
>> operation ("copyFrom") in the Record. Does it have sense? Or better to use
>> something like BeanUtils.copyProperties?
>
> That's a very nice idea. I filed this as feature request #912:
> https://sourceforge.net/apps/trac/jooq/ticket/912

This is implemented on SVN trunk / Github
https://github.com/lukaseder/jOOQ/commit/94dee74799f60327f01a86b95083f8432a506ca9

The relevant API methods for this are

FactoryOperations:
 <R extends TableRecord<R>> R newRecord(Table<R> table, Object source);

Record:
void from(Object source);

This will only be available in jOOQ 2.0

Cheers
Lukas

Reply via email to