SlideShare a Scribd company logo
1 of 17
Download to read offline
Introduction to
                Hibernate
                Ashish Kulkarni



                                            1
11 March 2009      www.ashishkulkarni.com
How this presentation is organised
    A brief history of Relational Databases
    The Object Oriented Paradigm
    The Problem
    Solutions
    Demo - The Hibernate Way
    Beyond Hibernate
    Questions
         Welcome anytime as long as you can accept the following
         answers:
                I don’t know but I will find out
                Can we park that question and take it up after this presentation?
                                                                                    2
                                    www.ashishkulkarni.com
11 March 2009
What this Presentation is about

    There is a lot of documentation, books and
    examples on Hibernate.
    This Presentation doesn’t try to duplicate
    these. Instead, it tries to show what
    Hibernate is capable of with the help of
    real-life examples.



                                             3
                   www.ashishkulkarni.com
11 March 2009
A brief history of Relational Databases

    Relational Databases have been around for a
    long time
    Out of all other database models such as
    Hierarchical, Network, Object, etc., Relational
    Databases have come to rule the Database
    world
    They have come to support a vast array of
    object types and languages and have gained
    vast amount of industry support in terms of the
    sheer number of databases as well as tools


                                                      4
                      www.ashishkulkarni.com
11 March 2009
The Object Oriented Paradigm

    Java is an Object Oriented language
    (duh).
    It revels in Object Orientation. POJOs or
    Plain Old Java Objects form a clean way
    of storing and passing information within
    an application.



                                                5
                    www.ashishkulkarni.com
11 March 2009
The Problem

    While Java supports a vast array of databases
    using JDBC, performing any database actions
    for storing, updating and retrieving data using
    JDBC can be very cumbersome
    While this can be interesting for extremely small
    projects, it can put severe constraints on a large
    scale project and make any change very costly



                                                         6
                      www.ashishkulkarni.com
11 March 2009
The Problem (continued)
    While a lot of things such as managing database
    connections can be automated by means of
    libraries, we still need to write a considerable
    amount of code for storing and retrieving data
    from individual tables, setting field level
    parameters at every stage
    In addition, we need to create and manage
    transactions
    Transferring Java data types back and forward
    to Database data types is another issue


                                                   7
                     www.ashishkulkarni.com
11 March 2009
The Problem (continued)

    Managing relations can be even more
    tricky with plain JDBC. Just imagine
    writing code to persist a Parent Java
    object that Contains an ArrayList or
    HashSet of Child Java objects within a
    single transaction. And then, to retrieve it
    all back into a Java Object Graph.


                                                   8
                     www.ashishkulkarni.com
11 March 2009
Solutions and Issues

    Some of the early solutions were:
         CMP EJBs
                The issue with CMP EJBs was latency due to Lazy
                Loading, among others
         Custom/Homegrown ORM Frameworks
                Maintenance of such homegrown frameworks can
                be expensive




                                                               9
                              www.ashishkulkarni.com
11 March 2009
Demo – The Hibernate Way

    This demo will show CRUD (Create,
    Retrieve, Update and Delete) operations
    using Hibernate in the following scenarios:
         Single table with assigned ID
         Parent-Child relationship
         Single table with auto-generated ID
         Many-Many relationship


                                                 10
                        www.ashishkulkarni.com
11 March 2009
What Hibernate Tools can do
    Hibernate Tools can generate Java
    Classes based on database structure.
    These Java Classes are referred to as
    Entities.
    Hibernate Tools can either generate
    Annotations within the Entities or a
    separate hbm.xml files for each Entity.

                                              11
                    www.ashishkulkarni.com
11 March 2009
What Hibernate can do
    Hibernate Allows a Java Developer to
    work with Pure POJOs within the
    application without having to worry about
    persistence or database dialect.
    Hibernate can manage the complete
    lifecycle of an object/entity.



                                                12
                   www.ashishkulkarni.com
