Working with Spring Data JPA: Custom Queries

Spring Data JPA 2.5.2    |    Intermediate
  • 7 Videos | 1h 3m 20s
  • Includes Assessment
  • Earns a Badge
Likes 3 Likes 3
Through this course, explore how to map your own SQL queries to methods in a CrudRepository and leave the implementation of running the queries and processing the results to the Spring Framework. You'll investigate the use of @Query annotation to map simple select queries to methods in a CrudRepository and learn how the rest of the workaround connections, query executions, and processing of results is handled by Spring. This course will also help you discover named queries and how to add complexity to your query by substituting parameters that can be supplied when calling your methods. Once you are finished with this course, you'll have the skills to build efficient, robust, and easy-to-maintain applications by reducing the amount of boiler-plate code required.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    apply the @Query annotation to map queries to be run against a database to a method in a CrudRepository
    define custom queries that bind to parameters passed to a CrudRepository method
    configure update and delete operations in a CrudRepository
  • define custom queries that can be referenced by names in a CrudRepository
    define named queries in an XML file and a Java source file
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 12s
    UP NEXT
  • Playable
    2. 
    Applying Custom Queries with the @Query Annotation
    11m 14s
  • Locked
    3. 
    Defining Custom Queries with Parameters
    12m 52s
  • Locked
    4. 
    Configuring Update and Delete Operations
    9m 29s
  • Locked
    5. 
    Using Named Queries from a Properties File
    10m 22s
  • Locked
    6. 
    Defining Named Queries in XML and Java Files
    12m 34s
  • Locked
    7. 
    Course Summary
    2m 8s

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.