An effective mix of the material necessary to pass the exam with the perspective of real-world application. More Testimonials »

Java Persistence with Spring

Delivery Options

Class Date and Time Price Pricing Information
$1,900.00
or 4 vouchers vouchers
$1,900.00 or 4 vouchers vouchers
$1,900.00 or 4 vouchers vouchers

Class Description

Class Overview

This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight "IoC" (inversion-of-control) container and to manage persistent objects using Spring's support for DAOs and transaction control. Spring is a far-reaching framework that aims to facilitate all sorts of Java development, including every level of multi-tier distributed systems. Here we focus on the Core and persistence modules, with a brief stop in the Web module to support hands-on exercises in Spring persistence for web applications.

Spring supports a wide range of persitence technology: everything from raw JDBC to sophisticated object/relational mapping tools such as Hibernate and TopLink, and also the new Java standard for those tools, the Java Persistence API. We work at either end of this spectrum, with exercises on improving JDBC code with Spring templates and transaction management, and also how to integrate JPA entities and DAOs into Spring applications and to deploy Spring transactions over JPA.

Class Goals

  • Understand the scope, purpose, and architecture of Spring
  • Use Spring's bean factories and application contexts to declare application components, rather than hard-coding their states and lifecycles
  • Use dependency injection to further control object relationships from outside the Java code base
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  • Create validators for business objects, and associate them for application-level and unit-testing uses
  • 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
  • Declare and enforce transaction requirements using Spring

Class Outline

  1. Introduction to Spring
    1. Overview of Spring
      1. Java EE: The Good, The Bad, and the Ugly
      2. Enter the Framework
      3. Spring Value Proposition
      4. The Spring Container
      5. Web Applications
      6. Persistence Support
      7. Aspect-Oriented Programming
      8. The Java EE Module(s)
      9. Integrating Other Frameworks
    2. The Container
      1. JavaBeans, Reconsidered
      2. The Factory Pattern
      3. Inversion of Control
      4. XML View: Declaring Beans
      5. Java View: Using Beans
      6. Singletons and Prototypes
    3. Instantiation and Configuration
      1. Configuring Through Properties
      2. Configuration Namespaces
      3. The p: Notation
      4. Bean (Configuration) Inheritance
      5. Configuring Through Constructors
      6. Bean Post-Processors
      7. Lifecycle Hooks
      8. Integrating Existing Factory Code
    4. Dependency Injection
      1. Complex Systems
      2. Assembling Object Graphs
      3. Dependency Injection
      4. Single and Multiple Relationships
      5. The Utility Schema
      6. Bean Aliases
      7. Inner Beans
      8. Autowiring
      9. Auto-Detecting Beans
      10. @Autowired Properties
      11. Best Practices with Spring 2.5 Annotations
    5. Assembling Object Models
      1. Collections and Maps
      2. Support for Generics
      3. The Spring Utility Schema (util:)
      4. Autowiring to Multiple Beans
      5. Order of Instantiation
      6. Bean Factory vs. Application Context
    6. Validation
      1. Validators
      2. The Errors Object
      3. ValidationUtils
      4. Error Messages and Localization
      5. Nested Property Paths
  2. Web Applications
    1. The Web Module
      1. Spring in Flux
      2. Servlets and JSPs: What's Missing
      3. The MVC Pattern
      4. The Front Controller Pattern
      5. DispatcherServlet
      6. A Request/Response Cycle
      7. The Strategy Pattern
      8. JavaBeans as Web Components
      9. Web Application Contexts
      10. Handler Mappings
      11. "Creating" a Model
      12. View Resolvers
  3. Persistence
    1. Templates and DAOs
      1. The DAO Pattern
      2. The DaoSupport Hierarchy
      3. The DataAccessException Hierarchy
      4. JDBC DAOs
      5. JdbcTemplate and RowMapper
    2. Working with JPA
      1. Object/Relational Mapping
      2. The Java Persistence API
      3. Blending Spring and JPA
      4. Entity Manager Factories
      5. Configuration Issues
    3. Transactions
      1. Transaction Managers
      2. Transaction Advice
      3. AOP vs. Annotations
      4. JDBC Transaction Manager
      5. JPA Transaction Manager

Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following areas is required:

  • Java programming
  • Basic knowledge of XML

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Locations
Compare Us
Watch 3-minute Demo Video
of Live Online Training:
Learn the benefits of online training with Webucator
Webucator is a Registered Education Provider (R.E.P.) approved by PMI to issue professional development units (PDUs) for our training courses.

Free Webinars

A Crash Course in CSS

Wed, 3/21 1:00 PM EST

Recent Blog Articles

Java Frameworks: Why You Should Care

Posted on May 14, 2010 by rsakowski

In previous articles, I talked a lot about the Model/View/Controller design pattern. Using it is recommended for all programming ...

© Webucator, Inc. All rights reserved. | Toll Free: 1-877-932-8228 | From outside the USA: 315-849-2724| Fax: 315-849-2723