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