When using JPA you get the ability to use annotations to specify the mappings between beans/properties and tables/columns. However, for my application JPA is overkill, so I'm using Spring's JDBCTemplate capabilities.
With Spring's SimpleJdbcInsert (for example), the framework can match column names to property names for you, but ONLY if the column names match the property names exactly.
I have a database with underscore-delimited column names that match camel-case bean property names. What I want to do is specify this correspondence as annotation. Ideally it would look something like this:
I spent several hours searching the web yesterday but didn't find anything. I'd rather not write boilerplate mapping code if it can be done with annotations.
Does anything exist that works with plain JDBC templates?