SlideShare a Scribd company logo
www.edureka.co/persistence-with-hibernate
Hibernate-the ultimate ORM framework
View Persistence with Hibernate course details at www.edureka.co/persistence-with-hibernate
For Queries:
Post on Twitter @edurekaIN: #askEdureka
Post on Facebook /edurekaIN
For more details please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email Us : sales@edureka.co
Slide 2 www.edureka.co/persistence-with-hibernate
 Persistence Overview
 What is Hibernate?
 Persistence with Hibernate
 Understand ORM
 ORM using Hibernate
 Benefits of Hibernate
 Understand the skills required for Hibernate
 Impedance mismatch and solution
 Uses cases with Hibernate
 Explore Hibernate tools
 Implement use case of Hibernate
At the end of this module, you will be able to:
Objectives
Slide 3 www.edureka.co/persistence-with-hibernate
Hi DATABASE !!!
How are you?
I am doing good
JAVA, How are you?
Slide 4 www.edureka.co/persistence-with-hibernate
I wish if we could
help each other using
our own style.
I am not doing so good.
Working on an application, lot of
coding in it to connect with you,
too complex.
Slide 5 www.edureka.co/persistence-with-hibernate
Hey, JAVA and
DATABASE, My name is
ORM!!
Slide 6 www.edureka.co/persistence-with-hibernate
I can do mapping between you two.
What I mean is, I can MAP JAVA’s object
model with DATABASE’s relational model.
Slide 7 www.edureka.co/persistence-with-hibernate
But there are so many
Databases like MySQL, Oracle,
SQL Server. Will you be able to
MAP me with all of them ??
YEAH, I agree
with JAVA.
Slide 8 www.edureka.co/persistence-with-hibernate
No worries, I can connect to all the
databases easily. I am DATABASE
independent.
Slide 9 www.edureka.co/persistence-with-hibernate
WOW, that’s great ORM,
thanks a lot, you just solved all
our problems.
AWESOME!!!
Slide 10 www.edureka.co/persistence-with-hibernate
One of the fundamental building block for application development
It is the ability of an object to survive the lifetime of the OS process in which it resides
It’s a characteristic of storing the data that created it
It’s relevant for objects with an internal state
The state of data needs to be retained between object deactivation and object activation
Data persistence normally happens through Databases
Persistence data can be accessed by Object Oriented Languages
Persistence
Slide 11 www.edureka.co/persistence-with-hibernate
An Object relational mapping library of java language for Object persistence
and SQL databases
Found in 2001 by Gavin King
Transparent persistence of java objects with relational database
Provides query language in synch with SQL
Open source library
Provides solutions for object relational impedance mismatch problems
Hibernate
Slide 12 www.edureka.co/persistence-with-hibernate
 Objective is to solve the complexities existed in EJB2 persistence architecture
 Provided a platform for Java language to interact with any database vendor
 Dialect support
 HQL interaction with same format in all databases
Persistence with Hibernate
Derby
MySQL
Oracle
Slide 13 www.edureka.co/persistence-with-hibernate
 Relational Database Management System (RDMBS) is a collection
of data grouped into tables
 One of the core components in persistence of data
 Organizes the storage and retrieval of data persistence
 Provides way of sharing persistence data across different
applications
 Provides easy way of accessing the persistence data to other
application via JDBC
 Provides a process of reducing the persistence data to its canonical
form using Normalization
RDBMS
Slide 14 www.edureka.co/persistence-with-hibernate
Object/relational mapping (ORM) refers to the technique of
mapping a data representation from an object model to a
relational data model with a SQL-based schema
With a good ORM, you have to define the way you map your
classes to tables once, which property maps to which
column, which class to which table, and so forth
With a good ORM, you can take the plain Java objects you
use in the application and tell the ORM to persist them. This
will automatically generate all the SQL needed to store the
object
An ORM allows you to load your objects just as easily: A
good ORM will feature a query language too
ORM
Slide 15 www.edureka.co/persistence-with-hibernate
Provides a simple API for storing and retrieving Java objects directly to and from the database
Non-intrusive: No need to follow specific rules or design patterns
Transparent: Your object model is unaware
ORM using Hibernate
JavaObject
int id;
String name;
String getName()
int getId()
void setName(String)
SQL Table
id [int] primary key,
name [varchar(50)],
Magic Happens Here
(O/R Mapper – i.e. Hibernate)
Slide 16 www.edureka.co/persistence-with-hibernate
Hibernate Layer in Application
Presentation Layer
Service/Business Layer
Persistence Layer
ORM/Hibernate
Domain Model
Database
Slide 17 www.edureka.co/persistence-with-hibernate
Benefits of Hibernate
Technical benefits:
 Generation of SQL statements .
 Easy mapping of relational database tables to domain entities
 Database independent
 Effective caching framework
