Hi, I've been using JDBI for the last few months on a new project--and it's been great! Because it was a new project creating and iterating on a lot of classes quickly, I found it useful to create a base "BaseJdbiDao<Model>" class that my other DAOs inherit with create/update/find/count methods that use queries derived from the bean properties of their respective models. I like that it lets me avoid having to write out all the basic SQL queries, while still using all the stuff I love about JDBI (POJO models, fast simple DAOs, etc...). And then as the project matures, it's really easy to replace/override methods one-by-one with custom per-dao sql.
I suspect this tooling of a BaseJdbiDao (perhaps paired with auto-generation of schema) would be helpful to other folks like myself who love using JDBI, but also like the convenience of auto-generating most of the sql at the beginning of projects.
My question is whether you think anyone else would find this useful (or if something like it already exists). Right now it's just successfully used in my 4-person open source project (
Github source for the BaseJdbiDao class), and I'm considering taking some time to package up just that functionality in its own library.
Thanks!
Devon