SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Let’s Know First What is JDBC & ORM is 

The Java Database Connectivity is a free open-source
application programming interface. It is a API which
specifies interfaces for connectivity between the java
applications and a wide range of databases.
It is the traditional process to
interact with the database.
ORM is responsible to store Object Model data
into Relational Model and further read the data from
Relational Model into Object Model.
Saving data using JDBC
We write code manually to store objects(data) to database using jdbc.
ORM
SAVING DATA USING ORM(Hibernate)
-> Now It is done by Mapping of object with the column field.
-> It is done by Hibernate internally. For that we have to map our data members to table’s field.
-> Mapping is done by 2 ways to mapped our objects to save in hibernate –
a) Using xml b) Annotation
-> We don’t have to write queries for the operations(create, read, update, delete).
-> Maps data directly from class to database fields.
Mapping Using Annotation
Why ORM over JDBC :-
In ORM, we only have to create object of class and map it.
No need write lengthy code. It is time efficient.
It simplifies the process to deal with the database.
It boosts the application Development . ORM
(Hibernate) is light weight
ORM fills gap in the mismatches between Object model and
relational model.
NOTE – It is not faster than JDBC, and also In its backend JDBC
is internally running and saving data into DB using queries.
Hibernate ORM over JDBC

Weitere Àhnliche Inhalte

Was ist angesagt?

Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)Sujit Majety
 
Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and ExampleJava Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Examplekamal kotecha
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depthVinay Kumar
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentationguest11106b
 
Introduction to Spring Boot!
Introduction to Spring Boot!Introduction to Spring Boot!
Introduction to Spring Boot!Jakub Kubrynski
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And MultithreadingShraddha
 
Java spring framework
Java spring frameworkJava spring framework
Java spring frameworkRajiv Gupta
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Pooja Talreja
 
Java beans
Java beansJava beans
Java beanssptatslide
 
Introduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresIntroduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresAkash Badone
 
Spring Framework
Spring FrameworkSpring Framework
Spring Frameworknomykk
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Sandeep Rawat
 

Was ist angesagt? (20)

Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and ExampleJava Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Example
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
Spring jdbc
Spring jdbcSpring jdbc
Spring jdbc
 
Struts framework
Struts frameworkStruts framework
Struts framework
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Introduction to Spring Boot!
Introduction to Spring Boot!Introduction to Spring Boot!
Introduction to Spring Boot!
 
Java And Multithreading
Java And MultithreadingJava And Multithreading
Java And Multithreading
 
Java spring framework
Java spring frameworkJava spring framework
Java spring framework
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)
 
Java beans
Java beansJava beans
Java beans
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Introduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresIntroduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their features
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Jdbc
JdbcJdbc
Jdbc
 
Spring boot
Spring bootSpring boot
Spring boot
 
Core Java
Core JavaCore Java
Core Java
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
 

Ähnlich wie Hibernate ORM over JDBC

Free Hibernate Tutorial | VirtualNuggets
Free Hibernate Tutorial  | VirtualNuggetsFree Hibernate Tutorial  | VirtualNuggets
Free Hibernate Tutorial | VirtualNuggetsVirtual Nuggets
 
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ NizampetHibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ NizampetJayarajus
 
Java database programming with jdbc
Java database programming with jdbcJava database programming with jdbc
Java database programming with jdbcsriram raj
 
IRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET Journal
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3Rajiv Gupta
 
Session 1 Tp1
Session 1 Tp1Session 1 Tp1
Session 1 Tp1phanleson
 
Internship Report
Internship ReportInternship Report
Internship ReportJiali Chen
 
Hibernate notes
Hibernate notesHibernate notes
Hibernate notesRajeev Uppala
 
SHOW104: Practical Java
SHOW104: Practical JavaSHOW104: Practical Java
SHOW104: Practical JavaMark Myers
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1myrajendra
 

Ähnlich wie Hibernate ORM over JDBC (20)

Free Hibernate Tutorial | VirtualNuggets
Free Hibernate Tutorial  | VirtualNuggetsFree Hibernate Tutorial  | VirtualNuggets
Free Hibernate Tutorial | VirtualNuggets
 
Hibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ NizampetHibernate training at HarshithaTechnologySolutions @ Nizampet
Hibernate training at HarshithaTechnologySolutions @ Nizampet
 
Hibernate in Action
Hibernate in ActionHibernate in Action
Hibernate in Action
 
EJB.docx
EJB.docxEJB.docx
EJB.docx
 
Assignment#10
Assignment#10Assignment#10
Assignment#10
 
Java database programming with jdbc
Java database programming with jdbcJava database programming with jdbc
Java database programming with jdbc
 
IRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET- Review on Java Database Connectivity
IRJET- Review on Java Database Connectivity
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
 
