# querydsl/querydsl

Unified Queries for Java

Repository: https://github.com/querydsl/querydsl
Canonical: https://ross.abutalabs.com/products/querydsl
Homepage: https://querydsl.com
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-05-28T12:13:54+00:00

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

## Adoption (not part of the score)
Stars 4968, forks 881 (observed 2026-08-28T04:09:04.016483+00:00)

## What it is
Querydsl is a Java framework for constructing type-safe SQL-like queries via a fluent API across multiple backends such as JPA, SQL, MongoDB, and Lucene. It replaces string-based or XML-externalized queries with compile-time checked query construction.

## Use cases
- build type-safe JPA queries in Java
- construct SQL queries without inline strings
- query MongoDB with a fluent Java API
- query Lucene indexes type-safely
- query in-memory collections with a unified API
- avoid runtime query errors from typos in query strings

## When to choose
- you want compile-time safety for database queries in Java
- you use JPA, SQL, or MongoDB and want a unified query API
- you maintain a large codebase where query refactoring must be checked by the compiler

## When to avoid
- you prefer writing raw SQL or JPQL directly
- you are not on the JVM/Java ecosystem
- you need a lightweight ORM rather than a query layer

## Facets
- artifact type: framework
- maturity: stable
- function: orm, database, search-engine, serialization
- domain: databases, backend, developer-tools, web-development
- platform: jvm
- tags: type-safe-queries, fluent-api, jpa, sql, mongodb, lucene, query-builder

## Member repositories
- querydsl/querydsl (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:04.016483+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-29T18:17:46.199764+00:00, confidence not recorded.
  - readme: https://github.com/querydsl/querydsl (fetched 2026-08-28T04:09:04.016483+00:00, sha 47c7f5714d11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
