Audience
This is an introductory to intermediate level training course, designed for experienced Java developers and architects who need to identify, design, and implement web services. We will explore and apply the terminology, the specification, the processes and technologies specific to web services
Description
As part of the complete overhaul of the Enterprise JavaBeans (EJB) specification, database persistence was broken out into a completely separate specification, the Java Persistence API (JPA). JPA replaces entity beans with powerful new Object-Relational Mapping (ORM) capabilities based on proven technologies such as Toplink and Hibernate. This course includes all important features from JPA 2, and is also suitable for users of the 1.0 release.
JPA supports a POJO (Plain Old Java Object) based model using annotations which lets you develop persistent classes following common Java idioms. It supports entity relationships, inheritance, polymorphism, composition, and much more. The Java Persistence Query Language (JPQL), which is based on SQL but operates on the object model, provides a powerful bridge between the object and relational worlds. JPA also allows you to express queries using native SQL, including the capability to map the SQL query results to persistent entities
Objectives
Upon successful completion of this course, the student will be able to:
- Understand the JPA architecture
- Create JPA based applications
- Understand and use JPA to map persistent objects to the database
- Create JPA persistence units, and understand JPA persistence contexts and the Entity Lifecycle
- Use the JPA EntityManager
- Work with queries and JPQL (Java Persistence Query Language), as well as the Criteria API (JPA 2)
- Understand and work with collections & associations
- Use versioning support for optimistic locking
- Map inheritance hierarchies using JPA
- Performance tune your JPA applications
- Understand JPA transaction support
- Understand the relationship between JPA / EJB3
- Use JPA entities from session beans (Optional)
- Be familiar with Spring support for JPA (Optional)
Prerequisites
Working knowledge of Java programming, including use of inheritance, interfaces, and exceptions