Business benefits:
 An open source framework
 Faster development time
 Support for multiple database vendors
Slide 18 www.edureka.co/persistence-with-hibernate
Hibernate Skills
Hibernate Tools – Enables RDBMS mappings & associations with domain objects ,hence should have
knowledge on databases
SQL Skills – Demonstrates the traditional SQL skills to understand table relations
Coding Skill – Should possess java coding skills in using annotations & xml mappings for domain objects
OOP Skills – Should possess Object oriented programming skills to deal with Hibernate inheritance and
polymorphism
Skills Products
Database MySQL ,Oracle or any RDBMS vendor
Coding Java
Configuration Management Eclipse , Hibernate tools
SQL MySQL ,Oracle or any RDBMS vendor
Hibernate Skill Matrix
Slide 19 www.edureka.co/persistence-with-hibernate
Complexity of Impedance Mismatch
Objects Database Entries
Student Course
Takes Enrolls
Registration
Report Card
Tuition Bill
Class Schedule
Student ID
Course Number
Grade
Student ID Course Number
Slide 20 www.edureka.co/persistence-with-hibernate
Impedance Mismatch Solution
Combination of OO and Relation languages solves impedance mismatch
Building an Object Oriented Database Management System (OODBMS)
Addressing problems through entity structures
Usage of XML Databases
Matching table with object entities
Slide 21 www.edureka.co/persistence-with-hibernate
Impedance Mismatch - Hibernate
Provides an effective ORM approach to resolve
impedance mismatch
Entity beans mapping to tables in database
Each instance of entity bean maps to a row in a
table
Mapping of java data types to relational data
types
Controls database transactions with entitles
ORM/Hibernate
JAVA
Objects
JAVA
Objects
JAVA
Objects
Slide 22 www.edureka.co/persistence-with-hibernate
Use - Case of Hibernate
MySQL
MSSQL
PostgreSQL
U
S
E
R
C
H
O
I
C
E
An Ecommerce App
Slide 23 www.edureka.co/persistence-with-hibernate
An Ecommerce App
Use - Case of Hibernate (Contd.)
User
User
User
Databases
?
Slide 24 www.edureka.co/persistence-with-hibernate
Use - Case of Hibernate (Contd.)
If they allow user choice databases
then how to abstract
each and different queries in the
underlying database. How this can
be customized and what about
searching mechanisms
Slide 25 www.edureka.co/persistence-with-hibernate
Use - Case of Hibernate (Contd.)
User
User
User
Databases
ORM tool and
database independent
Handles transaction
demarcations
Provides enhanced
search library
Slide 26 www.edureka.co/persistence-with-hibernate
Hibernate Tools
An integrated suit plugin of eclipse
Core layer of Jboss tools
Components Usage
Mapping Editor 1. Editor for mapping hbm files.
2. Auto completion and Syntax highlighting
Console
1. Helps to configure database
connections
2. Used to execute HQL queries.
Reverse Engineering
1. Generates domain classes
2. Generates mapping files and annotated
classes
Wizards 1. Generates hibernate cfg files.
2. Console configurations.
Ant task 1. Runs schema generation
2. Java code generation
Slide 27 www.edureka.co/persistence-with-hibernate
LAB
Slide 28 www.edureka.co/persistence-with-hibernate
Course Topics
 Module 1
» Introduction to ORM and Hibernate
 Module 2
