Just been looking at the Spring framework for JDBC – it looks like there is a bit of a learning curve – and I’m still not able to find a nice up to date quick start Spring/JDBC tutorial of any quality!
Is there something lighter than Spring for basic JDBC operations – or has anyone got any good links for tutorials
Many thanks
Quite the opposite. JDBC support in Spring is very simple. Here is basic example:
JdbcTemplate and SimpleJdbcTemplate has lot of query methods you may find useful. For mapping rows to your objects, take a look at RowMapper and ParameterizedRowMapper < T >.
For your datasource you usually want to use some advanced DataSource with pooling support. For testing, simple BasicDataSource will do: