This course is not scheduled. Inquire about Onsite training at your facility.
Overview
| Course code | WD160 | Skill level | Intermediate |
|---|---|---|---|
| Duration | 2.0 days | Delivery type | Classroom
(Hands-on labs) |
| Course type | Public or Private on-site | ||
| Public price | USD $1,250.00 plus tax |
PLEASE NOTE: This course is also available as an Instructor Led Online Course, Developing Applications with Java Persistence API (JPA) (Remote Classroom) (VD160) and also as a Self Paced Virtual Course (E-Learning), Developing Applications with Java Persistence API (JPA) (Self-paced) (ZD160)
Please also note these two options do not require any travel.
This 2-day instructor-led course teaches students how to build Java applications that use the Java Persistence API (JPA). Students use IBM Rational Application Developer V7.5, which provides complete support for the JPA specification, to develop the JPA-based applications in this course.
JPA provides a mechanism for managing persistence and object-relational mapping. It represents a significant evolution over previous persistence techniques, such as Java Database Connectivity (JDBC) and EJB 2.0 Container-Managed Persistence (CMP), and it can be used in both Java Standard Edition (Java SE) and Java Enterprise Edition (Java EE) applications.
In this course, students learn how to develop, test, and debug applications that use the Java Persistence API (JPA). The course begins with an overview of persistence and the JPA specification, including features of the Java Platform that support JPA and JPA architecture. Subsequent topics include creating JPA entities, using Java Persistence Query Language (JPQL), and performing object-to-relational mappings (ORM) for persistent data. Students also learn about the differences between using JPA in applications for the Java SE or the Java EE environment.
Hands-on exercises throughout this course give students practical experience developing JPA-based applications with IBM Rational Application Developer V7.5. JPA development skills covered in the exercises include creating entity classes, developing a Java SE application to perform database operations, mapping entities to single and multiple tables, and working with JQL queries.
NOTE: This course covers the use of JPA in Java Standard Edition and Java Enterprise Edition Web container environments. It does not specifically address the use of JPA with Enterprise JavaBeans (EJBs). To learn how to use JPA entities running in an EJB container, students should attend one of the following courses:
- Developing EJB 3 Applications for WebSphere Application Server V7 (WD352)
- Developing EJB 3 Applications for WebSphere Application Server V7 (Remote Class) (VD352)
For information on other related WebSphere courses, visit the WebSphere Education Training Paths Web site:
View this course in other countries
Training Paths that reference this course are:
Audience
This intermediate course is designed for experienced Java application developers who want to learn how to develop Java SE or Java EE applications that access relational data using JPA
Prerequisites
Before taking this course, students should have practical experience with the Java programming language. This knowledge can be gained by successfully completing one of the following courses:
- Java SE 5 Programming Fundamentals (WD152)
- Java SE 5 Programming Fundamentals (Remote Classroom) (VD152)
- Java SE 5 Programming Fundamentals (Self-Paced) (ZD152)
Students should also have knowledge of database concepts such as SQL, primary and foreign keys, joins, and referential integrity. Experience using JDBC is beneficial.
Some knowledge of Java EE Web development and experience using Rational Application Developer or another Eclipse-based development environment are also beneficial.
Skills taught
- Develop, test, and debug Java Persistence API (JPA) entities
- Use Java Persistence Query Language (JPQL)
- Perform object-to-relational mappings (ORM) for persistent data
- Implement persistent entities and embedded objects
- Develop JPA applications for the Java SE environment
- Code JPA applications for the Java EE Web environment
- Develop and test JPA code using IBM Rational Application Developer V7.5
Course outline
- Course introduction
- The role of persistence and the Java Persistence API
- Features of the Java platform that support JPA
- The architecture of JPA
- Exercise: Creating the first JPA entity bean
- Entity life cycle states
- Exercise: Writing a Java SE application to perform database operations
- Object-relational mapping for a single table
- Exercise: Running JPA entities in a Web container
- Object-relational mapping over multiple tables
- Exercise: JPA entities that map to multiple tables
- Entity life cycle methods and listeners
- Exercise: JPA callbacks and life cycle listeners
- Java Persistence Query Language (JPQL)
- Exercise: JPQL queries
- Course summary