11 March 2009
Hibernate Lifecycle




                                         13
                www.ashishkulkarni.com
11 March 2009
Beyond Hibernate
    With EJB 3 and JPA, Sun has incorporated
    much of Hibernate into the standard. Hibernate
    and TopLink are the 2 available Persistence
    Providers for JPA, Hibernate being the strong
    favourite.
    Hibernate itself is still expanding. Hibernate
    Search brings full-text indexes and Google-like
    search capabilities to any traditional database
    application.


                                                      14
                      www.ashishkulkarni.com
11 March 2009
Questions




                                         15
                www.ashishkulkarni.com
11 March 2009
Where to go from here
    Me – ashish@ebizss.com
    My website – www.ashishkulkarni.com
    www.hibernate.org
    Books:
         Manning – Java Persistence with Hibernate – Bauer and King




                                                                      16
                             www.ashishkulkarni.com
11 March 2009
A bit about me
    I am a Java Contractor currently contracting with JP Morgan in
    Glasgow. Apart from contracting, I am actively working with other
    developers at my company to develop bespoke software for private
    clients.
    I have been using JBoss Seam, Spring and Hibernate driven JPA for
    a couple of years now and am absolutely loving it.
    Having worked on FoxPro, Oracle, Visual C++ and SAP in the past,
    I have 15 years of development experience.
    I have been using Java since 2000 which to this day remains my
    favourite computer language.
    I have worked in a variety of industries such as Retail Banking,
    Investment Banking, Financial Institutions, Pharmaceuticals,
    Manufacturing, Automobiles and Telecommunications.



                                                                   17
                            www.ashishkulkarni.com
11 March 2009

More Related Content

What's hot

24 collections framework interview questions
24 collections framework interview questions24 collections framework interview questions
24 collections framework interview questions
Arun Vasanth
 
Java Persistence API (JPA) Step By Step
Java Persistence API (JPA) Step By StepJava Persistence API (JPA) Step By Step
Java Persistence API (JPA) Step By Step
Guo Albert
 
Hibernate Tutorial
Hibernate TutorialHibernate Tutorial
Hibernate Tutorial
Ram132
 
Hibernate jj
Hibernate jjHibernate jj
Hibernate jj
Joe Jacob
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
guest11106b
 
Architecting virtualized infrastructure for big data presentation
Architecting virtualized infrastructure for big data presentationArchitecting virtualized infrastructure for big data presentation
Architecting virtualized infrastructure for big data presentation
Vlad Ponomarev
 

What's hot (19)

Hibernate Basic Concepts - Presentation
Hibernate Basic Concepts - PresentationHibernate Basic Concepts - Presentation
Hibernate Basic Concepts - Presentation
 
Spring (1)
Spring (1)Spring (1)
Spring (1)
 
Introduction to Hibernate
Introduction to HibernateIntroduction to Hibernate
Introduction to Hibernate
 
24 collections framework interview questions
24 collections framework interview questions24 collections framework interview questions
24 collections framework interview questions
 
Hibernate Developer Reference
Hibernate Developer ReferenceHibernate Developer Reference
Hibernate Developer Reference
 
Spring & hibernate
Spring & hibernateSpring & hibernate
Spring & hibernate
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
 
Hibernate
HibernateHibernate
Hibernate
 
Java Persistence API (JPA) Step By Step
Java Persistence API (JPA) Step By StepJava Persistence API (JPA) Step By Step
Java Persistence API (JPA) Step By Step
 
Hibernate Tutorial
Hibernate TutorialHibernate Tutorial
Hibernate Tutorial
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
Hibernate jj
Hibernate jjHibernate jj
Hibernate jj
 
Big data: current technology scope.
Big data: current technology scope.Big data: current technology scope.
Big data: current technology scope.
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
Architecting virtualized infrastructure for big data presentation
Architecting virtualized infrastructure for big data presentationArchitecting virtualized infrastructure for big data presentation
Architecting virtualized infrastructure for big data presentation
 
