micronaut-data

Ahead of Time Data Repositories

Github星跟蹤圖

Micronaut Data

Maven Central

Micronaut Data is a database access toolkit that uses Ahead of Time (AoT) compilation to pre-compute queries for repository interfaces that are then executed by a thin, lightweight runtime layer.

Micronaut Data is inspired by GORM and Spring Data, however improves on those solutions in the following ways:

  • Compilation Time model - Both GORM and Spring Data maintain a runtime meta-model that uses reflection to model relationships between entities. This model consumes significant memory and memory requirements grow as your application size grows. The problem is worse when combined with Hibernate which maintains its own meta-model as you end up with duplicate meta-models. Micronaut Data instead moves this model into the compiler.
  • No query translation - Both GORM and Spring Data use regular expressions and pattern matching in combination with runtime generated proxies to translate a method definition on a Java interface into a query at runtime. No such runtime translation exists in Micronaut Data and this work is carried out by the Micronaut compiler at compilation time.
  • No Reflection or Runtime Proxies - Micronaut Data uses no reflection or runtime proxies, resulting in better performance, smaller stack traces and reduced memory consumption due to a complete lack of reflection caches (Note that the backing implementation, for example Hibernate, may use reflection).
  • Type Safety - Micronaut Data will actively check at compile time that a repository method can be implemented and fail compilation if it cannot.

See also the Micronaut Data Announcement for details about how and why Micronaut Data was built.

Documentation

See the Documentation for more information.

See the Snapshot Documentation for the current development docs.

Examples

Examples can be found in the examples directory.

Snapshots and Releases

Snaphots are automatically published to JFrog OSS using Github Actions.

See the documentation in the Micronaut Docs for how to configure your build to use snapshots.

Releases are published to JCenter and Maven Central via Github Actions.

A release is performed with the following steps:

主要指標

概覽
名稱與所有者micronaut-projects/micronaut-data
主編程語言Java
編程語言Java (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2019-07-18 15:18:18
推送於2025-09-13 03:20:51
最后一次提交
發布數137
最新版本名稱v4.13.4 (發布於 2025-08-21 06:58:51)
第一版名稱v1.0.0.M1 (發布於 )
用户参与
星數475
關注者數38
派生數214
提交數3.1k
已啟用問題?
問題數1093
打開的問題數190
拉請求數1825
打開的拉請求數29
關閉的拉請求數414
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?