» Persistence and Session Factory
 Module 3
» Association, Mapping & Inheritance
 Module 4
» Criteria and Query Language
 Module 5
» Transactions ,Filter and Performance
 Module 6
» Search and Validation Framework
 Module 7
» OGM, NoSQL and Spring
 Module 8
» Project
Slide 29
LIVE Online Class
Class Recording in LMS
24/7 Post Class Support
Module Wise Quiz
Project Work
Verifiable Certificate
www.edureka.co/persistence-with-hibernate
How it Works?
Questions
Slide 30 www.edureka.co/persistence-with-hibernate
Slide 31 Course Url
Ad

More Related Content

What's hot (19)

IRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET- Review on Java Database Connectivity
IRJET- Review on Java Database Connectivity
IRJET Journal
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring Framework
Edureka!
 
Synopsis
SynopsisSynopsis
Synopsis
Gaurav Gopal Gupta
 
Spring Framework - III
Spring Framework - IIISpring Framework - III
Spring Framework - III
People Strategists
 
Free Hibernate Tutorial | VirtualNuggets
Free Hibernate Tutorial  | VirtualNuggetsFree Hibernate Tutorial  | VirtualNuggets
Free Hibernate Tutorial | VirtualNuggets
Virtual Nuggets
 
Hibernate Interview Questions
Hibernate Interview QuestionsHibernate Interview Questions
Hibernate Interview Questions
Syed Shahul
 
Spring Framework-II
Spring Framework-IISpring Framework-II
Spring Framework-II
People Strategists
 
Iphone programming: Core Data Tutorial for iOS
Iphone programming: Core Data Tutorial for iOSIphone programming: Core Data Tutorial for iOS
Iphone programming: Core Data Tutorial for iOS
Kenny Nguyen
 
Hibernate I
Hibernate IHibernate I
Hibernate I
People Strategists
 
Spring Framework -I
Spring Framework -ISpring Framework -I
Spring Framework -I
People Strategists
 
Hibernate II
Hibernate IIHibernate II
Hibernate II
People Strategists
 
Overview of JEE Technology
Overview of JEE TechnologyOverview of JEE Technology
Overview of JEE Technology
People Strategists
 
Hibernate III
Hibernate IIIHibernate III
Hibernate III
People Strategists
 
Complete placement guide(technical)
Complete placement guide(technical)Complete placement guide(technical)
Complete placement guide(technical)
Karunakar Singh Thakur
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
Mahmoud Tolba
 
Ebook9
Ebook9Ebook9
Ebook9
kaashiv1
 
Sql interview-question-part-9
Sql interview-question-part-9Sql interview-question-part-9
Sql interview-question-part-9
kaashiv1
 
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration PlatformMicrosoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Edureka!
 
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Edureka!
 
IRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET- Review on Java Database Connectivity
IRJET- Review on Java Database Connectivity
IRJET Journal
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring Framework
Edureka!
 
Free Hibernate Tutorial | VirtualNuggets
Free Hibernate Tutorial  | VirtualNuggetsFree Hibernate Tutorial  | VirtualNuggets
Free Hibernate Tutorial | VirtualNuggets
Virtual Nuggets
 
Hibernate Interview Questions
Hibernate Interview QuestionsHibernate Interview Questions
Hibernate Interview Questions
Syed Shahul
 
Iphone programming: Core Data Tutorial for iOS
Iphone programming: Core Data Tutorial for iOSIphone programming: Core Data Tutorial for iOS
Iphone programming: Core Data Tutorial for iOS
Kenny Nguyen
 
Microsoft Entity Framework
Microsoft Entity FrameworkMicrosoft Entity Framework
Microsoft Entity Framework
Mahmoud Tolba
 
Sql interview-question-part-9
Sql interview-question-part-9Sql interview-question-part-9
Sql interview-question-part-9
kaashiv1
 
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration PlatformMicrosoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Microsoft Sharepoint 2013 : The Ultimate Enterprise Collaboration Platform
Edureka!
 
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Java Interview Questions and Answers | Spring and Hibernate Interview Questio...
Edureka!
 

