Spring Data JPA: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
<Font color=darkgray>
<Font color=darkgray>
* How to tell that a JPA repository should use a specific database. How is that configured?
* How to tell that a JPA repository should use a specific database. How is that configured?
* @EnableJpaRepositories(basePackages = "com.example.dev.myproject.driver.repo")


</font>
</font>

Revision as of 16:30, 10 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.

Concepts

Default Backing Database

Seems to be H2. Why?

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")