Ahead of Time Data Repositories
APACHE-2.0 License
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:
See also the Micronaut Data Announcement for details about how and why Micronaut Data was built.
To get started quickly with Micronaut Data JPA you can use Micronaut Launch either via the web browser or curl
to create a correctly configured application with a Gradle build:
$ curl https://launch.micronaut.io/demo.zip?features=data-jpa -o demo.zip
$ unzip demo.zip -d demo
Or for Micronaut Data JDBC:
$ curl https://launch.micronaut.io/demo.zip?features=data-jdbc -o demo.zip
$ unzip demo.zip -d demo
Note that you can append &build=maven
to the URL to switch to a Maven build.
See the Documentation for more information.
See the Snapshot Documentation for the current development docs.
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 Maven Central via GitHub Actions.
A release is performed with the following steps:
projectVersion
in gradle.properties
to a semantic, unreleased version. Example 1.0.0
v
. For example v1.0.0
.