~/talk

Spring Data Repositories -- A Deep Dive

Talkat SpringOne2GX 2012 · 2012-10-01..10-03· [databases, java]
slides:none on file

Walk-through of a stepwise GitHub sample shows how Spring Data turns interfaces into working DAOs: Java config + HSQL + JPA entities produce auto-wired beans via @EnableJpaRepositories, tests run green, and SimpleJpaRepository supplies CRUD, paging and sorting. Method names generate queries, @Query or named-query files override them, and redeclaring methods changes transaction settings. Adding QueryDSL generates type-safe predicates for flexible filtering; a custom interface+implementation (convention-named) injects specialized logic as a custom repository implementation. Modules: JPA, MongoDB, Neo4j, GemFire; Spring Data REST integration demonstrated.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 4:45JPA infrastructure
  3. 8:06Repository abstraction
  4. 13:33CRUD repository
  5. 23:25Paging and sorting
  6. 27:34Method redeclaration
  7. 33:50Custom base interfaces
  8. 48:04Manual queries
  9. 55:15Query DSL integration
  10. 1:04:53Custom implementation
  11. 1:24:21Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.