12.2 Configurations for Data Access
This table summarizes the configuration modules and dependencies to add to your build to enable them:
Dependency | Description |
---|---|
| Configures SQL DataSources using Commons DBCP |
| Configures SQL DataSources using Hikari Connection Pool |
| Configures SQL DataSources using Tomcat Connection Pool |
| Configures Hibernate/JPA |
| Configures GORM for Hibernate for Groovy applications |
| Configures the MongoDB Reactive Driver |
| Configures GORM for MongoDB for Groovy applications |
| Configures the Bolt Java Driver for Neo4j |
| Configures GORM for Neo4j for Groovy applications |
| Configures the Reactive MySQL Client |
| Configures the Reactive Postgres Client |
| |
| Configures the Datastax Java Driver for Cassandra |
For example, to add support for MongoDB, add the following dependency:
build.gradle
compile "io.micronaut.mongodb:micronaut-mongo-reactive"
For Groovy users, Micronaut provides special support for GORM.
With GORM for Hibernate you cannot have both the hibernate-jpa and hibernate-gorm dependencies. |
The following sections go into more detail about configuration options and the exposed beans for each implementation.