JDBI is a pretty neat framework for a light-touch integration with JDBC in your application. t’s SQL Object API lets you annotate an interface with straight SQL queries like so:
1 2 3 4
then get dbi to create you an instance of this dao which will magically prepare and execute the statements you’ve bound to the methods in the interface.
But try supplying null as a parameter to your dao, and you’ll get a nasty surprise:Read on →