Spring and Hibernate

piteousnessbutterSoftware and s/w Development

Jul 14, 2012 (5 years and 1 month ago)

366 views

www.codeclass.co.uk
Spring and Hibernate
Summary:
This comprehensive 4-day introduction to Spring and Hibernate demonstrates the best of breed of

existing open source Java enterprise technologies.
Delegates will learn how to using Spring's dependency injection features to write loosely-coupled,

easily-maintainable enterprise applications with simple Java components and to make use of

Hibernate's Object-Relational mapping features to write database access code quickly and

efficiently. Additionally, we explore two complementary methods of building web interfaces using

Spring's MVC and Web Flow frameworks. Delegates will also learn how to make use of Spring to

build automated tests for individual components to achieve the highest code quality.
A fully-featured sample application has been developed to showcase all of the features in question.

Delegates will learn how to build this application piece-by-piece and thus understand the best

overall approach to integrating these two technologies. This is an advanced course and thus

requires competent Java developers who can display a high level of commitment to the training. A

series of graded exercise will enable developers to get to grips with the technologies, understand

the development cycle and encouter the configuration issues and errors that may occur.
Our trainers are Java experts who have a number of years of experience of working as developers,

architects and consultants in industry as well as being experienced trainers.
Objectives:

This course will enable delegates with Java experience to write maintainable and testable web and

enterprise technologies using the Spring and Hibernate open source Frameworks.

Configure Hibernate's object-relational mappings

Manage Hibernate sessions with persistent, transient and detached objects

Perform queries using Hibernate Query Language (HQL)

Avoid problems such as Lazy Loading Exceptions and Transaction/Locking issues

Understand Dependency Injection in Spring and configure Spring's bean factory

Understand how Spring's dependency injection model promotes loose coupling and

simplified automated testing

Integrate Spring with Hibernate via the Spring/Hibernate Template

Manage Transactions and Concurrency outside of the EJB container

Understand Spring's MVC Architecture

Write Spring Controllers and Views and Use Spring JSP tags to bind forms to Javabeans

Configure page flow in the Web Application Context

Internationalize an application

Implement Conversational Scope with Web Flow

Define navigation with States, Flows, Transitions and Events

Deploy a Spring/Hibernate Application

Integrate Spring with existing technologies such as JavaServer Faces

Understand the Development Lifecycle and Error messages from the framework
Topics Covered in Depth Include:

Hibernate

Object-Relational Mapping

Database Neutrality

Hibernate Configuration

Mapping Tables

Object Identity

Mapping Primary Keys

One-to-One Mapping
www.codeclass.co.uk

One-To-Many Mapping

Many-to-Many
Mapping

Navigating the Object Model

Bi-Directional Relationships

Generating Identity


Key Generation

Indexed Collections

Persisting Objects

The Hibernate Session

Transience and Detached Objects

Querying with Hibernate Query

Language

Eager and Lazy Loading

The Second-Level Cache

Optimistic Locking

Using Annotations

Hibernate and the JPA/EJB3

Leveraging Java standards

The Spring Framework

Dependency Injection

The Bean Factory

Autowiring

Constructor vs Setter Injection

Aspect Oriented Programming in

Spring

Integrating Spring with Hibernate

Stateless Architecture

The Spring Hibernate Template

The Data Access Object Pattern

Transactions and Concurrency

Testing Applications with Spring

Deployment

Open Session in View Pattern

Spring Best Practice

Spring/Hibernate vs JEE5

Spring MVC and Web Flow

Conversational Scope

The Dispatcher Servlet

Controllers

Form Handlers

Views

View Tags

View Resolution

Binding a Form to a Bean

Internationalisation

Web Flow

Events

States

Transitions

Subflows

Conversational Scope

Session Management

Integration with JSF – a working

example

Using a third-party JSF tag library

(Quipukit)
Pre-Requisites:
Developers should have solid Java development experience and be fluent in writing Java code. In

particular, delegates should be familiar with the Generics and Collections features of Java 5/6. An

introductory knowledge of JSP is important. Delegates must also understand the structure of a

relational database (RDBMS), including foreign key relationships between tables, and be able to

understand simple SQL queries including inner joins. An understanding of introductory XML and

HTML markup is highly desirable.
Contact:
Please contact us at
training@codeclass.co.uk
or phone us on 020 7100 4254 if you are

interested in delivery of this course on your site and to discuss our extremely competitive rates.

The course will be available from October 2009.