~/talk

One Migration Equals Two Fires: From JPA to JDBC and Back

TalkinRussianat SnowOne 2022 · 2022-02-24..02-26· [databases, java]
slides:none on file

A practical comparison of switching between JPA and JDBC in Spring applications: the talk explains that JPA treats the domain as primary and the DB as storage while JDBC treats the DB as primary and returns objects, and shows how that design difference affects migration. It covers concrete issues such as how the data model changes, whether repositories must be rewritten, resolving N+1 query problems, dealing without the JPA first-level cache, and indicators for when to move from JPA to JDBC or vice versa, illustrated with code examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Migrating from JPA
  3. 3:14Common migration reasons
  4. 5:22Framework ideology
  5. 7:54Ideal migration
  6. 11:05DDD in Spring Data JDBC
  7. 15:39Entity changes
  8. 18:08Query generation
  9. 22:05Manual query optimization
  10. 23:51ID generation strategies
  11. 26:04Updating entities
  12. 28:58Nested entities in aggregates
  13. 31:33Transaction context
  14. 33:39Business logic issues
  15. 36:12Repository limitations
  16. 39:01Native queries
  17. 40:25When to avoid migration
  18. 43:14Returning to JPA
  19. 45:40Alternative frameworks
  20. 47:07Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.