SlideShare a Scribd company logo
Java Persistence API
JPA
Review Topics:
 Introduction
 what is the JPA?
 What is the JPA contains of?
 Why developers should Create the JPA?
 Is there Relationship between the EJB and JPA?
 What the JPA dose exactly?
 Sample process of java persistence API.
 Comparing between the EJB3 and the EJB2?
 What the advantages of using the JPA?
 what is my Tutorial ?
 Questions?
Introduction
 One of the significant improvement in the java plate
form is the JPA.
 This is because it offers developers much easier way
to access and manipulate relational data in the java
application.
 There is more than that .
 The reaction to the java persistence has been
extremely positive from the java community
 JPA has had a good start with strong acceptance by
the java developers.
What is JPA?
 JPA stands for a java persistence API which is Javax.
Persistence Package. Basically , it is a Java programming
Language framework that helps developers to control relational
data in java platform. The JPA exactly was described as part of
the EJB3.0 , which is a replacement to the EJB2CMP Entity
Beans specification, specification . As we know that a java
persistence API is the newest of several Java persistence
specifications.
What is persistence consists of.. ?
 Any persistence consists of there Areas:
 The API, defined in the Javax. Persistence
package
 The java persistence Query Language
 Object / relational meta data.
What JPA does exactly?
 JPA defined a runtime Entity Manger API
processing queries and transaction on the
objects against the database.
 It is defined a objects-level query language
JPQL to allow querying of the objects from
the database.
What is java persistence query language is
used for?
 Basically, JPQL stands for Java Persistence
Query Language. And it is used to make
queries for against entities stored in a
relational database. Queries resemble SQL
queries in syntax, but operate against entity
objects rather than directly with database
tables.
Is there relationship between the JPA
and EJB?
 The answer is yes , there is a relationship
between Java Persistence API(JPA) and
Enterprise Java Beans (EJB).
 java persistence is a part of EJB which is it part
of the Java EE5. Also, developers do not require
EJB container in order to run applications, which
use persistence. The API might be used
outside the container within Java EE and
can even stand alone in the Java
Platform, Standard Edition (Java SE).
Sample Process of Using Java
Persistence API
Why we should use the Java Persistence
API?
 There is a great Motivation for creating JPA
 Many enterprise Java developers have been using
lightweight persistent objects, which supported by
open-source frameworks or data access objects as a
substitute of entity beans. This is because entity
beans and enterprise beans were too heavyweight
and complicated. Furthermore, they could only be
used in Java EE application servers.
Comparing the EJB3 and the EJB2
 In fact, there are many differences, which are the advantages of
EJB3.0, between the EJB 2.1 version EJB 3.0 version :
The EJB 3.0 EJB 2.1
1. Annotations and default replace
a lot of cumbersome code.
2. Persistence entities are simple
concrete ,and plain old java
object ( POJO)classes that
developers can run as they
would any other simple java
technology classes
3. The API provides capabilities ,
such as inheritance and
polymorphism.
1. Developers have to create
lengthy, complicated ,and
deployment descriptors in
the application that use EJB
technology.
2. Developers have to
implement the various
abstract classes , interfaces,
and interface methods
whether they use them or
not.
3. Those capabilities are not
Example: to illustrate more
 In the EJB 3.0 entity, java developers do not require to code
interfaces such as LocalAddressHome and LocalAddress - or even a
deployment descriptor. What they need to have just the entity class.
This is because in the application's EJB 3.0 version, what's required
for an entity has been reduced from three classes -- for local interfaces
and a business class -- to one entity class. In addition to that , they
don’t need to implement the EJBObject and EJBLocalObject
interfaces. For instance, a session bean now need only a bean class
and a business interface, which is a simple Java technology interface.
Let’s look to Another Example
 In this example, java developers can map a hierarchy of
entities, where one entity subclasses another, to a relational
database structure, and submit queries against the base class.
The queries are treated polymorphically against the entire
hierarchy.
Summary of the Advantages of JPA
 JPA Requires Just smaller number of classes and
interfaces
 It gets rid of lengthy deployment descriptors through
annotations
 JPA Addresses most typical specifications through
annotation defaults.
 JPA supports easier, cleaner, and standardized object-
relational mapping.
 It add support for polymorphism, and inheritance.
 Also, dynamic queries and named queries is added to the
