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.

Slides:



Advertisements
Similar presentations
Question examples. Session 1 Objectives Why certify? Positioning of the non-technical version What is Java? Key advantages of Java Java Applications vs.
Advertisements

Copyright ©2010 Oracle Corporation Made available under Creative Commons Attribution-Share Alike 3.0 Unported EclipseLink Runtime Architecture Data Source.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
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.
An architecture for webb applications, J2EE
Introduction to Enterprise JavaBeans. Integrating Software Development Server-side Component Model Distributed Object Architecture –CORBA –DCOM –Java.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER
Session-02.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
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.
CSE446 S OFTWARE Q UALITY M ANAGEMENT Spring 2014 Yazılım ve Uyguluma Geliştirme Yöneticisi Orhan Başar Evren.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
Introduction to ABAP and SAP Structure
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.
Entity Java Beans Jorg Janke Open Source ERP & CRM.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Distributed Systems 1 Master of Information System Management Distributed Systems Persistence.
Enterprise JavaBeans. What is EJB? l An EJB is a specialized, non-visual JavaBean that runs on a server. l EJB technology supports application development.
Introduction to J2EE Architecture Portions by Kunal Mehta.
EJB Framework.  As we know, EJB is the center of the J2EE architecture that provides a sturdy framework for building enterprise applications. The major.
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 -
Enterprise JavaBeans Understanding EJB Components Version 0.1 Kamal Wickramanayake
1 Architectural Overview For application developers, assembling enterprise beans requires little or no expertise in the complex system-level issues that.
(1) Introduction to Models using the Play Framework Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Creating competitive advantage Copyright © 2003 Enterprise Java Beans Presenter: Wickramanayake HMKSK Version:0.1 Last Updated:
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Object-Oriented Programming Chapter Chapter
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool The problem fixed by ORM Advantage Hibernate Hibernate Basic –Hibernate sessionFactory –Hibernate Session.
Design Patterns Software Engineering CS 561. Last Time Introduced design patterns Abstraction-Occurrence General Hierarchy Player-Role.
JAVA EE 6 Best Practices for Migrating Spring to WTF ?!?
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
Introduction to Objects and Encapsulation Computer Science 4 Mr. Gerb Reference: Objective: Understand Encapsulation and abstract data types.
Fundamentals of MyBATIS
IS-907 Java EE Introduction to JPA. Java Persistence API A framework for using relational databases in Java programs mapping between tables and classes,
EJB Enterprise Java Beans JAVA Enterprise Edition
2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process.
JPA Java Persistence API JAVA Enterprise Edition
EJB. Introduction Enterprise Java Beans is a specification for creating server- side scalable, transactional, multi-user secure enterprise-level applications.
JAVA Persistence API(JPA) What is it? How would we use it in a project? Should we use it? -Parag Chaudhari.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
CLASSIFICATION OF DESIGN PATTERNS Hladchuk Maksym.
Enterprise Java Beans. Contents  Understanding EJBs  Practice Section.
Entity Bean Chuyên đề Lập trình Java & J2EE Chương 15
A very brief introduction
Object-Oriented Database Management System (ODBMS)
Entity Framework By: Casey Griffin.
Enterprise Java Bean. Overview of EJB View of EJB Conversation Roles in EJB, Types of Enterprise Beans Lifecycle of Beans Developing Applications using.
J2EE Application Development
ISE 390 Dynamic Web Development
Distributed System Using Java 2 Enterprise Edition (J2EE)
Reusability 11/29/2018© 2006 ITT Educational Services Inc.
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
Knowledge Byte In this section, you will learn about:
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Developing and testing enterprise Java applications
Enterprise Java Beans.
Intro to J2EE Concepts.
Presentation transcript:

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? 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.a Java programming Language

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.entity beans

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.0EJB 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 available in the EJB2.0

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