Repositories with Spring Data

Spring Data repositories: CRUD without SQL, queries derived from method names, @Query, and what save() really does.

  • 6 cards
  • 4 questions
  • About 6 min
  • Intermediate to Advanced
Share

Spring Data repositories: interfaces you declare, and Spring implements, to read and write entities without writing SQL. Most of the queries an application needs are the same few shapes, and Spring Data exists so you stop writing them by hand. It covers CrudRepository and JpaRepository, queries derived from method names, @Query for what a name cannot say, and why save() can update instead of insert. It leaves out custom repository implementations and query by example.

Contents

6 cardsnot started