JPA
 Supports a Java Persistence query language -- an
improved EJB QL
 Makes it easier to test entities outside of the EJB container
 Can be used outside of the container
what is my Tutorial ?
double Click on the picture to see the tutorial
References
 Wikipedia ebsite ( http://en.wikipedia.org/wiki/Java_Persistence_API)
 Answer website http://www.answers.com/Java%20Persistence%20API
 http://java.sun.com/javaee/5/docs/tutorial/doc/bnbqa.html
 Project Using Generics with Java Persistence by Sean Brydon,
Inderjeet Singh
(https://blueprints.dev.java.net/bpcatalog/ee5/persistence/generics.htm
l)
 Java Persistence API 2.0—A Great Start Gets Better (TS-4945) by Ed
ort.(http://java.sun.com/javaone/sf/2007/articles/persistence2_0.jsp)
 Article : The Java Persistence API - A Simpler Programming Model for
Entity Persistence byBy Rahul Biswas and Ed Ort, May 2006
(http://java.sun.com/developer/technicalArticles/J2EE/jpa/)
Questions
If you want to know more about JPA ,
just read this book
By

More Related Content

What's hot

jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentationJohn Slick
 
Hibernate ppt
Hibernate pptHibernate ppt
Hibernate ppt
Aneega
 
Spring data jpa
Spring data jpaSpring data jpa
Spring data jpa
Jeevesh Pandey
 
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
kamal kotecha
 
Spring jdbc
Spring jdbcSpring jdbc
Spring jdbc
Harshit Choudhary
 
Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
Return on Intelligence
 
Hibernate presentation
Hibernate presentationHibernate presentation
Hibernate presentation
Manav Prasad
 
Spring Core
Spring CoreSpring Core
Spring Core
Pushan Bhattacharya
 
Hibernate
HibernateHibernate
Hibernate
Prashant Kalkar
 
Hibernate
HibernateHibernate
Hibernate
Ajay K
 
Hibernate tutorial for beginners
Hibernate tutorial for beginnersHibernate tutorial for beginners
Hibernate tutorial for beginners
Rahul Jain
 
Java 8 presentation
Java 8 presentationJava 8 presentation
Java 8 presentation
Van Huong
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentationguest11106b
 
Introduction to Hibernate
Introduction to HibernateIntroduction to Hibernate
Introduction to Hibernate
Krishnakanth Goud
 
springdatajpa-up.pdf
springdatajpa-up.pdfspringdatajpa-up.pdf
springdatajpa-up.pdf
ssuser0562f1
 
Hibernate
HibernateHibernate
Hibernate
VISHAL DONGA
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
Dzmitry Naskou
 
Serialization & De-serialization in Java
Serialization & De-serialization in JavaSerialization & De-serialization in Java
Serialization & De-serialization in Java
InnovationM
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
Vinay Kumar
 

What's hot (20)

jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentation
 
Hibernate ppt
Hibernate pptHibernate ppt
Hibernate ppt
 
Spring data jpa
Spring data jpaSpring data jpa
Spring data jpa
 
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 jdbc
Spring jdbcSpring jdbc
Spring jdbc
 
Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
 
Hibernate presentation
Hibernate presentationHibernate presentation
Hibernate presentation
 
Spring Core
Spring CoreSpring Core
Spring Core
 
Hibernate
HibernateHibernate
Hibernate
 
Hibernate
HibernateHibernate
Hibernate
 
Hibernate tutorial for beginners
Hibernate tutorial for beginnersHibernate tutorial for beginners
Hibernate tutorial for beginners
 
Java 8 presentation
Java 8 presentationJava 8 presentation
Java 8 presentation
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
Introduction to Hibernate
Introduction to HibernateIntroduction to Hibernate
Introduction to Hibernate
 
Spring annotation
Spring annotationSpring annotation
Spring annotation
 
springdatajpa-up.pdf
springdatajpa-up.pdfspringdatajpa-up.pdf
springdatajpa-up.pdf
 
Hibernate
HibernateHibernate
Hibernate
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
 
Serialization & De-serialization in Java
Serialization & De-serialization in JavaSerialization & De-serialization in Java
Serialization & De-serialization in Java
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 

Viewers also liked

ZIKA, VERY CONTAGIOUS!
ZIKA, VERY CONTAGIOUS!ZIKA, VERY CONTAGIOUS!
ZIKA, VERY CONTAGIOUS!
AMERICANMEDICALDETECTIVE
 
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
Irwan Haribudiman
 
Beer-like gluten-free beverages fermented from buckwheat and quinoa
Beer-like gluten-free beverages fermented from buckwheat and quinoaBeer-like gluten-free beverages fermented from buckwheat and quinoa
Beer-like gluten-free beverages fermented from buckwheat and quinoaMatja? De?elak
 
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
Irwan Haribudiman
 
Story board for reading skill
Story board for reading skillStory board for reading skill
Story board for reading skill
Citra Risdiani
 
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
Irwan Haribudiman
 
Virtual classrooms and labs using Big Blue Button
Virtual classrooms and labs using Big Blue ButtonVirtual classrooms and labs using Big Blue Button
Virtual classrooms and labs using Big Blue Button
Pradeep Kumar TS
 
Actividades niños 3 5
Actividades niños 3 5Actividades niños 3 5
Actividades niños 3 5sjoyera
 

Viewers also liked (9)

ZIKA, VERY CONTAGIOUS!
ZIKA, VERY CONTAGIOUS!ZIKA, VERY CONTAGIOUS!
ZIKA, VERY CONTAGIOUS!
 
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
3. Perilaku Wisatawan - Self-Concept & Consumption Patterns
 
Beer-like gluten-free beverages fermented from buckwheat and quinoa
Beer-like gluten-free beverages fermented from buckwheat and quinoaBeer-like gluten-free beverages fermented from buckwheat and quinoa
Beer-like gluten-free beverages fermented from buckwheat and quinoa
 
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
2. Sistem Informasi Transportasi Pariwisata - Tourism Transportation Informat...
 
Story board for reading skill
Story board for reading skillStory board for reading skill
Story board for reading skill
 
Williams F1 588
Williams F1 588Williams F1 588
Williams F1 588
 
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
9. Man Pemeliharaan Sarana & Prasarana Resort & Leisure - Struktur Organisasi...
 
Virtual classrooms and labs using Big Blue Button
Virtual classrooms and labs using Big Blue ButtonVirtual classrooms and labs using Big Blue Button
Virtual classrooms and labs using Big Blue Button
 
Actividades niños 3 5
Actividades niños 3 5Actividades niños 3 5
Actividades niños 3 5
 

Similar to Jpa

1. (with APA reference )Describe in detail the roles that the follow.pdf
1. (with APA reference )Describe in detail the roles that the follow.pdf1. (with APA reference )Describe in detail the roles that the follow.pdf
1. (with APA reference )Describe in detail the roles that the follow.pdf
arpitaeron555
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Veerabadra Badra
 
Java
JavaJava
Java
raj esaki
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
princeirfancivil
 
java tutorial for beginner - Free Download
java tutorial for beginner - Free Downloadjava tutorial for beginner - Free Download
java tutorial for beginner - Free Download
TIB Academy
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Java. converted (2)
Java. converted (2)Java. converted (2)
Java. converted (2)
AVINASHMEHRA6
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
javeed_mhd
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Phaniu
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
javeed_mhd
 
Java interview question
Java interview questionJava interview question
Java interview question
varatharajanrajeswar
 
Java Basics
Java BasicsJava Basics
Java Basics
Khan625
 
Java in Mule
Java in MuleJava in Mule
Java in Mule
Shahid Shaik
 
Java Basics in Mule
Java Basics in MuleJava Basics in Mule
Java Basics in Mule
Rajkattamuri
 
Accelerating Development.pptx
Accelerating Development.pptxAccelerating Development.pptx
Accelerating Development.pptx
Uraz Pokharel
 

Similar to Jpa (20)

1. (with APA reference )Describe in detail the roles that the follow.pdf
1. (with APA reference )Describe in detail the roles that the follow.pdf1. (with APA reference )Describe in detail the roles that the follow.pdf
1. (with APA reference )Describe in detail the roles that the follow.pdf
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
מתפ
מתפמתפ
מתפ
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java
JavaJava
Java
 
Java J2EE Training in Chennai, Tambaram
Java J2EE  Training in Chennai, TambaramJava J2EE  Training in Chennai, Tambaram
Java J2EE Training in Chennai, Tambaram
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
java tutorial for beginner - Free Download
java tutorial for beginner - Free Downloadjava tutorial for beginner - Free Download
java tutorial for beginner - Free Download
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Java. converted (2)
Java. converted (2)Java. converted (2)
Java. converted (2)
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Java interview question
Java interview questionJava interview question
Java interview question
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java in Mule
Java in MuleJava in Mule
Java in Mule
 
Java Basics in Mule
Java Basics in MuleJava Basics in Mule
Java Basics in Mule
 
Accelerating Development.pptx
Accelerating Development.pptxAccelerating Development.pptx
Accelerating Development.pptx
 
Ejb intro
Ejb introEjb intro
Ejb intro
 
Java E
Java EJava E
Java E
 

More from Manav Prasad

Experience with mulesoft
Experience with mulesoftExperience with mulesoft
Experience with mulesoft
Manav Prasad
 
Mulesoftconnectors
MulesoftconnectorsMulesoftconnectors
Mulesoftconnectors
Manav Prasad
 
Mule and web services
Mule and web servicesMule and web services
Mule and web services
Manav Prasad
 
Mulesoft cloudhub
Mulesoft cloudhubMulesoft cloudhub
Mulesoft cloudhub
Manav Prasad
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
Manav Prasad
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
Manav Prasad
 
Json
Json Json
The spring framework
The spring frameworkThe spring framework
The spring framework
Manav Prasad
 
Rest introduction
Rest introductionRest introduction
Rest introduction
Manav Prasad
 
Exceptions in java
Exceptions in javaExceptions in java
Exceptions in java
Manav Prasad
 
Junit
JunitJunit
Xml parsers
Xml parsersXml parsers
Xml parsers
Manav Prasad
 
Xpath
XpathXpath
Xhtml
XhtmlXhtml
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
Manav Prasad
 
J query
J queryJ query
J query
Manav Prasad
 
J query1
J query1J query1
J query1
Manav Prasad
 

More from Manav Prasad (20)

Experience with mulesoft
Experience with mulesoftExperience with mulesoft
Experience with mulesoft
 
Mulesoftconnectors
MulesoftconnectorsMulesoftconnectors
Mulesoftconnectors
 
Mule and web services
Mule and web servicesMule and web services
Mule and web services
 
Mulesoft cloudhub
Mulesoft cloudhubMulesoft cloudhub
Mulesoft cloudhub
 
Perl tutorial
Perl tutorialPerl tutorial
Perl tutorial
 
Spring introduction
Spring introductionSpring introduction
Spring introduction
 
Json
Json Json
Json
 
The spring framework
The spring frameworkThe spring framework
The spring framework
 
Rest introduction
Rest introductionRest introduction
Rest introduction
 
Exceptions in java
Exceptions in javaExceptions in java
Exceptions in java
 
Junit
JunitJunit
Junit
 
Xml parsers
Xml parsersXml parsers
Xml parsers
 
Xpath
XpathXpath
Xpath
 
Xslt
XsltXslt
Xslt
 
Xhtml
XhtmlXhtml
Xhtml
 
Css
CssCss
Css
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
Ajax
AjaxAjax
Ajax
 
J query
J queryJ query
J query
 
J query1
J query1J query1
J query1
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 

Jpa

  • 2. Review Topics:  Introduction  what is the JPA?  What is the JPA contains of?  Why developers should Create the JPA?  Is there Relationship between the EJB and JPA?  What the JPA dose exactly?  Sample process of java persistence API.  Comparing between the EJB3 and the EJB2?  What the advantages of using the JPA?  what is my Tutorial ?  Questions?
  • 3. Introduction  One of the significant improvement in the java plate form is the JPA.  This is because it offers developers much easier way to access and manipulate relational data in the java application.  There is more than that .  The reaction to the java persistence has been extremely positive from the java community  JPA has had a good start with strong acceptance by the java developers.
  • 4. What is JPA?  JPA stands for a java persistence API which is Javax. Persistence Package. Basically , it is a Java programming Language framework that helps developers to control relational data in java platform. The JPA exactly was described as part of the EJB3.0 , which is a replacement to the EJB2CMP Entity Beans specification, specification . As we know that a java persistence API is the newest of several Java persistence specifications.
  • 5. What is persistence consists of.. ?  Any persistence consists of there Areas:  The API, defined in the Javax. Persistence package  The java persistence Query Language  Object / relational meta data.
  • 6. What JPA does exactly?  JPA defined a runtime Entity Manger API processing queries and transaction on the objects against the database.  It is defined a objects-level query language JPQL to allow querying of the objects from the database.
  • 7. What is java persistence query language is used for?  Basically, JPQL stands for Java Persistence Query Language. And it is used to make queries for against entities stored in a relational database. Queries resemble SQL queries in syntax, but operate against entity objects rather than directly with database tables.
  • 8. Is there relationship between the JPA and EJB?  The answer is yes , there is a relationship between Java Persistence API(JPA) and Enterprise Java Beans (EJB).  java persistence is a part of EJB which is it part of the Java EE5. Also, developers do not require EJB container in order to run applications, which use persistence. The API might be used outside the container within Java EE and can even stand alone in the Java Platform, Standard Edition (Java SE).
  • 9. Sample Process of Using Java Persistence API
  • 10. Why we should use the Java Persistence API?  There is a great Motivation for creating JPA  Many enterprise Java developers have been using lightweight persistent objects, which supported by open-source frameworks or data access objects as a substitute of entity beans. This is because entity beans and enterprise beans were too heavyweight and complicated. Furthermore, they could only be used in Java EE application servers.
  • 11. Comparing the EJB3 and the EJB2  In fact, there are many differences, which are the advantages of EJB3.0, between the EJB 2.1 version EJB 3.0 version : The EJB 3.0 EJB 2.1 1. Annotations and default replace a lot of cumbersome code. 2. Persistence entities are simple concrete ,and plain old java object ( POJO)classes that developers can run as they would any other simple java technology classes 3. The API provides capabilities , such as inheritance and polymorphism. 1. Developers have to create lengthy, complicated ,and deployment descriptors in the application that use EJB technology. 2. Developers have to implement the various abstract classes , interfaces, and interface methods whether they use them or not. 3. Those capabilities are not
  • 12. Example: to illustrate more  In the EJB 3.0 entity, java developers do not require to code interfaces such as LocalAddressHome and LocalAddress - or even a deployment descriptor. What they need to have just the entity class. This is because in the application's EJB 3.0 version, what's required for an entity has been reduced from three classes -- for local interfaces and a business class -- to one entity class. In addition to that , they don’t need to implement the EJBObject and EJBLocalObject interfaces. For instance, a session bean now need only a bean class and a business interface, which is a simple Java technology interface.
  • 13. Let’s look to Another Example  In this example, java developers can map a hierarchy of entities, where one entity subclasses another, to a relational database structure, and submit queries against the base class. The queries are treated polymorphically against the entire hierarchy.
  • 14. Summary of the Advantages of JPA  JPA Requires Just smaller number of classes and interfaces  It gets rid of lengthy deployment descriptors through annotations  JPA Addresses most typical specifications through annotation defaults.  JPA supports easier, cleaner, and standardized object- relational mapping.  It add support for polymorphism, and inheritance.  Also, dynamic queries and named queries is added to the JPA  Supports a Java Persistence query language -- an improved EJB QL  Makes it easier to test entities outside of the EJB container  Can be used outside of the container
  • 15. what is my Tutorial ? double Click on the picture to see the tutorial
  • 16. References  Wikipedia ebsite ( http://en.wikipedia.org/wiki/Java_Persistence_API)  Answer website http://www.answers.com/Java%20Persistence%20API  http://java.sun.com/javaee/5/docs/tutorial/doc/bnbqa.html  Project Using Generics with Java Persistence by Sean Brydon, Inderjeet Singh (https://blueprints.dev.java.net/bpcatalog/ee5/persistence/generics.htm l)  Java Persistence API 2.0—A Great Start Gets Better (TS-4945) by Ed ort.(http://java.sun.com/javaone/sf/2007/articles/persistence2_0.jsp)  Article : The Java Persistence API - A Simpler Programming Model for Entity Persistence byBy Rahul Biswas and Ed Ort, May 2006 (http://java.sun.com/developer/technicalArticles/J2EE/jpa/)
  • 17. Questions If you want to know more about JPA , just read this book By