- 3 Days
This course develops skills in using the Object/Relational Mapping tool HibernateÂ®. By the end of the course, students will be prepared to set-up and use Hibernate as the persistence mechanism in Java applications.
The course targets Hibernate 3.2. For training in more recent versions, and especially to learn about Hibernate as a provider under the newer Java Persistence API standard, consider Course 161-HB, JPA with Hibernate.
- Configure Hibernate using both properties files and XML documents.
- Create mapping documents for Java classes.
- Define object relationships and build mapping documents to model them.
- Use components to model composition relationships in the object model.
- Work with one-to-one, many-to-one, and many-to-many relationships.
- Evaluate the different approaches to modeling inheritance and polymorphism in database schema.
- Build Java applications that use Hibernate to create, retrieve, update, and delete objects.
- Use Hibernate's Criteria Query API to do searches and Query By Example.
- Work with Hibernate Query Language (HQL) to generate object-based SQL.
- Understand Hibernate sessions and transactions and their impact on performance.
- Intermediate knowledge of Java programming;
- Some familiarity with SQL, relational databases, and the Java Database Connectivity (JDBC) interfaces will be helpful;
- Introduction to Hibernate
- The Object/Relational Mapping Problem
- The Hibernate Alternative
- Hibernate Architecture and API
- Configuring Hibernate
- The Hibernate Distribution
- Required Libraries
- Configuration Files
- Programmatic Configuration
- Hibernate Persistence
- The SessionFactory Interface
- Object States
- The Session Interface
- Session Duration
- The Data Access Object Pattern
- Object/Relational Mapping
- O/R Mapping Issues
- The Mapping Vocabulary
- Primary Keys and Identity
- ID Generators
- Mapping Associations
- Unidirectional and Bidirectional Associations
- Managing Cardinality
- Strategies for Mapping Inheritance
- The Criteria Query API
- Criteria Queries
- The Criteria Interface
- Using Restrictions
- Windowing Results
- Traversing Associations
- Projections and Aggregates
- Query By Example (QBE)
- Hibernate Query Language
- Building HQL Queries
- The Select Clause
- The Where Clause
- Named and Entity Parameters
- Associations and Aggregates
- Bulk Updates and Deletes
- Named Queries
- Using Native SQL
InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).
InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)
For an overall view of our offerings, please visit us at www.intersource.ch.