Working with Spring Data JPA: Custom Queries

Spring Data JPA 2.5.2    |    Intermediate
  • 7 videos | 1h 50s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 32 users Rating 4.6 of 32 users (32)
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

  • 2m 12s
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 273 users Rating 4.5 of 273 users (273)
Rating 4.3 of 67 users Rating 4.3 of 67 users (67)
Rating 4.5 of 48 users Rating 4.5 of 48 users (48)