Previous
Next

I need more information

If you would like to speak to a member of our specialist team, please feel free to call our freephone number or email us directly:

0800 028 6400

enquiries@jbinternational.co.uk

Quote me | Enrol me

Hibernate Training Course

Course code: HIBERNATE
Details: 2 days, £995 + VAT
2 days, £995 + VAT
2 days, £995 + VAT
OnsiteEnquire about bringing this course to your offices
Who should attend: Java EE developers who need to explore alternative methods of persistence in Enterprise Java applications.
Prerequisite skills: A good knowledge of the fundamentals of programming Enterprise and Web applications with Java such as can be found in our Java EE (Enterprise Java) training course.

Course Outline

The persistence layer is an essential feature of any enterprise application used to store and retrieve objects from a database.

It’s quite common for persistence layers to be developed in-house to cope with issues as they arise. However, if changes are made to the underlying database schema, it can be time-consuming and thus expensive to propagate the changes throughout the application.

Hibernate can be used to solve these problems, providing a relatively simple and powerful object-relational persistence framework for Java applications, and is often used alongside Spring and Struts frameworks.

Course Content

Our intensive hands-on Hibernate training course will provide delegates with the skills necessary to develop Java applications that rely on Hibernate for persistance solution. Available as a public or closed course at our London training centre, or can be tailored to your team's requirements and delivered onsite as a bespoke, customised training course.

This course has been developed for real-world, commercial scenarios by our expert instructors. See below for detailed syllabus. If you have a technical question, please email sales@jbinternational.co.uk

 

Hibernate Training Course Outline

The Object-Relational Divide

Relationship between SQL, JDBC and objects
Bridging the chasm: issues with OO and databases

First Steps

Key elements: a simple Hibernate project from start to finish

Mapping Persistent Classes

From POJO to database
XML-style mapping
Annotation-style mapping

The Hibernate Environment

The session manager
Transitive persistence
Dealing with long-running transactions
Locking implications

Advanced Mapping

Mapping to collection classes
Managing multiplicity: one-to-many, many-to-many
Custom mapping types

Source Files

Creating the SessionFactory

Fetching strategies

The n+1 issue and its solution
Lazy (and aggressive) fetching strategies

Querying data

Using HQL
Using criteria
Incorporating native JDBC and stored procedures

Performance Considerations

First- and second-level caching
Monitoring and tuning Hibernate-generated SQL

Hibernate and JPA

Comparison of Hibernate with the Java Persistence API
Pros and Cons of Hibernate versus JPA in an EJB 3
environment
Best of both worlds: Hibernate EntityManager

Hibernate Tools

Automatic schema generation
Automatic POJO generation
Accommodating existing schemas
The Hibernate console and mapping editor