Are you tired of Hibernate? Is GORM is too heavy for your current project? Do you like having more control over your SQL? Do you like flexible DSLs? Try JOOQ!
JOOQ (Java Object Oriented Querying) is light-weight alternative to classic data access solutions or ORMs like Hibernate, JPA, JDBC, and GORM. JOOQ's goal is to give the developer a flexible DSL for building typesafe, database agnostic SQL queries, and attempts to convince the developer of a ‘database-first’ approach to building their application. In this talk we’ll quickly present an introduction to JOOQ from a high level, discuss its features, and see several examples of how we’re using JOOQ to great effect with many Spring Boot and Ratpack apps within our platform.
45. THIRDCHANNEL @svpember
jOOQ (Intro)
• Library for SQL interaction
• For people not afraid of SQL
• The jOOQ authors LOVE SQL
• Database should drive internal models
59. THIRDCHANNEL @svpember
jOOQ (Features)
• Type-Safe SQL
• Fluent API
• Code Generation
• Active Record
• Full SQL Support
• Native Support of Stored Procedures
• Open Source and Free
89. THIRDCHANNEL @svpember
What We’ve Learned
• Code Generation is Not Mandatory
• jOOQ Does Not Manage Transactions For You!
• Import / Export Direct to CSV
90. THIRDCHANNEL @svpember
What We’ve Learned
• Code Generation is Not Mandatory
• jOOQ Does Not Manage Transactions For You!
• Import / Export Direct to CSV
• Easy & Clear Logging
91.
92. THIRDCHANNEL @svpember
What We’ve Learned
• Code Generation is Not Mandatory
• jOOQ Does Not Manage Transactions For You!
• Import / Export Direct to CSV
• Easy & Clear Logging
• Binders / Casting
96. THIRDCHANNEL @svpember
What We’ve Learned
• Code Generation is Not Mandatory
• jOOQ Does Not Manage Transactions For You!
• Import / Export Direct to CSV
• Easy & Clear Logging
• Binders / Casting
• jOOQ & CompileStatic