Similar to Webinar: Hibernate - the ultimate ORM framework (20)

Effective Persistence Using ORM With Hibernate
Effective Persistence Using ORM With HibernateEffective Persistence Using ORM With Hibernate
Effective Persistence Using ORM With Hibernate
Edureka!
 
Leverage Hibernate and Spring Features Together
Leverage Hibernate and Spring Features TogetherLeverage Hibernate and Spring Features Together
Leverage Hibernate and Spring Features Together
Edureka!
 
Hibernate3 q&a
Hibernate3 q&aHibernate3 q&a
Hibernate3 q&a
Faruk Molla
 
Hibernate
HibernateHibernate
Hibernate
Murali Pachiyappan
 
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ NizampetHibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Jayarajus
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
Rajiv Gupta
 
Hibernate Interview Questions and Answers
Hibernate Interview Questions and AnswersHibernate Interview Questions and Answers
Hibernate Interview Questions and Answers
AnuragMourya8
 
Lec2 ecom fall16
Lec2 ecom fall16Lec2 ecom fall16
Lec2 ecom fall16
Zainab Khallouf
 
What is hibernate?
What is hibernate?What is hibernate?
What is hibernate?
kanchanmahajan23
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLink
Bill Lyons
 
Rollin onj Rubyv3
Rollin onj Rubyv3Rollin onj Rubyv3
Rollin onj Rubyv3
Oracle
 
Java hibernate orm implementation tool
Java hibernate   orm implementation toolJava hibernate   orm implementation tool
Java hibernate orm implementation tool
javaease
 
Virtual Classroom
Virtual ClassroomVirtual Classroom
Virtual Classroom
chintanshah007
 
Hibernate in Action
Hibernate in ActionHibernate in Action
Hibernate in Action
Akshay Ballarpure
 
Hibernate Session 1
Hibernate Session 1Hibernate Session 1
Hibernate Session 1
b_kathir
 
Hibernate tutorial
Hibernate tutorialHibernate tutorial
Hibernate tutorial
Mumbai Academisc
 
What is hibernate?
What is hibernate?What is hibernate?
What is hibernate?
kanchanmahajan23
 
Module-3 for career and JFSD ppt for study.pptx
Module-3 for career and JFSD ppt for study.pptxModule-3 for career and JFSD ppt for study.pptx
Module-3 for career and JFSD ppt for study.pptx
ViratKohli78
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course Content
SVRTechnologies
 
Ejb notes
Ejb notesEjb notes
Ejb notes
Mumbai Academisc
 
Effective Persistence Using ORM With Hibernate
Effective Persistence Using ORM With HibernateEffective Persistence Using ORM With Hibernate
Effective Persistence Using ORM With Hibernate
Edureka!
 
Leverage Hibernate and Spring Features Together
Leverage Hibernate and Spring Features TogetherLeverage Hibernate and Spring Features Together
Leverage Hibernate and Spring Features Together
Edureka!
 
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ NizampetHibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Jayarajus
 
Hibernate Interview Questions and Answers
Hibernate Interview Questions and AnswersHibernate Interview Questions and Answers
Hibernate Interview Questions and Answers
AnuragMourya8
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLink
Bill Lyons
 
Rollin onj Rubyv3
Rollin onj Rubyv3Rollin onj Rubyv3
Rollin onj Rubyv3
Oracle
 
Java hibernate orm implementation tool
Java hibernate   orm implementation toolJava hibernate   orm implementation tool
Java hibernate orm implementation tool
javaease
 
Hibernate Session 1
Hibernate Session 1Hibernate Session 1
Hibernate Session 1
b_kathir
 
Module-3 for career and JFSD ppt for study.pptx
Module-3 for career and JFSD ppt for study.pptxModule-3 for career and JFSD ppt for study.pptx
Module-3 for career and JFSD ppt for study.pptx
ViratKohli78
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course Content
SVRTechnologies
 
Ad

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Top 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing ServicesTop 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing Services
Infrassist Technologies Pvt. Ltd.
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 

Webinar: Hibernate - the ultimate ORM framework

  • 1. www.edureka.co/persistence-with-hibernate Hibernate-the ultimate ORM framework View Persistence with Hibernate course details at www.edureka.co/persistence-with-hibernate For Queries: Post on Twitter @edurekaIN: #askEdureka Post on Facebook /edurekaIN For more details please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email Us : [email protected]
  • 2. Slide 2 www.edureka.co/persistence-with-hibernate  Persistence Overview  What is Hibernate?  Persistence with Hibernate  Understand ORM  ORM using Hibernate  Benefits of Hibernate  Understand the skills required for Hibernate  Impedance mismatch and solution  Uses cases with Hibernate  Explore Hibernate tools  Implement use case of Hibernate At the end of this module, you will be able to: Objectives
  • 3. Slide 3 www.edureka.co/persistence-with-hibernate Hi DATABASE !!! How are you? I am doing good JAVA, How are you?
  • 4. Slide 4 www.edureka.co/persistence-with-hibernate I wish if we could help each other using our own style. I am not doing so good. Working on an application, lot of coding in it to connect with you, too complex.
  • 5. Slide 5 www.edureka.co/persistence-with-hibernate Hey, JAVA and DATABASE, My name is ORM!!
  • 6. Slide 6 www.edureka.co/persistence-with-hibernate I can do mapping between you two. What I mean is, I can MAP JAVA’s object model with DATABASE’s relational model.
  • 7. Slide 7 www.edureka.co/persistence-with-hibernate But there are so many Databases like MySQL, Oracle, SQL Server. Will you be able to MAP me with all of them ?? YEAH, I agree with JAVA.
  • 8. Slide 8 www.edureka.co/persistence-with-hibernate No worries, I can connect to all the databases easily. I am DATABASE independent.
  • 9. Slide 9 www.edureka.co/persistence-with-hibernate WOW, that’s great ORM, thanks a lot, you just solved all our problems. AWESOME!!!
  • 10. Slide 10 www.edureka.co/persistence-with-hibernate One of the fundamental building block for application development It is the ability of an object to survive the lifetime of the OS process in which it resides It’s a characteristic of storing the data that created it It’s relevant for objects with an internal state The state of data needs to be retained between object deactivation and object activation Data persistence normally happens through Databases Persistence data can be accessed by Object Oriented Languages Persistence
  • 11. Slide 11 www.edureka.co/persistence-with-hibernate An Object relational mapping library of java language for Object persistence and SQL databases Found in 2001 by Gavin King Transparent persistence of java objects with relational database Provides query language in synch with SQL Open source library Provides solutions for object relational impedance mismatch problems Hibernate
  • 12. Slide 12 www.edureka.co/persistence-with-hibernate  Objective is to solve the complexities existed in EJB2 persistence architecture  Provided a platform for Java language to interact with any database vendor  Dialect support  HQL interaction with same format in all databases Persistence with Hibernate Derby MySQL Oracle
  • 13. Slide 13 www.edureka.co/persistence-with-hibernate  Relational Database Management System (RDMBS) is a collection of data grouped into tables  One of the core components in persistence of data  Organizes the storage and retrieval of data persistence  Provides way of sharing persistence data across different applications  Provides easy way of accessing the persistence data to other application via JDBC  Provides a process of reducing the persistence data to its canonical form using Normalization RDBMS
  • 14. Slide 14 www.edureka.co/persistence-with-hibernate Object/relational mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema With a good ORM, you have to define the way you map your classes to tables once, which property maps to which column, which class to which table, and so forth With a good ORM, you can take the plain Java objects you use in the application and tell the ORM to persist them. This will automatically generate all the SQL needed to store the object An ORM allows you to load your objects just as easily: A good ORM will feature a query language too ORM
  • 15. Slide 15 www.edureka.co/persistence-with-hibernate Provides a simple API for storing and retrieving Java objects directly to and from the database Non-intrusive: No need to follow specific rules or design patterns Transparent: Your object model is unaware ORM using Hibernate JavaObject int id; String name; String getName() int getId() void setName(String) SQL Table id [int] primary key, name [varchar(50)], Magic Happens Here (O/R Mapper – i.e. Hibernate)
  • 16. Slide 16 www.edureka.co/persistence-with-hibernate Hibernate Layer in Application Presentation Layer Service/Business Layer Persistence Layer ORM/Hibernate Domain Model Database
  • 17. Slide 17 www.edureka.co/persistence-with-hibernate Benefits of Hibernate Technical benefits:  Generation of SQL statements .  Easy mapping of relational database tables to domain entities  Database independent  Effective caching framework Business benefits:  An open source framework  Faster development time  Support for multiple database vendors
  • 18. Slide 18 www.edureka.co/persistence-with-hibernate Hibernate Skills Hibernate Tools – Enables RDBMS mappings & associations with domain objects ,hence should have knowledge on databases SQL Skills – Demonstrates the traditional SQL skills to understand table relations Coding Skill – Should possess java coding skills in using annotations & xml mappings for domain objects OOP Skills – Should possess Object oriented programming skills to deal with Hibernate inheritance and polymorphism Skills Products Database MySQL ,Oracle or any RDBMS vendor Coding Java Configuration Management Eclipse , Hibernate tools SQL MySQL ,Oracle or any RDBMS vendor Hibernate Skill Matrix
  • 19. Slide 19 www.edureka.co/persistence-with-hibernate Complexity of Impedance Mismatch Objects Database Entries Student Course Takes Enrolls Registration Report Card Tuition Bill Class Schedule Student ID Course Number Grade Student ID Course Number
  • 20. Slide 20 www.edureka.co/persistence-with-hibernate Impedance Mismatch Solution Combination of OO and Relation languages solves impedance mismatch Building an Object Oriented Database Management System (OODBMS) Addressing problems through entity structures Usage of XML Databases Matching table with object entities
  • 21. Slide 21 www.edureka.co/persistence-with-hibernate Impedance Mismatch - Hibernate Provides an effective ORM approach to resolve impedance mismatch Entity beans mapping to tables in database Each instance of entity bean maps to a row in a table Mapping of java data types to relational data types Controls database transactions with entitles ORM/Hibernate JAVA Objects JAVA Objects JAVA Objects
  • 22. Slide 22 www.edureka.co/persistence-with-hibernate Use - Case of Hibernate MySQL MSSQL PostgreSQL U S E R C H O I C E An Ecommerce App
  • 23. Slide 23 www.edureka.co/persistence-with-hibernate An Ecommerce App Use - Case of Hibernate (Contd.) User User User Databases ?
  • 24. Slide 24 www.edureka.co/persistence-with-hibernate Use - Case of Hibernate (Contd.) If they allow user choice databases then how to abstract each and different queries in the underlying database. How this can be customized and what about searching mechanisms
  • 25. Slide 25 www.edureka.co/persistence-with-hibernate Use - Case of Hibernate (Contd.) User User User Databases ORM tool and database independent Handles transaction demarcations Provides enhanced search library
  • 26. Slide 26 www.edureka.co/persistence-with-hibernate Hibernate Tools An integrated suit plugin of eclipse Core layer of Jboss tools Components Usage Mapping Editor 1. Editor for mapping hbm files. 2. Auto completion and Syntax highlighting Console 1. Helps to configure database connections 2. Used to execute HQL queries. Reverse Engineering 1. Generates domain classes 2. Generates mapping files and annotated classes Wizards 1. Generates hibernate cfg files. 2. Console configurations. Ant task 1. Runs schema generation 2. Java code generation
  • 28. Slide 28 www.edureka.co/persistence-with-hibernate Course Topics  Module 1 » Introduction to ORM and Hibernate  Module 2 » Persistence and Session Factory  Module 3 » Association, Mapping & Inheritance  Module 4 » Criteria and Query Language  Module 5 » Transactions ,Filter and Performance  Module 6 » Search and Validation Framework  Module 7 » OGM, NoSQL and Spring  Module 8 » Project
  • 29. Slide 29 LIVE Online Class Class Recording in LMS 24/7 Post Class Support Module Wise Quiz Project Work Verifiable Certificate www.edureka.co/persistence-with-hibernate How it Works?