SlideShare uma empresa Scribd logo
1 de 11
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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Mais de 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
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

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