Session 1 Tp1
Session 1 Tp1Session 1 Tp1
Session 1 Tp1
 
JDBC-Introduction
JDBC-IntroductionJDBC-Introduction
JDBC-Introduction
 
Jdbc_ravi_2016
Jdbc_ravi_2016Jdbc_ravi_2016
Jdbc_ravi_2016
 
Core jdbc basics
Core jdbc basicsCore jdbc basics
Core jdbc basics
 
Internship Report
Internship ReportInternship Report
Internship Report
 
Hibernate notes
Hibernate notesHibernate notes
Hibernate notes
 
Hibernate I
Hibernate IHibernate I
Hibernate I
 
SHOW104: Practical Java
SHOW104: Practical JavaSHOW104: Practical Java
SHOW104: Practical Java
 
What is hibernate?
What is hibernate?What is hibernate?
What is hibernate?
 
What is hibernate?
What is hibernate?What is hibernate?
What is hibernate?
 
jdbc
jdbcjdbc
jdbc
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 

KĂŒrzlich hochgeladen

Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...Abortion Clinic
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Henry Schreiner
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)Roberto Bettazzoni
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmuxevmux96
 
ćŸźäżĄć·èŽ­äč°
ćŸźäżĄć·èŽ­äč°ćŸźäżĄć·èŽ­äč°
ćŸźäżĄć·èŽ­äč°westwaterchamplin107
 
Novo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNovo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNeo4j
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfSrushith Repakula
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfICS
 
[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)Dimitrios Platis
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanNeo4j
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfkalichargn70th171
 

KĂŒrzlich hochgeladen (20)

Abortion Clinic in Midrand [(+27832195400*)]đŸ„Safe Abortion Pills In Midrand |...
Abortion Clinic in Midrand [(+27832195400*)]đŸ„Safe Abortion Pills In Midrand |...Abortion Clinic in Midrand [(+27832195400*)]đŸ„Safe Abortion Pills In Midrand |...
Abortion Clinic in Midrand [(+27832195400*)]đŸ„Safe Abortion Pills In Midrand |...
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
Abortion Pill Prices Germiston ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
 
Abortion Clinic In Johannesburg ](+27832195400*)[ đŸ„ Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ đŸ„ Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ đŸ„ Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ đŸ„ Safe Abortion Pills in Jo...
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ đŸ„ Women's Abortion Clinic i...
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ đŸ„ Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ đŸ„ Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ đŸ„ Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ đŸ„ Women's Abortion Clinic In...
 
Abortion Pill Prices Polokwane ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
Abortion Pill Prices Polokwane ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...Abortion Pill Prices Polokwane ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
Abortion Pill Prices Polokwane ](+27832195400*)[ đŸ„ Women's Abortion Clinic in...
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
ćŸźäżĄć·èŽ­äč°
ćŸźäżĄć·èŽ­äč°ćŸźäżĄć·èŽ­äč°
ćŸźäżĄć·èŽ­äč°
 
Novo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNovo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMs
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)[GRCPP] Introduction to concepts (C++20)
[GRCPP] Introduction to concepts (C++20)
 
Abortion Clinic in Bloemfontein [(+27832195400*)]đŸ„Safe Abortion Pills In Bloe...
Abortion Clinic in Bloemfontein [(+27832195400*)]đŸ„Safe Abortion Pills In Bloe...Abortion Clinic in Bloemfontein [(+27832195400*)]đŸ„Safe Abortion Pills In Bloe...
Abortion Clinic in Bloemfontein [(+27832195400*)]đŸ„Safe Abortion Pills In Bloe...
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
 

Hibernate ORM over JDBC

  • 1.
  • 2. Let’s Know First What is JDBC & ORM is 
 The Java Database Connectivity is a free open-source application programming interface. It is a API which specifies interfaces for connectivity between the java applications and a wide range of databases. It is the traditional process to interact with the database. ORM is responsible to store Object Model data into Relational Model and further read the data from Relational Model into Object Model.
  • 3. Saving data using JDBC We write code manually to store objects(data) to database using jdbc.
  • 4. ORM SAVING DATA USING ORM(Hibernate) -> Now It is done by Mapping of object with the column field. -> It is done by Hibernate internally. For that we have to map our data members to table’s field. -> Mapping is done by 2 ways to mapped our objects to save in hibernate – a) Using xml b) Annotation -> We don’t have to write queries for the operations(create, read, update, delete). -> Maps data directly from class to database fields.
  • 6. Why ORM over JDBC :- In ORM, we only have to create object of class and map it. No need write lengthy code. It is time efficient. It simplifies the process to deal with the database. It boosts the application Development . ORM (Hibernate) is light weight ORM fills gap in the mismatches between Object model and relational model. NOTE – It is not faster than JDBC, and also In its backend JDBC is internally running and saving data into DB using queries.