Java Persistence API: Executing Queries & Managing the Entity Lifecycle

Java    |    Expert
  • 19 videos | 1h 32m 2s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 26 users Rating 4.6 of 26 users (26)
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

  • 2m 4s
  • 8m 28s
    Learn how to execute queries native to the database. FREE ACCESS
  • Locked
    3.  Executing JPQL Queries
    7m 41s
    In this video, you will learn how to execute JPQL queries. FREE ACCESS
  • Locked
    4.  Using Named Parameters and Positional Parameters
    6m 33s
    In this video, you will learn how to configure dynamic JPQL queries using named and positional parameters. FREE ACCESS
  • Locked
    5.  Referencing Foreign Keys
    4m 47s
    Learn how to reference foreign keys in JPQL queries. FREE ACCESS
  • Locked
    6.  Performing Joins
    5m 42s
    In this video, you will learn how to perform join operations using JPQL queries. FREE ACCESS
  • Locked
    7.  Selecting Multiple Fields Including Aggregates
    7m
    During this video, you will learn how to retrieve multiple fields using JPQL queries. FREE ACCESS
  • Locked
    8.  Constructing Objects in Queries
    2m 48s
    In this video, you will learn how to construct special objects to hold multiple fields within JPQL queries. FREE ACCESS
  • Locked
    9.  Executing Update and Delete Queries
    3m 53s
    In this video, find out how to execute update and delete SQL queries. FREE ACCESS
  • Locked
    10.  Using Named Queries
    5m 55s
    In this video, you will learn how to define and use named queries. FREE ACCESS
  • Locked
    11.  The Criteria API
    5m 39s
    During this video, you will learn how to summarize the basic structure of the Criteria API. FREE ACCESS
  • Locked
    12.  Running Basic Criteria Queries
    4m 16s
    Learn how to run basic queries using criteria. FREE ACCESS
  • Locked
    13.  Running Advanced Criteria Queries
    4m 45s
    In this video, you will learn how to run criteria queries with advanced features. FREE ACCESS
  • Locked
    14.  Working With Persistence Callbacks
    6m 21s
    In this video, learn how to hook into the entity lifecycle before and after entity persistence. FREE ACCESS
  • Locked
    15.  Working With Load Callbacks
    4m 30s
    During this video, you will learn how to hook into the entity lifecycle after it is loaded. FREE ACCESS
  • Locked
    16.  Working With Update Callbacks
    3m 39s
    During this video, you will learn how to hook into the entity lifecycle before and after entity loading. FREE ACCESS
  • Locked
    17.  Working With Remove Callbacks
    2m 45s
    In this video, learn how to hook into the entity lifecycle before and after entity removal. FREE ACCESS
  • Locked
    18.  Configuring Entity Listeners for Callback Methods
    3m 41s
    In this video, you will learn how to configure an entity listener object for callbacks. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.3 of 63 users Rating 4.3 of 63 users (63)
Rating 4.7 of 28 users Rating 4.7 of 28 users (28)
Rating 4.6 of 32 users Rating 4.6 of 32 users (32)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 121 users Rating 4.4 of 121 users (121)
Rating 4.6 of 75 users Rating 4.6 of 75 users (75)
Rating 4.6 of 24 users Rating 4.6 of 24 users (24)