~/talk

JPA - Beyond copy-paste

Talkat JDD 2016 · 2016-10-10..10-11· [databases, java]
speakerdeck:jkubrynski
slides:none on file

Explains concrete JPA failures and fixes: persist vs merge causes an extra DB lookup because merge checks existence; column/@Table annotations do nothing unless configured; field vs property access changes mapping for the whole entity; missing mappedBy or joinColumn yields unexpected join tables; bag vs list forces full collection recreation while sets generate one delete/update; use join fetch or batch-size to avoid n+1 selects; optimistic locking needs version sent to REST clients; prefer UUIDs for equals/hashCode; use Hazelcast for clustered L2 cache.

AI-written summary · about

  1. 0:00Intro
  2. 1:16About me
  3. 2:30Current solution
  4. 3:35Standard
  5. 5:51Fields vs gathers
  6. 7:24Field Axis
  7. 7:48Order
  8. 9:43Mapping
  9. 10:36Onetomany
  10. 12:09lazy loading
  11. 14:26collections
  12. 17:59hibernate performance issues
  13. 21:35save entities
  14. 25:37optimistic locking
  15. 28:01equals hashcode
  16. 29:42UID
  17. 31:36Cache
  18. 32:31Flash
  19. 37:24HQL Injection
  20. 39:34Conclusion
~/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.