Seminar Web Application Development Using Spring, Hibernate and JPA Seminar

Presented by Hands-On Technology Transfer

Hands On Technology Transfer Computer Training

Bring this seminar on-site to your facility for groups of 10 or more.

This course provides a comprehensive introduction to JPA (the Java Persistence API), the Spring and Hibernate open source frameworks as well as Web Services and AJAX.

Course Description

This course provides a comprehensive introduction to JPA (the Java Persistence API), the Spring and Hibernate open source frameworks as well as Web Services and AJAX. Suitable for both Spring3/Hibernate3 and Spring4/Hibernate4, the course includes coverage of the core Spring and Hibernate capabilities, as well as the integration capabilities provided by Spring.

This course introduces techniques for using the many new and powerful capabilities that Spring4 supports. It includes complete coverage of the three main configuration styles (@Configuration, @Component, XML), and guidelines for their usage. It also covers more advanced capabilities such as support for JDBC and persistence frameworks like Hibernate, Spring declarative transactions, and Spring integration with JEE Web technologies.

The course covers all important capabilities of the Hibernate open source object/relational persistence and query service for Java. Coverage includes developing persistent classes in Java, as well as using associations/relationships, inheritance, polymorphism, composition and collections. It also covers fundamentals of JPA (the Java Persistence API) including JPA Annotations and JPQL (Java Persistence Query Language).

Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency. Attendees build working Spring/Hibernate applications utilizing the Eclipse IDE, providing a knowledge foundation applicable to all major development environments.

Students requiring an introduction to JEE Web Development, JDBC, JNDI, and JSP as well as Spring and Hibernate, may want to take the Web Application Development Using JEE, Frameworks, Web Services and AJAX class instead.

Course Prerequisites

Java SE programming experience and an understanding of object-oriented design principles. Fundamental knowledge of XML, HTML, and JavaScript is helpful but not required.

What You Will Learn

  • The core principles of Spring and of Dependency Injection (DI)/Inversion of Control
  • Using the Spring core module and DI to configure and wire application objects (Beans) together
  • Using the different types of metadata (XML, @Component, and @Configuration)
  • The complete capabilities of the core module
  • Using the ORM (Object-Relational Mapping) module to integrate Spring with technologies such as Hibernate or JPA
  • Spring's transaction support
  • Integration of Spring with Java EE Web applications
  • The features and benefits of Hibernate
  • How to architect applications using the Hibernate framework
  • Structuring code using Hibernate protocols
  • Using Hibernate Mapping to map persistent objects to the database
  • Working with collections and associations
  • Using Hibernate's versioning support
  • Mapping inheritance hierarchies using Hibernate
  • Working with Hibernate Queries, HQL, and Criteria
  • Hibernate transaction support
  • The relationship between Hibernate and the Java Persistence API (JPA)
  • How to architect and code using JPA2
  • Exploiting AJAX integration
  • Exploiting Web services


Course Overview

Introduction to Spring
  • Overview of Spring Technology
    • Challenges for Modern Applications
    • Motivation for Spring
    • Spring Architecture
    • The Spring Framework API
  • Spring Fundamentals
    • Managing Beans
    • Inversion of Control/IoC
    • Dependency Injection/DI
    • Configuration Metadata
      • Configuring Beans (XML)
  • The Spring Container
    • Function of the Spring Container
    • ApplicationContext Overview
      • ClassPathXmlApplicationContext
      • FileSystemXmlApplicationContext
      • AnnotationConfigApplicationContext
    • API and Usage
  • Dependencies and Dependency Injection (DI)
    • Examining Dependencies
    • Dependency Inversion
    • Dependency Injection (DI) in Spring
      • Basic Configuration and Usage
