SEM-DTJ-2291 --- Getting Started with the Java Persistence API
Overview
The Getting Started with Java(TM) Persistence API course provides students new to Enterprise JavaBeans
Objectives
The Getting Started with Java(TM) Persistence API course provides students new to Enterprise JavaBeans(TM) (EJB(TM)) 3.0 and the Java Persistence API (JPA) with a step-by-step guide for creating an application with these technologies. Using JPA and NetBeans(TM), students build an enterprise application that performs all the standard database operations: create, retrieve, update, and delete (CRUD). In addition, students refactor their code to include 1-to-1 and 1-to-many relationships. Students are guided through the creation of the application and complete key portions of the application through hands-on labs.
PreRequisites
- Web Component Development with Servlet and JSP Technologies (SL-314-EE5)
- Familiar with Servlet/JSP(TM)-based applications or other web development platforms.
- Familiar with the Java programming language.
Who Can Benefit
Java developers new to the Java Persistence API and Enterprise JavaBeans 3.0.
Duration
1 Day
Getting Started with the Java Persistence API (SEM-DTJ-2291) Content Details
|
| |
| |
- Create an enterprise application with NetBeans
- Analyze your data model
|
|
- Create a database using Java DB
- Create the persistence unit using a JPA persistence provider
- Create a Student entity class
|
|
|
|
- Define interfaces to be used by the session bean
- Create a session bean to manage your entity class
- Implement CRUD operations using JPA
- Retrieve data using JPQL queries
- Connect the session bean to a web interface
- Deploy and test the application
|
|
| Add a 1-to-1 Relationship to the Data Model |
- Create an Address entity class
- Add an annotation to define a 1-to-1 unidirectional relationship
- Refactor your code to implement the changes
|
|
| Add a 1-to-Many Relationship to the Data Model |
- Create a Dorm entity class
- Add annotations to define a 1-to-many bidirectional relationship
- Refactor your code to implement the changes
|
|
|
|
Interested in any of our courses. Use this form to contact us