5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

Aspire     Javanista to Java Master     Javanista to Java Master Track 4: Spring Data
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.

Objectives

Working with Spring Data JPA: Custom Queries

  • 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