# ebean-orm/ebean

Ebean ORM

Repository: https://github.com/ebean-orm/ebean
Canonical: https://ross.abutalabs.com/products/ebean
Homepage: https://ebean.io
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, kotlin, orm, sql, database, jpa, jdbc, postgres, mysql, sqlserver, hana, elasticsearch, ebean, mariadb, cockroachdb, h2, sqlite, oracle
Last push: 2026-08-18T03:48:34+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 5102, "days_push": 15, "days_rel": 16, "gap_med": 13.5, "n_releases_24m": 31}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1532, forks 267 (observed 2026-08-28T04:04:59.470165+00:00)

## What it is
Ebean is an ORM (object-relational mapping) library for Java and Kotlin that uses JPA mapping annotations and provides type-safe query beans, automatic N+1 avoidance, L2 caching, and built-in DDL generation and database migrations. It supports many databases including Postgres, MySQL, MariaDB, SQL Server, Oracle, H2, SQLite, CockroachDB, and SAP Hana, and offers multiple query abstraction levels from ORM down to raw SQL and JDBC.

## Use cases
- map java entities to relational database tables
- write type-safe orm queries in java or kotlin
- generate and run database migrations
- avoid n+1 query problems with lazy loading
- cache query results with l2 caching
- test against postgres or mysql docker containers
- map  columns and arrays in postgres
- perform soft deletes and audit history on entities

## When to choose
- building a java or kotlin backend that needs orm persistence with jpa-style annotations
- you want type-safe queries with ide auto-complete and compile-time checking
- you need built-in ddl generation and database migration support
- you want automatic query tuning and n+1 avoidance
- you need support for many database platforms including postgres-specific types

## When to avoid
- working outside the jvm (python, go, rust, etc.)
- you prefer a different orm like hibernate and have deep investment in its ecosystem
- you need a lightweight sql mapper without orm object-graph features
- project requires javax.persistence with very old java versions

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver, serialization
- domain: databases, backend, developer-tools
- platform: jvm, cross-platform
- tags: jpa, jdbc, sql, type-safe-queries, database-migrations, elasticsearch, l2-cache, graalvm, docker-test-containers, bytecode-enhancement

## Member repositories
- ebean-orm/ebean (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.470165+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:31:19.033297+00:00, confidence not recorded.
  - readme: https://github.com/ebean-orm/ebean (fetched 2026-08-28T04:04:59.470165+00:00, sha 4b60af826e56)
  - homepage: https://ebean.io (fetched 2026-08-29T11:33:31.498515+00:00, sha a5c6d1a106d4)
  - site_page: https://ebean.io/docs (fetched 2026-08-29T11:33:31.502198+00:00, sha 187d9e933608)
  - site_page: https://ebean.io/docs/getting-started (fetched 2026-08-29T11:33:31.503840+00:00, sha f8ae49a732c9)
  - site_page: https://ebean.io/docs/agents/skills (fetched 2026-08-29T11:33:31.508826+00:00, sha 3da7e446f780)
  - site_page: https://ebean.io/docs/database/h2 (fetched 2026-08-29T11:33:31.510397+00:00, sha e7bca63345f1)
  - site_page: https://ebean.io/docs/database/postgres (fetched 2026-08-29T11:33:31.511985+00:00, sha 185a16636924)
  - site_page: https://ebean.io/docs/database/mysql (fetched 2026-08-29T11:33:31.513763+00:00, sha 87f81309f6a2)
  - site_page: https://ebean.io/apidoc/13 (fetched 2026-08-29T11:33:31.505482+00:00, sha 7cd99f40c0d4)
  - site_page: https://ebean.io/releases (fetched 2026-08-29T11:33:31.507137+00:00, sha f5f7ed0efdc3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