Configuration in Depth
  • Annotation Driven Configuration
    • JSR 330 (@Named) and Spring (@Component) annotation styles
    • @Named/@Component, @Inject/@Autowired, @Repository, @Service
    • Configuring Beans and Autowiring with Annotations
    • Enabling Annotations - context:component-scan
    • Annotation Pros and Cons
  • Java Based Configuration (@Configuration)
    • Overview of Code-Centric Configuration
    • @Configuration and @Bean
    • Dependency Injection
    • Resolving Dependencies on Other Beans
      • Injecting Configuration Classes
    • Pros and Cons
  • Integrating Configuration Types
    • Choosing a Configuration Style
    • Integrating Configuration Styles
    • Importing: @Import
    • Scanning with @Configuration Style
  • Bean Scope and Lifecycle
    • Bean Scope Defined
      • Singleton, Prototype and Other Scopes
    • Configuring Scope
    • Bean Creation Lifecycle
      • Lifecycle Callbacks
    • BeanPostProcessor and Event Handling
Wiring in Depth
  • Value Injection
    • Configuring Value Properties
      • Property Conversions
    • Externalizing Values in Properties Files
  • Constructor Injection
    • Constructor Injection Overview
    • Configuration - @Configuration and XML
    • p: and c: Namespaces for XML Configuration
  • Qualifiers and Domain Specific Language (DSL)
    • Limitations of Autowiring
    • Qualifiers and DSL
    • Creating and Using an Annotation-Based DSL for Bean Configuration
    • Benefits of Qualifiers for Bean Configuration
  • Profiles
    • Profiles Overview
    • Configuring Profiles (XML and @Configuration)
    • Activating Profiles
  • Introduction to SpEL
Introduction to Hibernate
  • Issues with Persistence Layers and Object-Relational Mapping (ORM)
  • Hibernate Overview and Benefits
  • Hibernate Architecture
  • Configuring Hibernate
    • hibernate.cfg.xml File
    • Connection Properties
    • Database Dialect
    • SessionFactory
    • Configuration and Session
  • Mapping a Class
    • Persistent Entity Class
    • Hibernate Mapping File
    • Mapping the Entity Class
    • Primary keys: ID property, Generated ID
    • Hibernate Type System
  • Working with Sessions and Persistent Objects
  • Logging: hibernate.show_sql,
  • log4j Overview and Configuration for Hibernate
Spring/Hibernate Integration
  • Overview of Spring Database Support
  • Configuring a DataSource
  • Using Contextual Sessions
    • Spring/Hibernate Configuration with LocalSessionFactoryBean and SessionFactory
    • Creating Spring/Hibernate DAO Classes Using Contextual Sessions
    • Overview of Template Approach
Updates and Queries
  • Inserting, Updating and Deleting Entities
  • HQL - Hibernate Query Language Fundamentals
  • The Query Interface
  • Creating and Working with Queries
    • Named Queries
    • Projection Queries
    • Aggregate Queries
Transaction (TX) Management
  • Hibernate Transaction Management
    • Transaction Overview and Transactions in Hibernate
    • Hibernate Transaction API (in Managed and Non-Managed Environments)
  • Intro to Spring Transaction Management
    • Spring Transaction Managers
    • Spring Declarative TX Management
    • Spring TX Scope and Propagation
    • Spring TX Attributes (REQUIRED, SUPPORTS, etc)
  • XML Configuration of Spring Transactions
    • Specifying Advice, TX Attributes, and Methods
    • Linking Advice with Pointcuts
    • Benefits of XML Configuration of TX Behavior
The Hibernate Persistence Lifecycle
  • The Lifecycle of Managed Objects
  • Persistent, Transient, and Detached Objects
  • The Persistence (Session) Context (Lifespan, Relation to Managed Objects, Propagation)
  • Contextual Sessions
  • Synchronization to the Database
  • The Session as Cache
  • Optimistic Locking/Versioning
    • Detached Objects and Optimistic Locking
    • Versioning Overview and Using Versioning
    • Locking Objects
  • Object Relationship Overview
  • Mapping Collections of Value Objects
  • Entity Relationships: 1-N, N-1, N-N, 1-1
  • Mapping Entity Relationships
  • Uni and Bi-Directional Relationships
  • The Relationship "Inverse"
  • Cascading Over Relationships
  • Queries Across Relationships
    • Lazy Loading vs. Eager Loading
  • Inheritance Mapping
    • Entity Inheritance with Hibernate
    • Table-per-Class Mapping
    • Table-per-Subclass Mapping
    • Table-per-Concrete Class Mapping
Spring Web Integration
  • Integrating Spring with Java EE Web Apps
    • ContextLoaderListener
    • WebApplicationContext
    • Using Spring Beans in Wep App Controller Logic
