Do you know of any resources that describe building a data access layer using Spring's JdbcTemplate classes? I'm looking for something beyond the basics described in the Spring framework documentation.
+1
A:
If not the online docs, perhaps books will help. "Spring in Action", "Pro Spring", "Spring Recipes" - take your pick. I'm not sure how much detail you're looking for, though. I fear that you'll be disappointed.
duffymo
2009-01-28 01:05:38
Thanks. Spring in Action has little beyond the 'best practices' section of the Spring docs. I'll look into the other books.
Mike Sickler
2009-01-28 01:14:13
The 2 apress books you mention have a lot of good code that give examples of using SQLFunction, SQLUpdate, MappingSqlQuery, etc. This is more or less what I was looking for. Cheers.
Mike Sickler
2009-01-30 15:27:01
A:
I'm not really sure of exactly what it is you are looking for, but I basically create a DAO class that has a SimpleJDBCTemplate as a property. It is set via dependency injection. The public methods of the DAO abstract the interaction with the SimpleJDBCTemplate.
bpapa
2009-01-28 04:11:11