JSP - Part 1
JSP - Part 1JSP - Part 1
JSP - Part 1
 
Hadoop 101
Hadoop 101Hadoop 101
Hadoop 101
 
Hibernate I
Hibernate IHibernate I
Hibernate I
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 

Viewers also liked

02 Hibernate Introduction
02 Hibernate Introduction02 Hibernate Introduction
02 Hibernate Introduction
Ranjan Kumar
 
jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentation
John Slick
 
Introduction to hibernate
Introduction to hibernateIntroduction to hibernate
Introduction to hibernate
hr1383
 

Viewers also liked (18)

Introduction to Hibernate Framework
Introduction to Hibernate FrameworkIntroduction to Hibernate Framework
Introduction to Hibernate Framework
 
A PRESENTATION ON STRUTS & HIBERNATE
A PRESENTATION ON STRUTS & HIBERNATEA PRESENTATION ON STRUTS & HIBERNATE
A PRESENTATION ON STRUTS & HIBERNATE
 
An isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra dasAn isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra das
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
 
Struts & hibernate ppt
Struts & hibernate pptStruts & hibernate ppt
Struts & hibernate ppt
 
Hibernate
HibernateHibernate
Hibernate
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
THE WORLDS NO.1 BLACK MAGIC EXPERT WITH POWERFUL LOVE SPELLS +27631229624
THE WORLDS NO.1 BLACK MAGIC EXPERT WITH POWERFUL LOVE SPELLS  +27631229624 THE WORLDS NO.1 BLACK MAGIC EXPERT WITH POWERFUL LOVE SPELLS  +27631229624
THE WORLDS NO.1 BLACK MAGIC EXPERT WITH POWERFUL LOVE SPELLS +27631229624
 
Hibernate an introduction
Hibernate   an introductionHibernate   an introduction
Hibernate an introduction
 
02 Hibernate Introduction
02 Hibernate Introduction02 Hibernate Introduction
02 Hibernate Introduction
 
Introduction to Hibernate Framework
Introduction to Hibernate FrameworkIntroduction to Hibernate Framework
Introduction to Hibernate Framework
 
Hibernate An Introduction
Hibernate An IntroductionHibernate An Introduction
Hibernate An Introduction
 
jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentation
 
Introduction to hibernate
Introduction to hibernateIntroduction to hibernate
Introduction to hibernate
 
Hibernate ORM: Tips, Tricks, and Performance Techniques
Hibernate ORM: Tips, Tricks, and Performance TechniquesHibernate ORM: Tips, Tricks, and Performance Techniques
Hibernate ORM: Tips, Tricks, and Performance Techniques
 
Introduction to hibernate
Introduction to hibernateIntroduction to hibernate
Introduction to hibernate
 
Intro To Hibernate
Intro To HibernateIntro To Hibernate
Intro To Hibernate
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to Introduction To Hibernate

Database management-system
Database management-systemDatabase management-system
Database management-system
kalasalingam
 
02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions
Dhiraj Champawat
 

Similar to Introduction To Hibernate (20)

Introduction To J Boss Seam
Introduction To J Boss SeamIntroduction To J Boss Seam
Introduction To J Boss Seam
 
Webinar: Hibernate - the ultimate ORM framework
Webinar: Hibernate - the ultimate ORM frameworkWebinar: Hibernate - the ultimate ORM framework
Webinar: Hibernate - the ultimate ORM framework
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
 
Database management-system
Database management-systemDatabase management-system
Database management-system
 
Introduction to backbone_js
Introduction to backbone_jsIntroduction to backbone_js
Introduction to backbone_js
 
Hibernate Interview Questions | Edureka
Hibernate Interview Questions | EdurekaHibernate Interview Questions | Edureka
Hibernate Interview Questions | Edureka
 
Pros/Cons JDBC HIBERNATE EJB
Pros/Cons JDBC HIBERNATE EJBPros/Cons JDBC HIBERNATE EJB
Pros/Cons JDBC HIBERNATE EJB
 
