Hi,
not real problem, just a "Hey I was expeecting this method here but I
haven't found", so is there any reason why jooq Result.getValues() do not
accept a Functional interface?
Now I have to write:
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())
Instead of:
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))
Am I asking too much ?
Cheers
--
Daniele
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jooq-user/CAA1VVpGWStBoD%2BEdhyDWJGZU5xw7z6WZUvDP%3DC15u9HPph3dyg%40mail.gmail.com.