~/talk

The Complexity of JPA

links:none on file
slides:none on file

Shows concrete JPA behaviors backed by runnable tests using Testcontainers and NamedParameterJdbcOperations: persist may not insert — insert happens only when ID strategy forces it or on flush/commit; find and queries return cached instances — queries hit the DB but then return the persistence-context object, producing stale field values; changing elements inside a collection does not bump the owning entity’s version while adding/removing does; proposes Spring Data JDBC uses aggregates, no proxies or first-level cache, and the tests all pass.

AI-written summary · about

  1. 0:00Introduction and audience
  2. 2:56EntityManager persist behavior
  3. 11:03EntityManager find behavior
  4. 15:18Query results and cache
  5. 17:49Optimistic locking with collections
  6. 22:26Java records in JPA
  7. 23:27Why JPA is so complex
  8. 28:43Alternatives to JPA
  9. 33:04Summary 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.