Java Persistence API: Executing Queries & Managing the Entity Lifecycle


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this course, you'll explore a variety of ways to execute queries using JPA. You'll run native queries, queries using JPQL, and queries using the Criteria API, which helps avoid syntax errors in your query specification.

Next, you'll examine how you can have entity-specific callback methods that can be invoked at different stages in the entity's lifecycle. When you are done with this course, you'll be able to perform complex queries on your database tables and manage your entity's lifecycle in a very granular manner.



Expected Duration (hours)
1.5

Lesson Objectives

Java Persistence API: Executing Queries & Managing the Entity Lifecycle

  • discover the key concepts covered in this course
  • execute native queries
  • execute JPQL queries
  • configure dynamic JPQL queries using named and positional parameters
  • reference foreign keys within JPQL queries
  • perform join operations using JPQL queries
  • retrieve multiple fields using JPQL queries
  • construct special objects to hold multiple fields within JPQL queries
  • execute update and delete JPQL queries
  • define and use named queries
  • summarize the basic structure of the Criteria API
  • run basic criteria queries
  • run advanced criteria queries
  • hook into the entity lifecycle before and after entity persistence
  • hook into the entity lifecycle after load
  • hook into the entity lifecycle before and after entity load
  • hook into the entity lifecycle before and after entity removal
  • configure an entity listener object for callbacks
  • summarize the key concepts covered in this course
  • Course Number:
    it_jmjpehdj_05_enus

    Expertise Level
    Expert