This is now implemented on GitHub master and will be included in jOOQ 3.0
Also, I will probably enhance Record.from(Object), to detect the
argument type and properly handle loading data from Iterables, arrays,
and Maps:
https://github.com/jOOQ/jOOQ/issues/1987

Cheers
Lukas

2012/11/29 Lukas Eder <[email protected]>:
>> Is there a complementary Record.fromMap() that does the opposite of
>> Record.intoMap() ?
>
> Good point, no that doesn't exist yet. It would be consistent with
> Record.from() / Record.into(), which is implemented for POJOs /
> arrays, etc
> I'll add it to the roadmap. Should be simple to implement:
> https://github.com/jOOQ/jOOQ/issues/1986
>
>> Or can the record.from() handle a map as a parameter?
>
> No, it cannot. Maybe it should? I'll think about it.
>
>> I'd
>> obviously like to do converting back and forth from maps :)
>
> I had recently thought about whether I should let Record implement Map
> (similar to Result implementing List). But from a generic typesafety
> point of view, that might not be such a good idea...

Reply via email to