SlideShare a Scribd company logo
1 of 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

More Related Content

Viewers also liked

Vocabulary sports
Vocabulary sportsVocabulary sports
Vocabulary sportspatpen55
 
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 DataSoner Altin
 
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 2014Prakash Montroy
 
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-24Lana Pedneault
 
Biblia szkoleń giełdowych
Biblia szkoleń giełdowychBiblia szkoleń giełdowych
Biblia szkoleń giełdowychGieldowy Wizjer
 
Software de trabajo colaborativo en redes
Software de trabajo colaborativo en redesSoftware de trabajo colaborativo en redes
Software de trabajo colaborativo en redesLeslieMorteo
 
Campbell glo call 2013
Campbell glo call 2013Campbell glo call 2013
Campbell glo call 2013David 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 Learningshanmukha rao dondapati
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearningshanmukha rao dondapati
 
Core Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya ElearningCore Java Online Training @ Adithya Elearning
Core Java Online Training @ Adithya Elearningshanmukha rao dondapati
 
Cognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya ElearningCognos tm1 Online Training @ Adithya Elearning
Cognos tm1 Online Training @ Adithya Elearningshanmukha rao dondapati
 
Cognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya ElearningCognos Online Training @ Adithya Elearning
Cognos Online Training @ Adithya Elearningshanmukha rao dondapati
 
CBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya ElearningCBAP CCBS Online Training @ Adithya Elearning
CBAP CCBS Online Training @ Adithya Elearningshanmukha 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

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024CapitolTechU
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...Krashi Coaching
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryCeline George
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading Room
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading RoomImplanted Devices - VP Shunts: EMGuidewire's Radiology Reading Room
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading RoomSean M. Fox
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxsbabel
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17Celine George
 

Recently uploaded (20)

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading Room
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading RoomImplanted Devices - VP Shunts: EMGuidewire's Radiology Reading Room
Implanted Devices - VP Shunts: EMGuidewire's Radiology Reading Room
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptx
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 

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