Consulting Training Blog Careers About Us Contact Us

Java Persistence with Spring Training

Course ID: CC-117B
Duration: 1 Days

Upcoming Classes

Sorry, nothing scheduled right now. Click the Get Notified button below to be alerted when a class is scheduled.

Get Notified

On Site/Private

Can't find a class that fits right for you? Contact us to inquire about scheduling your own private class

Contact Us


This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight, inversion-of-control container, and to build persistence components and application tiers using Spring's support for relational databases and transaction control.

Students build persistence code using the Spring DAO and ORM modules, using both JDBC and JPA, with Hibernate as the provider. We study both programmatic and declarative transaction control. The course concludes with a chapter on Spring's testing framework, with a focus on test-managed transactions.

Bring This Course To You

For groups of 5 or more, let Intertech bring this course to your location. Customized versions tailored towards your objectives are also available.

Learn More

Learning Objectives

  • Connect business objects to persistent stores using Spring's DAO and ORM modules
  • Simplify JDBC code using Spring templates
  • Integrate JPA entities and DAOs into Spring applications
  • Control transactions using Spring, either programmatically or declaratively
  • Develop effective unit tests using Spring's test framework


  • Understanding of Spring Core - Spring Framework Core is excellent preparation.
  • Basic knowledge of XML 


  • Understanding of Spring Core - Spring Framework Core is excellent preparation.
  • Basic knowledge of XML 

Course Outline

Persistence with JDBC

  • Reducing Code Complexity
  • The DataAccessException Hierarchy
  • JdbcTemplate
  • RowMapper<T> and ResultSetExtractor<T>
  • The DaoSupport Hierarchy
  • Capturing Generated Keys
  • Transaction Control
  • PlatformTransactionManager
  • TransactionTemplate
  • Isolation Levels
  • Transaction Propagation

Persistence with JPA

  • Object/Relational Mapping
  • The Java Persistence API
  • JpaDaoSupport and JpaTemplate
  • @PersistenceUnit and @PersistenceContext
  • Shared Entity Managers
  • Using <tx:annotation-driven>
  • The @Transactional Annotation
  • Isolation and Propagation
  • A Limitation of @Transactional
  • Understanding Entity States
  • Configuring JPA Without persistence.xml
  • Bean Validation in JPA
  • Optimistic Locking


  • Testability of Spring Applications
  • Dependency Injection
  • Mocking
  • SpringJUnit4ClassRunner
  • TestContext
  • @ContextConfiguration
  • Preserving Test Isolation
  • @DirtiesContext
  • AbstractTransactionalJUnit4SpringContextTests
  • Testing JPA Components
  • Mixing JPA and JDBC
  • TestTransaction
  • Profiles

Free Resources from Intertech

Free Tutorial: Spring Batch Admin

Free Book Chapter: Spring Web

Free Whitepaper: Spring 4 Meta Annotations