# AnghelLeonard/Hibernate-SpringBoot

Collection of 300+ best practices for Java persistence performance in Spring Boot applications

Repository: https://github.com/AnghelLeonard/Hibernate-SpringBoot
Canonical: https://ross.abutalabs.com/products/hibernate-springboot
Homepage: https://www.amazon.com/Spring-Boot-Persistence-Best-Practices/dp/1484256255/ref=sr_1_3?keywords=anghel+leonard&qid=1576272956&sr=8-3
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, hibernate, hibernate-jpa, springboot, persistence, spring-data, jpa, jdbc, sql, functions, mysql, postgresql, connection-pool, performance-penalty, spring-boot, dto, spring-projections, database-connection, batch-insert, sql-statement
Last push: 2026-03-25T11:30:34+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 74, release rhythm 35, longevity 100
- inputs: {"age_days": 2881, "days_push": 161, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1372, forks 537 (observed 2026-08-28T04:04:32.261153+00:00)

## What it is
A collection of 300+ runnable sample applications demonstrating Java persistence performance best practices using Hibernate 5/6 and Spring Boot 2. Each sample is a small self-contained project illustrating a specific tip, such as UTC timezone handling, DTO projections, batch inserts, and connection pooling.

## Use cases
- learn hibernate performance best practices
- optimize jpa query performance in spring boot
- fix n+1 select problem examples
- speed up batch inserts with spring data jpa
- reduce sql statement count in hibernate
- configure connection pooling in spring boot
- learn dto projections in spring data

## When to choose
- you develop Java persistence layers with Hibernate/JPA and Spring Boot and want practical, runnable examples
- you are tuning database performance and want copy-pasteable recipes
- you want to learn Spring Data JPA optimization patterns incrementally

## When to avoid
- you need a production library or framework to add as a dependency - these are sample applications
- you use Spring Boot 4 / Hibernate 7 (a separate companion repo covers that)
- you need non-Java persistence guidance

## Facets
- artifact type: learning-resource
- maturity: active
- function: orm, database, benchmarking, developer-tools
- domain: databases, developer-tools, tutorials, performance
- platform: jvm
- tags: hibernate, spring-boot, jpa, spring-data, persistence-performance, best-practices, jdbc, sql-optimization, examples, spring

## Member repositories
- AnghelLeonard/Hibernate-SpringBoot (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.261153+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:44.273856+00:00, confidence not recorded.
  - readme: https://github.com/AnghelLeonard/Hibernate-SpringBoot (fetched 2026-08-28T04:04:32.261153+00:00, sha dca75ea96382)
  - homepage: https://www.amazon.com/Spring-Boot-Persistence-Best-Practices/dp/1484256255/ref=sr_1_3?keywords=anghel+leonard&qid=1576272956&sr=8-3 (fetched 2026-08-29T11:57:13.732796+00:00, sha 6d1d7ac1af17)
- Data as of 2026-08-30T08:39:29.467469+00:00.
