Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Integrating Hibernate and Spring

( Duration: 5 Days )

The Integrating Hibernate and Spring training course is designed for experienced Java Developers who need to understand what Hibernate is in terms of today’s systems and architectures, and how to apply Hibernate to persistence requirements in Java and J2EE applications. The course then covers the Spring framework and how to integrate Hibernate as the persistence layer for Spring applications.

This course covers Hibernate concepts and practices for interacting between Java and relational databases. The goal of this course is to empower developers with the knowledge needed to design and implement Spring applications that effectively and transparently use Hibernate to manage data persistence. The areas addressed in this course range from data/class mapping and persisted object lifecycle and management to how Hibernate can be used in the Spring framework.

By attending Integrating Hibernate and Spring workshop, delegates will learn to:

  • Explain how the issues associated with object persistence in a relational model are addressed by Hibernate
  • Describe the relationships between SQL, Java, Spring, and Hibernate
  • Discuss the challenges to adopting Hibernate in the enterprise
  • Write applications that take advantage of the Hibernate Persistence Manager
  • Map Java classes to relational tables
  • Capture both relational and inheritance associations in metadata using either XML or the Java 5 Annotations mechanism
  • Create and use mappings between Java classes and relational databases
  • Explain how identity and keys are handled in Hibernate
  • Describe the persistent object lifecycle and how that relates to transactions and concurrency
  • Apply Hibernate’s data filtering and interception
  • Explain the issues associated with complex frameworks such as J2EE and how Spring addresses those issues
  • Write applications that take advantage of the Spring container and the declarative nature of assembling simple components into applications
  • Work with Spring’s support for transactions
  • Apply Hibernate within the Spring framework

  • Basic experience in Java development

This Integrating Hibernate and Spring class is suitable for:

  • Java Developers
  • Object-Oriented Programmers

COURSE AGENDA

1

Introduction to Hibernate

  • ORM mapping issues
  • Hibernate architecture
  • Persistence, identity, and equality in Hibernate
  • Domain models and metadata options
2

Getting Started with Hibernate

  • Basic mapping
    • Class/properties to table/columns
  • Basic configuration
  • Mapping a POJO to a database
  • CRUD operations
  • Basics of Hibernate session
  • Working with persisted objects
3

Basic ORM in Hibernate

  • Configuring persistence
  • Object identity in Hibernate
  • Generating unique keys
  • Mapping classes to multiple tables
4

Value-Type Collections and Components

  • Element types
  • Mapping compositions
  • Mapping Java collections
  • Bags and dynamic components
5

Entity Associations (Relations)

  • Types of associations
  • Uni- and bi-directional associations
  • Using join tables
  • Many-to-many associations
  • Cascadin over associations
6

Mapping Inheritance

  • Strategies for inheritance ORM
  • Single, class and concrete table patterns
  • Discriminators
7

Hibernate Annotations

  • Working with Hibernate annotations
  • Annotation-capable sessions
  • Annotations and persistence
  • Annotations, mapping and relationships
8

Working with Persistent Objects

  • Transient, persistent and detached
  • Transitioning between states
  • Options for retrieving objects
  • Attached and detached states
  • Update, merge and cascade
9

Transactions

  • Transaction control and isolation levels
  • Options for demarcating transactions
  • Using a contextual session
  • Correctly handling exceptions
  • Optimistic and pessimistic locking in Hibernate
  • Lock scopes and cascading
10

Querying for Objects

  • Hibernate query API
  • Hibernate Query Language (HQL)
  • HQL syntax and usage
  • Criteria
11

The Spring Framework and IoC

  • Inversion of control
  • Dependency injection
  • Spring overview
  • Spring Application architectures
  • Spring container
    • Managing the container
    • Access to services and resources
    • Application contexts
  • Beans as components
    • Beans and factories
    • XML bean configuration
    • Bean definition and dependencies
    • Bean lifecycle
  • Customization options
    • Post-processors
    • Property editors
  • Autowiring
  • Callbacks
12

Spring and Persistence

  • Data access pattern
  • DAO implementations
  • Spring transaction support
  • Programmatic transactions
  • Declarative transaction outside code
  • Declarative transactions inside code
  • Working with demarcation
13

Spring and Hibernate

  • Spring - Hibernate support
  • Session and connection management
  • Hibernate DAOs
  • Hibernate template

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X