Spring Data JPA underlying mechanism without implementation
spring, spring-data, spring-data-jpa
Solution
(1) How does it work when those methods in repository interfaces have no implementations and those are not inherited from any super class?
The Repository interfaces are being implemented (backed up) by Spring Container at Runtime.
(2) Does it work with name conventions and reflections?
Yes, it works on naming conventions and spring container uses JDK's proxy classes to intercept the calls to the Repository.
(3) Does Spring Data has inmemory database to work with?
No, Spring does not use any inmemory database
Please refer the below link for more detailed explanation:
How are Spring Data repositories actually implemented?
Problem
I started to read this tutorial: spring boot tutorial In this I read that under model module they implemented POJOs and Repository interfaces. -> tutorial on github In Repository interfaces I found two methods without implementations: findByUsername, findByAccountUsername. My questions are: - How does it work when those methods in repository interfaces have no implementations and those are not inherited from any super class? - Does it work with name conventions and reflections? - Does Spring Data has inmemory database to work with?