Hibernate Additional Topics
  • Components and Multi-Table Mapping
  • equals() and hashCode()
  • Caching and Efficiency
  • Design Considerations
Hibernate and JPA (Java Persistence API)
  • Overview of the Java Persistence API (JPA)/EJB 3
  • Relationship Between JPA and Hibernate
  • Mapping Entities with JPA Annotations
  • The EntityManager, Persistence Context and Persistence Unit
  • Working with Transactions
    • EntityTransaction, Managed and Unmanaged Environments
  • Inserts and Updates
  • JPQL - Java Persistence Query Language
  • Versioning
  • Relationships
Introduction to AJAX
  • AJAX Architecture and Capabilities
    • Client Side
    • Server Side
  • Circumventing the Page Reload Paradigm
  • CSS, HTML and AJAX
  • JavaScript and DOM
  • XMLHttpRequest Object
    • readyState and responseXML Properties
  • Making AJAX Asynchronous Calls
  • AJAX Function Calling Conventions
  • Response Handling with JavaScript
  • Browser Compatibility Issues
  • Server-Side and Client-Side AJAX
Java and AJAX
  • Callback Functions/Methods
  • Built-In Objects
  • Parsing AJAX Responses
  • XML and JSON Response Formats
  • Servlet Code to Handle AJAX Requests
  • Server Side Persistence
  • AJAX Patterns and Best Practices
  • Limitations of AJAX
  • Debugging AJAX
Adding AJAX to Existing Web Applications
  • Issues Adding AJAX to Existing Apps
  • Dealing with Asynchronous Responses
  • Cross Browser Libraries and Frameworks
  • Working with AJAX Toolkits
    • Dojo Toolkit
    • Prototype
    • DWR (Direct Web Remoting)
    • Google Web Toolkit
  • AJAX and REST Design Compatibility Issues
  • Security Issues
Web Services on the Server Side
  • Overview of Web Services
  • Advantages of Web Services
  • Creating a Web Service
  • Deploying a Web Services
  • Requirements for a JAX-WS Web Service Endpoint Implementation Class
  • The Web Service Endpoint Implementation Class
  • Working with WSDL Files
  • Web Service Interoperability
Web Services on the Client Side
  • Consuming a Web Service
  • Client Side Artifacts
  • JAX-WS Clients
  • Java/WSDL Mapping
  • RESTful Web Services
  • RESTful Web Services in Java

Course Benefits

  • Course materials include student guide, hands-on lab manual and USB flash drive for examples and lab work
  • Students receive a certificate of completion at the end of class
  • Students can retake any portion of a class that has been completed, within 12 months at no extra cost
  • There are no registration fees or cancellation fees


More Seminar Information

Hands-On Technology Transfer
Hands On Technology Transfer Computer Training


This course provides a comprehensive introduction to JPA (the Java Persistence API), the Spring and Hibernate open source frameworks as well as Web Services and AJAX.

Delivery Method

Seminar Seminar

Also Available As

On-Site Training On-Site Training

Who Should Attend

Web Programmers

Search similar training
Email this page
Print this document

Dates and Locations

Indianapolis, IN
6/1/2020 - 6/5/2020
Tuition: $2795

Springfield, IL
6/1/2020 - 6/5/2020
Tuition: $2795

Schaumburg, IL
6/1/2020 - 6/5/2020
Tuition: $2795

Chicago, IL
6/1/2020 - 6/5/2020
Tuition: $2795

Des Moines, IA
6/1/2020 - 6/5/2020
Tuition: $2795

see all dates/locations


Frequently Asked

Payment Options
Bill Me/Invoice
Credit Card

Fax Form

Select a date from the list at the bottom of the page for specific information about that class.

Other Information

All Date/Location Information

California (Find training in California)
10/19/2020-10/23/2020 in Bakersfield, CA         Find a seminar in Bakersfield CA
10/19/2020-10/23/2020 in Fresno, CA         Find a seminar in Fresno CA
10/19/2020-10/23/2020 in Modesto, CA         Find a seminar in Modesto CA
10/19/2020-10/23/2020 in Oakland, CA         Find a seminar in Oakland CA
10/19/2020-10/23/2020 in Sacramento, CA         Find a seminar in Sacramento CA
10/19/2020-10/23/2020 in San Francisco, CA         Find a seminar in San Francisco CA
10/19/2020-10/23/2020 in San Jose, CA         Find a seminar in San Jose CA