Hibernate
HibernateHibernate
Hibernate
 
your browser, your storage
your browser, your storageyour browser, your storage
your browser, your storage
 
Fantastic four machine_learning_java_libraries
Fantastic four machine_learning_java_librariesFantastic four machine_learning_java_libraries
Fantastic four machine_learning_java_libraries
 
Hibernate Interview Questions and Answers
Hibernate Interview Questions and AnswersHibernate Interview Questions and Answers
Hibernate Interview Questions and Answers
 
Practical Semantic Web and Why You Should Care - DrupalCon DC 2009
Practical Semantic Web and Why You Should Care - DrupalCon DC 2009Practical Semantic Web and Why You Should Care - DrupalCon DC 2009
Practical Semantic Web and Why You Should Care - DrupalCon DC 2009
 
Your browser, your storage (extended version)
Your browser, your storage (extended version)Your browser, your storage (extended version)
Your browser, your storage (extended version)
 
your browser, my storage
your browser, my storageyour browser, my storage
your browser, my storage
 
Free Hibernate Tutorial | VirtualNuggets
Free Hibernate Tutorial  | VirtualNuggetsFree Hibernate Tutorial  | VirtualNuggets
Free Hibernate Tutorial | VirtualNuggets
 
Top 10 Libraries of Java.pptx
Top 10 Libraries of Java.pptxTop 10 Libraries of Java.pptx
Top 10 Libraries of Java.pptx
 
Is multi-model the future of NoSQL?
Is multi-model the future of NoSQL?Is multi-model the future of NoSQL?
Is multi-model the future of NoSQL?
 
Overview of Java
Overview of JavaOverview of Java
Overview of Java
 
02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions
 
Hibernate Mapping on the Fly
Hibernate Mapping on the FlyHibernate Mapping on the Fly
Hibernate Mapping on the Fly
 

More from ashishkulkarni (9)

Using LinkedIn
Using LinkedInUsing LinkedIn
Using LinkedIn
 
Using LinkedIn To Get Business
Using LinkedIn To Get BusinessUsing LinkedIn To Get Business
Using LinkedIn To Get Business
 
Using FaceBook Pages for Business
Using FaceBook Pages for BusinessUsing FaceBook Pages for Business
Using FaceBook Pages for Business
 
Using WordPress For Business
Using WordPress For BusinessUsing WordPress For Business
Using WordPress For Business
 
Using LinkedIn For Business
Using LinkedIn For BusinessUsing LinkedIn For Business
Using LinkedIn For Business
 
Diy SEO
Diy SEODiy SEO
Diy SEO
 
Using Linked In For BNI
Using Linked In For BNIUsing Linked In For BNI
Using Linked In For BNI
 
Using Social Media For Business
Using Social Media For BusinessUsing Social Media For Business
Using Social Media For Business
 
