~/talk

Hibernate Tips ‘n’ Tricks - 15 Tips to solve common problems

Talkat GeeCON Prague 2017 · 2017-05-17..05-19· [java, databases]
links:none on file
slides:none on file

Fifteen concrete Hibernate fixes: enable Hibernate statistics to see per-session query counts and timings (don’t enable in production), use Query.setFirstResult/setMaxResults for SQL LIMIT/OFFSET pagination, write ad‑hoc joins without mapped associations, map a read‑only computed column with @Formula for computed column (note it injects into every select), annotate views @Immutable, register DB functions or use JPQL function(...), generate UUIDs with built‑in strategies, use JPA metamodel, AttributeConverter for Java 8 dates, wrap optional associations via field access, implement multi-tenancy via connection provider plus current‑tenant resolver, and add auditing with Hibernate Envers and @Audited.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30How can I understand Hibernate
  3. 2:55Start to debug
  4. 5:20Joints
  5. 8:00Query
  6. 15:15JPA Meter Model
  7. 18:05UUID
  8. 20:20IPbased UUID
  9. 21:50Optional Association
  10. 23:40DateTime API
  11. 25:40Attribute Converter
  12. 27:55Converter Notation
  13. 30:20Multitenancy
  14. 31:10Separate Database
  15. 34:50MultiTenant Connection Provider
  16. 36:35Test
  17. 39:50Audit
  18. 43:50Questions
~/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.