2013/9/11 Ryan How <[email protected]>

> Just a very simple request. I haven't looked thoroughly, but Record.from
> seems to return void. If it returned itself then it would eliminate a
> couple of lines of code here and there for me.
>
> eg.
>
> myMethod(new MyRecord().from(pojo));
>
> I know it's only really minor, and it's an expensive operation, and I
> should probably be doing it in another way lots of the time, and I don't
> usually like doing inline new or passing method results to methods inline,
> but it would make the odd bit of a code a bit more compact :)
>

What a nicely expressed plea :-)

Changing void to something "more meaningful" can only be done once per
method. In this case, it certainly appears useful, specifically because
more specific from() methods could be chained:
http://www.jooq.org/javadoc/latest/org/jooq/Record.html#from(java.lang.Object,
org.jooq.Field...)

record.from(o1, FIELD_1)

      .from(o2, FIELD_2)


I have registered #2740
https://github.com/jOOQ/jOOQ/issues/2740

Cheers
Lukas

-- 
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/groups/opt_out.

Reply via email to