Developing Java Technology Applications with the Java Persistence API (SEM-DTJ-3352)
This course provides the student with knowledge of the Java Persistence API needed to develop and deploy data-driven applications with the Java EE and Java SE platforms. The Java Persistence API is a new persistence API that allows Java SE and Java EE technology developers to model database entities as POJOs (Plain Old Java Objects). Students will gain an understanding of how to program with the Java Persistence API independent of platform, as well as how the Java Persistence API integrates with EJB 3.0 component services to facilitate the development of enterprise applications.
Languages
English
Who Can Benefit
Application Developers
Prerequisites
- Knowledge of the Java programming language
- Basic knowledge of relational database concepts
Skills Gained
Upon completion of this course, participants should have an understanding of how to use the Java Persistence API to build data-driven applications with the Java SE and Java EE platforms.
Course Content
Module 1 - Content
- The Java Persistence API The role of the Java Persistence API in a Java technology application
- Understanding the principles of Object Relational Mapping
- The key concepts of persistence contexts and persistence units
- Implementing Entity Classes Modeling persistent state
- Entity identity
- Modeling entity relationships
- Modeling inheritance relationships
- Using the EntityManager API Controlling the entity lifecycle
- Using managed and detached entities
- Using the Java Persistence API Query Language Defining static queries
- Defining dynamic queries
- Deciding when and how to use SQL queries
- Controlling the Object/Relational Mapping Understanding the defaults
- Configuring with annotations
- Configuring and/or overriding with XML
- Implementing with Container-Managed and Application-Managed Persistence Contexts Implementing with JTA transactions
- Implementing using the EntityTransaction API
- Using the bootstrapping APIs in Java SE environments
- Leveraging Container Services for Java Persistence Understanding transaction propagation and persistence context propagation
- Using extended persistence contexts to implement conversations
- Configuring and Packaging a Java Persistence Application
Copyright
2004-2009 Sun Microsystems, Inc.