Spring Data JPA: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
=Spring Data JPA Repository= | =Spring Data JPA Repository= | ||
This is a Spring Data JPA concrete repository implementation that conceals from the application low-level data access details while exposing a domain model-typed API, represented by the example "[[Spring_Persistence_Concepts#IngredientRepository|IngredientRepository]]" interface. | |||
<syntaxhighlight lang='java'> | |||
</syntaxhighlight> | |||
<font color=darkgray>TODO</font> | <font color=darkgray>TODO</font> |
Revision as of 21:08, 14 October 2018
External
Internal
Overview
Spring Data JPA is a Spring Data project that assists with implementing JPA-based repositories. The approach involves writing the repository interface, including custom finder methods, and Spring will provide the implementation automatically.
Spring Persistence Concepts
Spring Data JPA Repository
This is a Spring Data JPA concrete repository implementation that conceals from the application low-level data access details while exposing a domain model-typed API, represented by the example "IngredientRepository" interface.
TODO
TODO
- How to tell that a JPA repository should use a specific database. How is that configured?
- @EnableJpaRepositories(basePackages = "com.example.dev.myproject.driver.repo")