Using LinkedIn For Business
Using LinkedIn For BusinessUsing LinkedIn For Business
Using LinkedIn For Business
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Introduction To Hibernate

  • 1. Introduction to Hibernate Ashish Kulkarni 1 11 March 2009 www.ashishkulkarni.com
  • 2. How this presentation is organised A brief history of Relational Databases The Object Oriented Paradigm The Problem Solutions Demo - The Hibernate Way Beyond Hibernate Questions Welcome anytime as long as you can accept the following answers: I don’t know but I will find out Can we park that question and take it up after this presentation? 2 www.ashishkulkarni.com 11 March 2009
  • 3. What this Presentation is about There is a lot of documentation, books and examples on Hibernate. This Presentation doesn’t try to duplicate these. Instead, it tries to show what Hibernate is capable of with the help of real-life examples. 3 www.ashishkulkarni.com 11 March 2009
  • 4. A brief history of Relational Databases Relational Databases have been around for a long time Out of all other database models such as Hierarchical, Network, Object, etc., Relational Databases have come to rule the Database world They have come to support a vast array of object types and languages and have gained vast amount of industry support in terms of the sheer number of databases as well as tools 4 www.ashishkulkarni.com 11 March 2009
  • 5. The Object Oriented Paradigm Java is an Object Oriented language (duh). It revels in Object Orientation. POJOs or Plain Old Java Objects form a clean way of storing and passing information within an application. 5 www.ashishkulkarni.com 11 March 2009
  • 6. The Problem While Java supports a vast array of databases using JDBC, performing any database actions for storing, updating and retrieving data using JDBC can be very cumbersome While this can be interesting for extremely small projects, it can put severe constraints on a large scale project and make any change very costly 6 www.ashishkulkarni.com 11 March 2009
  • 7. The Problem (continued) While a lot of things such as managing database connections can be automated by means of libraries, we still need to write a considerable amount of code for storing and retrieving data from individual tables, setting field level parameters at every stage In addition, we need to create and manage transactions Transferring Java data types back and forward to Database data types is another issue 7 www.ashishkulkarni.com 11 March 2009
  • 8. The Problem (continued) Managing relations can be even more tricky with plain JDBC. Just imagine writing code to persist a Parent Java object that Contains an ArrayList or HashSet of Child Java objects within a single transaction. And then, to retrieve it all back into a Java Object Graph. 8 www.ashishkulkarni.com 11 March 2009
  • 9. Solutions and Issues Some of the early solutions were: CMP EJBs The issue with CMP EJBs was latency due to Lazy Loading, among others Custom/Homegrown ORM Frameworks Maintenance of such homegrown frameworks can be expensive 9 www.ashishkulkarni.com 11 March 2009
  • 10. Demo – The Hibernate Way This demo will show CRUD (Create, Retrieve, Update and Delete) operations using Hibernate in the following scenarios: Single table with assigned ID Parent-Child relationship Single table with auto-generated ID Many-Many relationship 10 www.ashishkulkarni.com 11 March 2009
  • 11. What Hibernate Tools can do Hibernate Tools can generate Java Classes based on database structure. These Java Classes are referred to as Entities. Hibernate Tools can either generate Annotations within the Entities or a separate hbm.xml files for each Entity. 11 www.ashishkulkarni.com 11 March 2009
  • 12. What Hibernate can do Hibernate Allows a Java Developer to work with Pure POJOs within the application without having to worry about persistence or database dialect. Hibernate can manage the complete lifecycle of an object/entity. 12 www.ashishkulkarni.com 11 March 2009
  • 13. Hibernate Lifecycle 13 www.ashishkulkarni.com 11 March 2009
  • 14. Beyond Hibernate With EJB 3 and JPA, Sun has incorporated much of Hibernate into the standard. Hibernate and TopLink are the 2 available Persistence Providers for JPA, Hibernate being the strong favourite. Hibernate itself is still expanding. Hibernate Search brings full-text indexes and Google-like search capabilities to any traditional database application. 14 www.ashishkulkarni.com 11 March 2009
  • 15. Questions 15 www.ashishkulkarni.com 11 March 2009
  • 16. Where to go from here Me – ashish@ebizss.com My website – www.ashishkulkarni.com www.hibernate.org Books: Manning – Java Persistence with Hibernate – Bauer and King 16 www.ashishkulkarni.com 11 March 2009
  • 17. A bit about me I am a Java Contractor currently contracting with JP Morgan in Glasgow. Apart from contracting, I am actively working with other developers at my company to develop bespoke software for private clients. I have been using JBoss Seam, Spring and Hibernate driven JPA for a couple of years now and am absolutely loving it. Having worked on FoxPro, Oracle, Visual C++ and SAP in the past, I have 15 years of development experience. I have been using Java since 2000 which to this day remains my favourite computer language. I have worked in a variety of industries such as Retail Banking, Investment Banking, Financial Institutions, Pharmaceuticals, Manufacturing, Automobiles and Telecommunications. 17 www.ashishkulkarni.com 11 March 2009