Please enable JavaScript.
Coggle requires JavaScript to display documents.
SPRING DATA JPA (hierarchy of repositories (Repository (Query DSL) -…
SPRING DATA JPA
-
-
-
repositories
DAO/Repository interface it's contracts, it doesnt matter what is the implementation: JPA/JDBC or other
-
in classic spring repository we need to implement repository or Dao interface but Spring Data JPA repository we don't have to because its done for us (we extends JPARepository giving generics which mean telling Spring which entity/table to operate on and the key type)
provides
JpaRepository<Entity, Id Type>
-
-
-
Helpers (count, exists, flush, deleteInBatch)
-
Repository implementations directly from interfaces and using conventions to generate queries from your method names
works with Named Queries (you can match params)