RKCP Information Technology




Hibernate
Home » Courses   » Hibernate

Hibernate

Overview

This Spring and Hibernate training teaches its participants about how to develop enterprise Java web applications using Spring Hibernate open-source frameworks.


Objective

  • To be able to use Hibernate (with JPA-annotations) for the persistence layer - including mapping of simple and complex entities, configuration, querying, session/transaction management, and tuning techniques
  • To be able to monitor and tune a Spring/Hibernate based web application
  • To learn the best practices, and overall differences between Spring/Hibernate-based applications when compared to other solutions
  • To learn how to use Eclipse for Java EE to help speed up the development efforts

  • Prerequisites

    Participants are required to be familiar with web development in Java, including servlets, JSPs, and database access.


    Syllabus

    Expand All
    • 1: An Introduction to Hibernate 5
      • Plain Old Java Objects (POJOs)
      • Origins of Hibernate and Object/Relational Mapping
      • Hibernate as a Persistence Solution
      • A Hibernate Hello World Example
      • Mappings
      • Persisting an Object
    • 2.Integrating and Configuring Hibernate
      • The Steps Needed to Integrate and Configure Hibernate
      • Understanding Where Hibernate Fits into Your Java Application
      • Deploying Hibernate
      • Installing Maven
      • Connection Pooling
    • 3.Building a Simple Application
      • A Simple Application
      • A First Attempt
      • Writing Data
      • Reading Data
      • Updating Data
      • Persistence Contexts
      • Removing Data
      • A Note on Transactions
      • Writing Our Sample Application
    • 4.The Persistence Life Cycle
      • Introducing the Life Cycle
      • Entities, Classes, and Names
      • Identifiers
      • Entities and Associations
      • Saving Entities
      • Object Equality and Identity
      • Loading Entities
      • Merging Entities
      • Refreshing Entities
    • 5.An Overview of Mapping
      • Why Mapping Cannot Easily Be Automated
      • Primary Keys
      • Lazy Loading
      • Associations
      • The One-to-One Association
      • The One-to-Many and Many-to-One Association
      • The Many-to-Many Association
      • Applying Mappings to Associations
      • Other Supported Features
      • Specification of (Database) Column Types and Sizes
      • The Mapping of Inheritance Relationships to the Database
      • Primary Key
      • The Use of SQL Formula–Based Properties
      • Mandatory and Unique Constraints
    • 6.Mapping with Annotations
      • Creating Hibernate Mappings with Annotations
      • The Cons of Annotations
      • The Pros of Annotations
      • Choosing Which to Use
      • JPA 2 Persistence Annotations
      • Entity Beans with @Entity
      • Primary Keys with @Id and @GeneratedValue
      • Compound Primary Keys with @Id, @IdClass, or @EmbeddedId
      • Database Table Mapping with @Table and @SecondaryTable
      • Persisting Basic Types with @Basic
      • Omitting Persistence with @Transient
      • Mapping Properties and Fields with @Column
      • Modeling Entity Relationships
      • Inheritance,Other JPA 2 Persistence Annotations
      • Ordering Collections with @OrderColumn
      • Confi guring the Annotated Classes
      • Immutable
      • Natural IDs
    • 7.JPA Integration and Lifecycle Events
      • The Java Persistence Architecture
      • The Project Object Model
      • The JPASessionUtil Class
      • Testing JPASessionUtil
      • Lifecycle Events
      • External Entity Listeners
      • Data Validation
    • 8.Using the Session
      • Sessions
      • Transactions and Locking
      • Transactions
      • Locking
      • Deadlocks
      • Caching
      • Threads
    • 9.Searches and Queries
      • Hibernate Query Language (HQL)
      • Syntax Basics
      • UPDATE,DELETE,INSERT,SELECT,Named Queries
      • Logging and Commenting the Underlying SQL
      • Logging the SQL
      • Commenting the Generated SQL
      • The from Clause and Aliases
      • The select Clause and Projection
      • Using Restrictions with HQL
      • Using Named Parameters
      • Paging Through the Result Set
      • Obtaining a Unique Result
      • Sorting Results with the order by Clause
      • Associations
      • Aggregate Methods
      • Bulk Updates and Deletes with HQL
      • Using Native SQL
    • 10.Advanced Queries Using Criteria
      • Using the Criteria API
      • Using Restrictions with Criteria
      • Paging Through the Result Set
      • Obtaining a Unique Result
      • Sorting the Query’s Results
      • Projections and Aggregates
      • Should You Use the Criteria API?
    • 11.Filtering the Results of Searches
      • When to Use Filters
      • Defining and Attaching Filters
      • Filters with Annotations
      • Filters with XML Mapping Documents
      • Using Filters in Your Application
      • A Basic Filtering Example
    • 12.Leaving the Relational Database Behind: NoSQL
      • Where Is Hibernate When It Comes to NoSQL?
      • First Warning: NoSQL Is Not Relational, and Hibernate Is an ORM
      • Hibernate Is not Perfect, or “Finished”
      • Basic CRUD Operations
      • The Tests
      • Testing Create and Read
      • Testing Updates
      • Testing Removal
      • Querying in OGM
      • MongoDB
      • What the Hibernate Native API for OGM Looks Like
    • 13.Hibernate Envers
      • Making Envers Available to Your Project
      • Storing a User Object
      • Updating the User
      • Accessing Envers Information
      • Querying Audited Data
      • Applying Audit Data