1. 1. Hibernate Overview
The Issues with Persistence Layers
Issues with JDBC Alone
Hibernate Environments
Hibernate Architecture
Hibernate Overview
Hibernate Benefits
Object-Relational Mapping (ORM) Issues
More Detailed Architecture
2. Using Hibernate
The Configuration Class
The SessionFactory Interface
Configuring Hibernate
hibernate.cfg.xml Elements
SessionFactory API
SessionFactory Configuration
The Session Interface
Sessions and Transactions
SessionFactory Configuration Properties
Acquiring Hibernate
Using Hibernate
3. Mapping a Simple Class
The Hibernate Mapping File
The <hibernate-mapping> Element
The <class> Element
The EVENTS Table
Persistent Entity Classes
Persistent Classes
2. Hibernate Mapping Types
Common Hibernate Type Mappings
Filed Access or Property Access
Mapping the id Property with <id>
More About Primary Keys
Generating the id Value
Hibernate Sessions
The Session Interface
The Event Class
The id Property
Mapping Properties with <property>
The Mapping File
Retrieving Persistent Objects
4. Logging
Hibernate log4j.properties File
The log4j.properties File
Modifying log4j.properties for Hibernate
Hibernate Logging Categories
Hibernate.show_sql
Apache Log4J
5. Appendix - Log4J
Apache Log4J
Appenders
Aprender Additivity
Layout
log4j Loggers
Logger Hierarchy
PatternLayout
Multiple Layouts
3. Logger Levels
log4j Configuration File
Some log4j Appenders
6. Inserting and Updating
Inserting Instances
Deleting an Instance
Modifying a Persistent Instance
7. Querying and Hibernate Query Language (HQL)
Hibernate Query Language
HQL Operators and Expressions
Query Parameters
Using Query Parameters
Aggregate Functions
HQL Basics
Executing a Query
Projection Queries
Projection Queries Returning Tuples
Other Common Query Methods
Where Clause/Restriction
Named Queries
Additional Query Capabilities
8. Transaction Definition
Transactions Modularize Systems
Transaction Lifecycle
Transactions Clarify Systems
4. 9. Hibernate and Transactions
Hibernate and Transactions
Working with Transactions
Working in a Managed Environment
The Hibernate Transaction API
Hibernate Transaction Demarcation
10. The Persistence Lifecycle
Session/Persistence Context Lifespan
Session-per-Request
Hibernate Object States
Transient and Persistent State
Detached and Removed State
What is the - Current Context
Contextual Session Scope
The Persistence Context as Cache
Using Contextual Sessions
Synchronization to the Database
Hibernate Object States and Transitions
The Persistence Context
Session Propagation
First - Acquiring a SessionFactory Instance
Contextual Session
Persistence Context and Object Identity
Yes, It’s Complicated
Flushing the Session
11. Versioning and Optimistic Locking
Version Property in Java Class
Version Element in Mapping File
5. Automatic Version Maintenance
Locking Objects
Lock Modes
Updating a Detached Instance
session.saveorupdate()
Detached Objects and Optimistic Locking
Using a Detached Instance
Optimistic Locking and Versioning
The unsaved-value Attribute
12. Relationships Overview
Characteristics of Relationships
Directionality
Object Relationships
Characteristics of Relationships
13. Collections of Value Objects
Mapping the Set of Values
Using a Set of Values
Collections of Values
Mapping a List of Values
Sorted and Ordered Collections
Modeling a List of Values
Mapping Collections of Components
Collections of Components
Modeling a Set of Values
Using the Java Collection Types
More on the Java Collection Type
14. Mapping Entity Relationships
Bidirectional One-To-Many Relationship
6. Defining the One-To-Many Relationship
Mapping the One-To-Many Relationship
Transitive Persistence
The Cascade Attribute
Cascade Choices
Choosing Cascade Options
Mapping a One-To-One Relationship
Many-To-Many Relationship
Defining Many-To-Many Relationship
More on the Inverse Side
Unidirectional Many-To-One Relationship
Mapping Many-To-Many Relationship
Lazy and Eager Loading
Queries Across Relationships
OUTER and FETCH JOIN
The Table Structure - Many-To-One
Mapping the Relationship
Using the Relationship
Cascading Operations
Bidirectional One-To-One Relationship
15. Mapping Inheritance
Inheritance
Class Definitions for Single-Table
Bulk Update and Delete
Executing Bulk Operations
Mapping for Single-Table
Table per Concrete Class
Projection Queries
Aggregate Queries
Single-Table: Pros and Cons
7. Native SQL Queries
Refining SQL Queries
Retrieving Entities with SQL Queries
Entity Inheritance
Details of Entity Inheritance
Single-Table Strategy
Table per Subclass (Joined Subclass)
Mapping for Table per Subclass
Joined: Pros and Cons
16. Filters
Using a Filter
Collection Filters
Mapping a Filter to a Set
Hibernate Filters
Defining and Attaching Filters
17. Criteria
Eager Fetching
Restrictions - Narrowing the Result Set
Restrictions Methods
Navigating Associations
Query by Example
Refining the Example
Additional Capabilities
18. JPA Overview
Hibernate and JPA
Java Persistence Environments
Java Persistence API Overview
19. Mapping a Simple Class
8. The Event Class
The id Property
Basic Mapping Types
Mapping Properties
The Entity Declaration
Entity Classes
Event Entity Mapped with JPA
20. Entity Manager and Persistence Context
Acquiring an EntityManager
Working with Transactions
The Entity Manager & Persistence Context
Persistence Unit
Retrieving Persistent Objects
persistence.xml
21. Inserts and Queries
Persisting a New Entity
Executing a Query
Versioned Class and Detached Objects
WHERE Clause and Query Parameters
Named Queries
Java Persistence Query Language
Version Property in Java Class
22. Relationships
Inheritance
JPA Support for Relationships
Entity Definitions for Single-Table
Entity Definitions for Joined
Mapping the Many-To-One Relationship
9. Mapping the One-To-Many Relationship
Loading and Cascading
Queries Across Relationships
23. Components and Multi-Table Mapping
Component Overview
Multi-Table Mapping
Mapping a Component
24. equals() and hashCode()
Defining equals() and hashCode()
Redefining equals()
25. Caching
Second-Level Cache
Configuring Caching
Concurrency Strategies
Managing the Caches
Data Appropriate for Caching
Cache Providers
26. Design Considerations
Beware of N+1 Select Issue
Long Conversations
Data Access Object (DAO)
Open Session in View Pattern
Query Efficiency Techniques
Session-per-Conversation
Problems with Web Applications
Prefetching Data in Batches
27. Hibernate Toolset
10. Hibernate Tools Overview
Hibernate Console Configuration
Hibernate Console Perspective
HQL Editor
Hibernate Configuration View
Class Diagram
Query Results
Properties View
SQL Preview
Important Note on Versions
Optional - Hibernate Tools
Install Hibernate Tools
Other Capabilities
Highlights in Training Process;
Conducting demos any time to your convenience.
Providing 24/7 Technical support with lab services.
Certified Trainers.
Easy Payment options.
Hands on training for better performance in Real time Environment.
We maintain flexible Batch system for your better understanding.
Certified Course Content
Standard Material, Real time Examples.
Completing training in the given Duration.
Weekdays and Weekend Batches are available.
11. Contact Information;
Skype Id ; adithyaelearning
Contact Number ; +91 8790679998 , 9848371343.
USA + 001 224 585 7588
Email id ; adithyaelearning@gmail.com, info@adithyaelearning.com
Website ; www.adithyaelearning.com