This chapter discussed how to use Spring's support for JDBC, Hibernate, and JPA. You learned how
to configure a DataSource to connect to a database, and also how to use Spring's JdbcTemplate ,
HibernateTemplate , and JpaTemplate to rid your code of tedious boilerplate handling. You saw how to
use the utility base classes to build DAO classes with JDBC, Hibernate, and JPA, and also how to use
Spring's support for stereotype annotations and component scanning to easily build new DAOs and
Services with a minimum of XML.
In the next chapter, you will learn how to use transactions (i.e., for JMS or a DataSource ) with Spring
to help ensure consistent state.