|
|
 |
 |
 |
| |
|
 |
|
| |
| Hibernate
- Developing Java Relational Persistence Applications |
| Duration: 3
days |
|
|
|
|
This course is built for experienced Java
developers, architects, and designers.
- Developers
- Designers
- Architects
- Consultants
|
|
Audience should know Java and have a working
knowledge of relational database and SQL.
|
|
|
| Description |
Hibernate
is an open source object/relational mapping framework
for Java. It is
lightweight, yet powerful enough to relieve the
developers from most of the manual
work otherwise needed in handling data persistence.
This course covers all aspects of using hibernate
in developing Java relational
persistence applications, from configuration, defining
mappings, writing complex
queries, to employing best practices.
At least 60% of the time will be devoted to labs. |
|
| Objectives |
|
Upon completion, students will be able to:
- Understand the Hibernate framework architecture
- Write Hibernate configuration file
- Write Hibernate mapping files
- Define persistence classes
- Write queries with Hibernate Query Language
(HQL)
- Learn best practices in using Hibernate to
build real world applications
|
|
| Course Outline |
Overview
- Overview of O/R mapping
- Overview of Hibernate architecture
- Setting up and running your first Hibernate
application
Configuring Hibernate
- Hibernate configuration property file
- Hibernate configuration XML file
- Database dialects
- Obtaining a SessionFactory
- User-provided JDBC connection
- Using code generation tool
- Using schema generation tool
- Using mapping file generation tool
O/R Mapping
- Overview of the mapping file
- The id element and primary key
- Id generation methods
- Composite id
- Hibernate data types
- Custom value types
- Mapping for collections and associations
- Mapping for rich associations
- Component mapping
- Inheritance mapping
|
|
Manipulating
and Querying Persistent Data
- Persistent classes
- Loading an object
- Find methods
- The Query interface
- Performing CRUD operations
- Criteria Queries
- Using native SQL query
- Using lifecycle and interceptor callbacks
- Transactions and concurrency
The Hibernate Query Language (HQL)
- The select clause
- The from clause
- The where clause
- Expressions
- Aggregate functions
- Sorting, grouping, etc.
- Subqueries
Performance and Best Practices
- Collections and performance
- Cache
- Misc. tips and tricks
|
|
|
|