Our great sponsors
-
JDBI
The Jdbi library provides convenient, idiomatic access to relational databases in Java and other JVM technologies such as Kotlin, Clojure or Scala.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I really like JDBI. It’s thin enough that it lets you do anything SQL can do, but opinionated enough to provide a sane, sturdy, structured approach to working with a database.
Time ago, I've started the build of my own query builder, which covers cases like your. Query result is generated in programmatic way and the initial intention was oi use with JDBI . If you want to look it, code is in https://github.com/henryx/sequel
I liked this one https://ormlite.com/
I would ignore the hipster jOOQ and similar and start with Spring Data JDBC https://spring.io/projects/spring-data-jdbc
You could use https://github.com/OpenGamma/ElSql for this. It's compatible with NamedParameterJdbcTemplate and allows for enough dynamism to solve common problems without rewriting your entire query.
Related posts
- H2 Database – CVE getting flagged by automated scans
- Is it just me, or does the Spring Framework lead to hard-to-maintain code and confusion with annotations?
- Are there any poplar alternatives to siesta?
- Can someone tell me a good resource to learn and practice JDBC in java?
- Why people don't like Java?