Download presentation
Presentation is loading. Please wait.
Published byGriselda Simpson Modified over 8 years ago
1
JAVA Persistence API(JPA) What is it? How would we use it in a project? Should we use it? -Parag Chaudhari
2
Introduction - Without using JPA? Lot of implementation details (connections, implementation, resultsets etc) Alternative is to use ORM tools such as (Hibernate, iBatis, JDO) But what about Object-Relation mismatch?
3
Solution : Use JPA. Java Persistence API 1.Entity 2.Entity manager and persistence context 3.Persistence unit 4.Exceptions 5.JPA Query Language
4
Entity
5
Entity(cont.)
6
Entity Manager and persistence context Application Entities MyEntity A MyEntity B MyEntity C MyEntity a EntityManager MyEntity b Entity state
7
JPA Query Language
8
JPA Exception
9
Resources Java Persistence API http://www.oracle.com/technetwork/java/javaee/tech/persistence- jsp-140049.html http://www.oracle.com/technetwork/java/javaee/tech/persistence- jsp-140049.html JPQL Language Reference http://openjpa.apache.org/builds/1.0.2/apache-openjpa- 1.0.2/docs/manual/jpa_langref.html http://openjpa.apache.org/builds/1.0.2/apache-openjpa- 1.0.2/docs/manual/jpa_langref.html Article “Introduction to Java Persistence API” http://www.javabeat.net/jpa/ http://www.javabeat.net/jpa/
10
Thank you!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.