dsl.select(SYSTEM_PLUGIN.NAME)//
.from(SYSTEM_PLUGIN) //
.join(WORKGROUP_SYSTEM_PLUGIN)// .on(SYSTEM_PLUGIN.ID.eq(WORKGROUP_SYSTEM_PLUGIN.SYSTEM_PLUGIN_ID)) //
.where(WORKGROUP_SYSTEM_PLUGIN.WORKGROUP_ID.eq(workgroupId))
.fetch() //
.getValues(SYSTEM_PLUGIN.NAME)
.stream()
.map(name -> new SystemPlugin(name))
.collect(toList())
dsl.select(SYSTEM_PLUGIN.NAME)//
.from(SYSTEM_PLUGIN) //
.join(WORKGROUP_SYSTEM_PLUGIN)// .on(SYSTEM_PLUGIN.ID.eq(WORKGROUP_SYSTEM_PLUGIN.SYSTEM_PLUGIN_ID)) //
.where(WORKGROUP_SYSTEM_PLUGIN.WORKGROUP_ID.eq(workgroupId))
.fetch() //
.getValues(SYSTEM_PLUGIN.NAME, name -> new SystemPlugin(name))fetch(r -> new SystemPlugin(r.get(SYSTEM_PLUGIN.name)));
--
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAA1VVpGWStBoD%2BEdhyDWJGZU5xw7z6WZUvDP%3DC15u9HPph3dyg%40mail.gmail.com.
Hi Daniele,Thanks for your message.From an API design perspective, I'm not convinced we need this overload. Think of the implications this would have on API surface, because we would have to add similar overloads everywhere for consistency reasons.
Having said so, you could use a converter on your NAME column, to make that column of type Field<SystemPlugin>.
Or you use the existing getValues(?, Converter) methods.
Or you could usefetch(r -> new SystemPlugin(r.get(SYSTEM_PLUGIN.name)));
I hope this helps,Lukas
To unsubscribe from this group and stop receiving emails from it, send an email to jooq...@googlegroups.com.