January 2019
Beginner to intermediate
352 pages
8h
English
Spring Data JPA has a compelling feature: the ability to create repository implementations from a repository interface automatically at runtime.
If you create a custom repository that extends the org.springframework.data.repository.CrudRepository interface, you can inherit several methods to work with your entity persistence, including methods for saving, deleting, and finding your entities.
So, let's start to create our custom repository implementation.
Build a new repository interface, named FootballPlayerRepository, under the com.packtpub.springboot.footballplayermicroservice.repository package, and remember to extend the org.springframework.data.repository.CrudRepository interface:
import org.springframework.data.repository.CrudRepository; ...
Read now
Unlock full access