Java Persistence API: Executing Queries & Managing the Entity Lifecycle

Java JPA    |    Expert
  • 19 Videos | 1h 40m 32s
  • Includes Assessment
  • Earns a Badge
Likes 5 Likes 5
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 4s
    UP NEXT
  • Playable
    2. 
    Executing Native Queries
    8m 28s
  • Locked
    3. 
    Executing JPQL Queries
    7m 41s
  • Locked
    4. 
    Using Named Parameters and Positional Parameters
    6m 33s
  • Locked
    5. 
    Referencing Foreign Keys
    4m 47s
  • Locked
    6. 
    Performing Joins
    5m 42s
  • Locked
    7. 
    Selecting Multiple Fields Including Aggregates
    7m
  • Locked
    8. 
    Constructing Objects in Queries
    2m 48s
  • Locked
    9. 
    Executing Update and Delete Queries
    3m 53s
  • Locked
    10. 
    Using Named Queries
    5m 55s
  • Locked
    11. 
    The Criteria API
    5m 39s
  • Locked
    12. 
    Running Basic Criteria Queries
    4m 16s
  • Locked
    13. 
    Running Advanced Criteria Queries
    4m 45s
  • Locked
    14. 
    Working With Persistence Callbacks
    6m 21s
  • Locked
    15. 
    Working With Load Callbacks
    4m 30s
  • Locked
    16. 
    Working With Update Callbacks
    3m 39s
  • Locked
    17. 
    Working With Remove Callbacks
    2m 45s
  • Locked
    18. 
    Configuring Entity Listeners for Callback Methods
    3m 41s
  • Locked
    19. 
    Course Summary
    1m 36s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.