Introduction to JPA Java Persistence API Introduction to JPA.

Slides:



Advertisements
Similar presentations
Java EE - Introduction -
Advertisements

Introduction to the Spring Framework
Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project.
Copyright ©2010 Oracle Corporation Made available under Creative Commons Attribution-Share Alike 3.0 Unported EclipseLink Runtime Architecture Data Source.
Persistence Jim Briggs 1. 2 Database connectivity: JDBC Java Database Connectivity An API for connecting Java programs (applications, applets and servlets)
ISE 390 Dynamic Web Development Java EE Web Applications.
A digital commerce consultancy san francisco ~ new york ~ london ~ chişinău ~ guadalajara Apache Cayenne Object Relational Mapping.
Application Servers What is it? General A set of software frameworks, components, utilities, functionality that enables you to develop and deliver n-tiered.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse Web Tools Platform.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Introduction to EJB INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Session-01. What is a Servlet? Servlet can be described in many ways, depending on the context: 1.Servlet is a technology i.e. used to create web application.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Data Persistence and Object-Relational Mapping Slides by James Brucker, used with his permission 1.
Web-based Software Development - An introduction.
Object Persistence and Object-Relational Mapping James Brucker.
CIS 764 Kansas State University
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.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
2007 JavaOne SM Conference | Session BOF-4181 | BOF-4181 Migrating a Spring/Hibernate Application to Java Platform, Enterprise Edition (Java EE) 5 Adrian.
Agenda What is Hibernate Spring Integration Questions Overview
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Entity Beans BMP Celsina Bignoli
CHAPTER 14 USING RELATIONAL DATABASES TO PROVIDE OBJECT PERSISTENCE (ONLINE) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database.
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
JBoss Seam Presented by Andy Nguyen Truc Pham. What is JBoss Seam? Created by Gavin King Created by Gavin King A lightweight framework for Java EE 5.0.
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
10/16/2015 1Yan Huang - Introduction Chapter 1: Introduction What is a DBMS? What is a DBMS? A little history of DB A little history of DB Major Components.
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.
Hibernate Persistence. What is Persistence Persist data to database or other storage.  In OO world, persistence means persist object to external storage.
Hibernate 3.0. What is Hibernate Hibernate is a free, open source Java package that makes it easy to work with relational databases. Hibernate makes it.
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.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Middleware Technology (J2EE/EJB) Entity Bean (JBoss EJB 3.0 tutorial)
Java Persistence API v1.0 a standard for ORM frameworks and POJO based Persistence Magnus Larsson
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool The problem fixed by ORM Advantage Hibernate Hibernate Basic –Hibernate sessionFactory –Hibernate Session.
1 Nov 29, 2005 Object Relational Mapping Frameworks Wiene Höweler.
JAVA EE 6 Best Practices for Migrating Spring to WTF ?!?
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.
JPA The New Enterprise Persistence Standard Mike Keith
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
Introduction – ORM, Helloworld Application
IS-907 Java EE Introduction to JPA. Java Persistence API A framework for using relational databases in Java programs mapping between tables and classes,
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.
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.
JAVA Persistence API(JPA) What is it? How would we use it in a project? Should we use it? -Parag Chaudhari.
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
Business Applications– Using Java _____ Presented by Priya Saha.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
New Technology: Why, What ,How
Web-based Software Development - An introduction
Chengyu Sun California State University, Los Angeles
Enterprise Java Bean. Overview of EJB View of EJB Conversation Roles in EJB, Types of Enterprise Beans Lifecycle of Beans Developing Applications using.
دانشکده کامپیوتر دانشگاه صنعتی شریف
ISE 390 Dynamic Web Development
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Developing and testing enterprise Java applications
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Introduction to JPA Java Persistence API Introduction to JPA

ORM Object-Relational Mapping Problem Object oriented programming languages Relational DBMS Several ORM frameworks has tried to ”fix” the problem Example: Hibernate JPA standardizes O/R mapping Introduction to JPA

Impedance mismatch EJB 3 In Action, page 252 OO model Relational model Class, object Table, row Attributes Columns Identity Primary key Methods Stored procedures Inheritance Not supported Polymorphism Introduction to JPA

Java EE 5 JPA is part of Java EE 5 JPA works between the Business Tier and the EIS tier (Enterprise Information System) Figure from ”Java EE 5 Tutorial” http://java.sun.com/javaee/5/docs/tutorial/doc/bnaay.html Introduction to JPA

Java EE 5 Some Java EE 5 containers GlassFish from Sun Application Server from Oracle JBoss WebSphere from IBM WebLogic from BEA BEA was recently acquired by Oracle Apache Tomcat Not a full Java EE container, only a web container Introduction to JPA

Java Persistence API JPA is an API Some persistence providers Implemented by a persistence provider Like JDBC is an API implemented by Some persistence providers Hibernate from JBoss TopLink from Oracle Kodo from BEA recently acquired by Oracle Introduction to JPA

The class EntityManager EntityManager is the most important class of JPA Full name javax.persistence.EntityManager Some methods of EntityManager T find(primaryKey) Query createQuery(String jpql) Creates a JPQL query Query createNativeQuery(String sql) Creates a SQL query Some methods of Query List getResultList() Executes a Query and returns a list of objects Introduction to JPA

Java Persistence Query Language (JPQL) Very much like ordinary SQL But not specific to any DBMS JPA converts JPQL to ordinary SQL for the actual DBMS Introduction to JPA

EJB 3 EJB 3 Enterprise Java Beans Important part of Java EE 5 Much simpler than EJB 2 POJO + annotations Plain Old Java Objects EJB classes can Create database tables or Be created from database tables Introduction to JPA