JAVA Persistence API(JPA) What is it? How would we use it in a project? Should we use it? -Parag Chaudhari.

Slides:



Advertisements
Similar presentations
Java EE - Introduction -
Advertisements

V 6, Mats Strandberg ORM With Hibernate.
Introduction to the Spring Framework
Persistence Jim Briggs 1. 2 Database connectivity: JDBC Java Database Connectivity An API for connecting Java programs (applications, applets and servlets)
A JPA Framework for NoSQL Store behind Integrated Collaboration Object Model Eric S. Chan Object Model Architect Oracle Corporation Philip Y Bell Collaboration.
Introduction to the Spring Framework University of Kansas January 2009 This presentation and example application are available at
Caching the MDSPlus Data via Hibernate By Ajith M Jose Comp6703 Project Client: Raju Karia Supervisor: Dr. Henry Gardner (Development of “WebScope”)
Object Relational Mapping. What does ORM do? Maps Object Model to Relational Model. Resolve impedance mismatch. Resolve mapping of scalar and non-scalar.
Advanced Java programming (Java EE)
Domain Specific Kit for Business Rule Management By Netsoft.
Given Connections Solution
ORM Object-Relational Mapping 1. Object Persistence Persistence is the ability of an object to survive the lifecycle of the process, in which it resides.
Session-01. Hibernate Framework ? Why we use Hibernate ?
An Introduction to Hibernate Matt Secoske
The Java Persistence API Edel Sherratt. Contents Revisit applications programming Using Java Persistence API.
Data Persistence and Object-Relational Mapping Slides by James Brucker, used with his permission 1.
Object Persistence and Object-Relational Mapping James Brucker.
CIS 764 Kansas State University
Introduction to JPA Java Persistence API Introduction to JPA.
Hibernatification! Roadmap for Migrating from Plain Old SQL on JDBC to JPA on Hibernate Duke Banerjee Senior Developer, DrillingInfo.com.
Rice KRAD Data Layer JPA Design Eric Westfall July 2013.
CSE446 S OFTWARE Q UALITY M ANAGEMENT Spring 2014 Yazılım ve Uyguluma Geliştirme Yöneticisi Orhan Başar Evren.
2007 JavaOne SM Conference | Session BOF-4181 | BOF-4181 Migrating a Spring/Hibernate Application to Java Platform, Enterprise Edition (Java EE) 5 Adrian.
UPortal Developers MIT August 2004 Persistence Strategy for uPortal 3 Mike DeSimone the r-smart group
Agenda What is Hibernate Spring Integration Questions Overview
JPA Java Persistence API. Introduction The Java Persistence API provides an object/relational mapping facility for managing relational data in Java applications.
Portlet Framework: the Liferay way Liferay Service Builder, Portlet MVC Catania, 10/06/2014Riccardo Rotondo.
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
CHAPTER 14 USING RELATIONAL DATABASES TO PROVIDE OBJECT PERSISTENCE (ONLINE) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database.
Dali JPA Tools. About Dali Dali JPA Tools is an Eclipse Web Tools Platform sub-Project Dali 1.0 is a part of WTP 2.0 Europa coordinated release Goal -
Spring Data Access By, Srinivas Reddy.S
Introduction to Web Dimitar Nenchev Ivan Nakov
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 14 Using Relational Databases to Provide Object Persistence (Overview) Modern Database.
Spring Database Access Ojitha Kumanayaka Copyright © Virtusa, 2007.
JBoss at Work Databases and JBoss Chapter 4 Jeff Schmitt October 26, 2006.
Topic : Hibernate 2: Object Persistence and ORM Kaster Nurmukan.
(1) Introduction to Models using the Play Framework Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University.
Ganymede Simultaneous Release | © 2008 by Springsite B.V., The Netherlands made available under the EPL v1.0 Teneo Ganymede Simultaneous Release.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
Wiki Roadmap 4.1 This document is written to represent the thoughts behind the wiki roadmap 4.1 and to reflect on discussions in irc. It is also a representation.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool The problem fixed by ORM Advantage Hibernate Hibernate Basic –Hibernate sessionFactory –Hibernate Session.
Faculty of Information Technology Advanced Java programming (J2EE) Java Persistence API Based on the JPA presentation from javabeat.net.
The Java Persistence API ©SoftMoore ConsultingSlide 1.
Kansas City Java User’s Group Jason W. Bedell July 12, 2006
By Srinivas Mahakud Java Persistence API JPA. Review Topics: Introduction what is the JPA? What is the JPA contains of? Why developers should Create the.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
Fundamentals of MyBATIS
JPA in Vaadin CSCI 3130 Winter What is JPA?  Java Persistence API  Allows for “easy” storage of Java Objects  Is a type of Object Relational.
.  A reference model developed for an important use case (Air Job) including UI widgets, controllers, services and DAOs.  After full requirement analysis.
Interacting with LexEVS 5.0 LexEVS in a Distributed Environment November 2009.
JPA Java Persistence API JAVA Enterprise Edition
Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.
ORM Basics Repository Pattern, Models, Entity Manager Ivan Yonkov Technical Trainer Software University
CS520 Web Programming Object-Relational Mapping with Hibernate and JPA Chengyu Sun California State University, Los Angeles.
CS520 Web Programming Object-Relational Mapping with Hibernate and JPA (I) Chengyu Sun California State University, Los Angeles.
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
HIBERNATE/Java Overview of technology for Hibernate by محمد حسن کاظمی پوران Master : M.M.Nematollahi.
CS520 Web Programming Object-Relational Mapping with Hibernate and JPA Chengyu Sun California State University, Los Angeles.
New Technology: Why, What ,How
Don't Know Jack About Object-Relational Mapping?
Chengyu Sun California State University, Los Angeles
Hibernate Bayu Priyambadha, S.Kom.
Testing a persistence layer
Teneo Ganymede Simultaneous Release Graduation Review
Developing and testing enterprise Java applications
Teneo Ganymede Mini Deck
CS4961 Software Design Laboratory Understand Aquila Backend
Chengyu Sun California State University, Los Angeles
Presentation transcript:

JAVA Persistence API(JPA) What is it? How would we use it in a project? Should we use it? -Parag Chaudhari

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?

Solution : Use JPA. Java Persistence API 1.Entity 2.Entity manager and persistence context 3.Persistence unit 4.Exceptions 5.JPA Query Language

Entity

Entity(cont.)

Entity Manager and persistence context Application Entities MyEntity A MyEntity B MyEntity C MyEntity a EntityManager MyEntity b Entity state

JPA Query Language

JPA Exception

Resources Java Persistence API jsp html jsp html JPQL Language Reference /docs/manual/jpa_langref.html /docs/manual/jpa_langref.html Article “Introduction to Java Persistence API”

Thank you!