Comment
Comment by Xorlev
For those of us on Java, I've grown to love http://jdbi.org/. JDBI has a lot of features that are convenient (e.g. auto-mapping of columns to a POJO), but synthesizes DAOs for you from interfaces annotated with SQL queries, e.g.
And allows you to plug in providers for mixing in Optional types, PGgeometries, whatever you can fit into an interface.