Connecticut (Find training in Connecticut)
7/13/2020-7/17/2020 in Fairfield, CT         Find a seminar in Fairfield CT
9/14/2020-9/18/2020 in Fairfield, CT         Find a seminar in Fairfield CT
11/9/2020-11/13/2020 in Fairfield, CT         Find a seminar in Fairfield CT
11/16/2020-11/20/2020 in Fairfield, CT         Find a seminar in Fairfield CT

Iowa (Find training in Iowa)
6/1/2020-6/5/2020 in Cedar Rapids, IA         Find a seminar in Cedar Rapids IA
6/1/2020-6/5/2020 in Des Moines, IA         Find a seminar in Des Moines IA

Illinois (Find training in Illinois)
6/1/2020-6/5/2020 in Chicago, IL         Find a seminar in Chicago IL
6/1/2020-6/5/2020 in Schaumburg, IL         Find a seminar in Schaumburg IL
6/1/2020-6/5/2020 in Springfield, IL         Find a seminar in Springfield IL

Indiana (Find training in Indiana)
6/1/2020-6/5/2020 in Indianapolis, IN         Find a seminar in Indianapolis IN

Kentucky (Find training in Kentucky)
11/16/2020-11/20/2020 in Louisville, KY         Find a seminar in Louisville KY

Michigan (Find training in Michigan)
6/1/2020-6/5/2020 in Detroit, MI         Find a seminar in Detroit MI
6/1/2020-6/5/2020 in Lansing, MI         Find a seminar in Lansing MI

Minnesota (Find training in Minnesota)
6/1/2020-6/5/2020 in Minneapolis, MN         Find a seminar in Minneapolis MN

Missouri (Find training in Missouri)
6/1/2020-6/5/2020 in Kansas City, MO         Find a seminar in Kansas City MO
6/1/2020-6/5/2020 in Springfield, MO         Find a seminar in Springfield MO
6/1/2020-6/5/2020 in St Charles, MO         Find a seminar in St Charles MO

Nebraska (Find training in Nebraska)
6/1/2020-6/5/2020 in Omaha, NE         Find a seminar in Omaha NE

New York (Find training in New York)
11/16/2020-11/20/2020 in Binghamton, NY         Find a seminar in Binghamton NY
11/16/2020-11/20/2020 in Buffalo, NY         Find a seminar in Buffalo NY
11/16/2020-11/20/2020 in Ithaca, NY         Find a seminar in Ithaca NY
11/16/2020-11/20/2020 in Rochester, NY         Find a seminar in Rochester NY
11/16/2020-11/20/2020 in Syracuse, NY         Find a seminar in Syracuse NY

Ohio (Find training in Ohio)
11/16/2020-11/20/2020 in Cincinnati, OH         Find a seminar in Cincinnati OH
11/16/2020-11/20/2020 in Cleveland, OH         Find a seminar in Cleveland OH
11/16/2020-11/20/2020 in Columbus, OH         Find a seminar in Columbus OH
11/16/2020-11/20/2020 in Dayton, OH         Find a seminar in Dayton OH

Pennsylvania (Find training in Pennsylvania)
11/16/2020-11/20/2020 in Pittsburgh, PA         Find a seminar in Pittsburgh PA

Tennessee (Find training in Tennessee)
11/16/2020-11/20/2020 in Memphis, TN         Find a seminar in Memphis TN
11/16/2020-11/20/2020 in Nashville, TN         Find a seminar in Nashville TN

Virginia (Find training in Virginia)
7/6/2020-7/10/2020 in Arlington, VA         Find a seminar in Arlington VA
9/14/2020-9/18/2020 in Arlington, VA         Find a seminar in Arlington VA
11/9/2020-11/13/2020 in Arlington, VA         Find a seminar in Arlington VA

Wisconsin (Find training in Wisconsin)
6/1/2020-6/5/2020 in Milwaukee, WI         Find a seminar in Milwaukee WI