SlideShare a Scribd company logo
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
 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
 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
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
 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
 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
 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
 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
 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
 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.
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

More Related Content

Viewers also liked

Vocabulary sports
Vocabulary sportsVocabulary sports
Vocabulary sports
patpen55
 
Cognito crm &amp; marketing automation
Cognito crm &amp; marketing automation Cognito crm &amp; marketing automation
Cognito crm &amp; marketing automation
Trang Pham
 
Getting Started with Big Data
Getting Started with Big DataGetting Started with Big Data
Getting Started with Big Data
Soner Altin
 
Educa play
Educa playEduca play
Educa play
LeslieMorteo
 
World is magnifique magazine Fev March 2014
World is magnifique magazine Fev March 2014World is magnifique magazine Fev March 2014
World is magnifique magazine Fev March 2014
Prakash Montroy
 
Question 4
Question 4Question 4
Question 4
sumeyye0909
 
Itc sec1
Itc sec1Itc sec1
Itc sec1
nishadcds
 
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
Lana Pedneault
 
Biblia szkoleń giełdowych
Biblia szkoleń giełdowychBiblia szkoleń giełdowych
Biblia szkoleń giełdowych
Gieldowy Wizjer
 
Short break ppt new
Short break ppt newShort break ppt new
Short break ppt new
Dwarakanath Biwalkar
 
Software de trabajo colaborativo en redes
Software de trabajo colaborativo en redesSoftware de trabajo colaborativo en redes
Software de trabajo colaborativo en redes
LeslieMorteo
 
Campbell glo call 2013
Campbell glo call 2013Campbell glo call 2013
Campbell glo call 2013
David Campbell
 

Viewers also liked (13)

Vocabulary sports
Vocabulary sportsVocabulary sports
Vocabulary sports
 
Cognito crm &amp; marketing automation
Cognito crm &amp; marketing automation Cognito crm &amp; marketing automation
Cognito crm &amp; marketing automation
 
Getting Started with Big Data
Getting Started with Big DataGetting Started with Big Data
Getting Started with Big Data
 
Educa play
Educa playEduca play
Educa play
 
World is magnifique magazine Fev March 2014
World is magnifique magazine Fev March 2014World is magnifique magazine Fev March 2014
World is magnifique magazine Fev March 2014
 
Question 4
Question 4Question 4
Question 4
 
Itc sec1
Itc sec1Itc sec1
Itc sec1
 
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
Présentation Comité de Citoyens Vaudreuil Durable 2016 11-24
 
Biblia szkoleń giełdowych
Biblia szkoleń giełdowychBiblia szkoleń giełdowych
Biblia szkoleń giełdowych
 
Short break ppt new
Short break ppt newShort break ppt new
Short break ppt new
 
Software de trabajo colaborativo en redes
Software de trabajo colaborativo en redesSoftware de trabajo colaborativo en redes
Software de trabajo colaborativo en redes
 
Campbell glo call 2013
Campbell glo call 2013Campbell glo call 2013
Campbell glo call 2013
 
baocao1
baocao1baocao1
baocao1
 

More from shanmukha rao dondapati

CLINICAL DATA MANAGEMENT SAS CDM Online Learning
CLINICAL DATA MANAGEMENT SAS CDM Online LearningCLINICAL DATA MANAGEMENT SAS CDM Online Learning
CLINICAL DATA MANAGEMENT SAS CDM Online Learning
shanmukha rao dondapati
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearning
shanmukha rao dondapati
 
Core Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya ElearningCore Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya Elearning
shanmukha rao dondapati
 
Cognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya ElearningCognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya Elearning
shanmukha rao dondapati
 
Cognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya ElearningCognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya Elearning
shanmukha rao dondapati
 
CBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya ElearningCBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya Elearning
shanmukha rao dondapati
 
Sap basis slide . pp
Sap basis slide . ppSap basis slide . pp
Sap basis slide . pp
shanmukha rao dondapati
 

More from shanmukha rao dondapati (7)

CLINICAL DATA MANAGEMENT SAS CDM Online Learning
CLINICAL DATA MANAGEMENT SAS CDM Online LearningCLINICAL DATA MANAGEMENT SAS CDM Online Learning
CLINICAL DATA MANAGEMENT SAS CDM Online Learning
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearning
 
Core Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya ElearningCore Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya Elearning
 
Cognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya ElearningCognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya Elearning
 
Cognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya ElearningCognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya Elearning
 
CBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya ElearningCBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya Elearning
 
Sap basis slide . pp
Sap basis slide . ppSap basis slide . pp
Sap basis slide . pp
 

Recently uploaded

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 

Recently uploaded (20)

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 

Hibernate Online Training @ Adithya Elearning

  • 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