Menu

Query Single Record with SelectList In JooqTemplate
πŸ“°

Query Single Record with SelectList In JooqTemplate

DEV Community: javaΒ·ts5432Β·9 days ago
#SntBTt90
#devtojava#devto#dev#name#tablelist
Long article (959 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Using JooqTemplate requires no code generation and no XML configuration.

Add Dependency

gradle:

implementation 'net.sf.sprtool:sprtool-jooq:1.7.0'

Enter fullscreen mode

Exit fullscreen mode

maven:

<dependency> <groupId> net.sf.sprtool </groupId> <artifactId> sprtool-jooq </artifactId> <version> 1.7.0 </version> </dependency>

Enter fullscreen mode

Exit fullscreen mode

Inject JooqTemplate

import static net . sf . sprtool . jooq . JooqFields . * ;

import net . sf . sprtool . jooq . JooqTemplate ;

@Autowired private JooqTemplate jt ;

Enter fullscreen mode

Exit fullscreen mode

Using JooqTemplate

TableList and SelectList

JooqFields.TL(...) builds a TableList : accepts multiple tables and supports aliases, e.g.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.