Configuration Reference

Version:5.3.0-SNAPSHOT

Micronaut Data Azure Cosmos Config Properties

🔗
Table 1. Configuration Properties for CosmosDatabaseConfiguration
Property Type Description Default value

azure.cosmos.database.throughput

ThroughputSettings

Throughput settings for database and container.

azure.cosmos.database.containers

java.util.List

azure.cosmos.database.database-name

java.lang.String

Sets the database name.

azure.cosmos.database.update-policy

StorageUpdatePolicy

Sets the update policy for the database to be used during startup.

azure.cosmos.database.packages

java.util.List

the list of package names to filter entities during init database and containers

azure.cosmos.database.query-metrics-enabled

boolean

Sets the indicator telling whether query metrics will be enabled for Azure Cosmos Db query requests.

azure.cosmos.database.disable-non-streaming-order-by

boolean

Sets an indicator telling whether non-streaming order by is by default disabled.

🔗
Table 2. Configuration Properties for CosmosDatabaseConfiguration$CosmosContainerSettings
Property Type Description Default value

azure.cosmos.database.container-settings[*].container-name

java.lang.String

Sets the container name.

azure.cosmos.database.container-settings[*].partition-key-path

java.lang.String

Sets the container partition key path.

🔗
Table 3. Configuration Properties for CosmosDatabaseConfiguration$CosmosContainerSettings$ContainerThroughputSettings
Property Type Description Default value

azure.cosmos.database.container-settings[*].throughput-settings.request-units

java.lang.Integer

Sets the request units.

azure.cosmos.database.container-settings[*].throughput-settings.auto-scale

boolean

Sets the auto scaled indicator for throughput.

🔗
Table 4. Configuration Properties for CosmosDatabaseConfiguration$DefaultThroughputSettings
Property Type Description Default value

azure.cosmos.database.throughput-settings.request-units

java.lang.Integer

Sets the request units.

azure.cosmos.database.throughput-settings.auto-scale

boolean

Sets the auto scaled indicator for throughput.

Micronaut Data Jdbc Config Properties

🔗
Table 5. Configuration Properties for DataJdbcConfiguration
Property Type Description Default value

datasources.*.schema-generate

SchemaGenerate

Sets the schema generation strategy.

datasources.*.batch-generate

boolean

Whether to drop and create the tables with a single statement containing all the DDL statements. It requires a driver that executes several statements in one string and is ignored for Oracle.

datasources.*.packages

java.util.List

Sets the packages to include use for the purposes of schema generation.

datasources.*.dialect

Dialect

Sets the dialect.

datasources.*.allow-connection-per-operation

boolean

If true, {@link javax.sql.DataSource#getConnection()} will be used in try-resource block for the operation.

datasources.*.read-only-connection-per-operation

boolean

Sets whether a connection opened for a single read operation is switched to read-only. Default value (false).

datasources.*.schema-generate-name

java.lang.String

The schema name that should be used for generating

datasources.*.schema-generate-names

java.util.List

The schema names that should be used for generating

datasources.*.enabled

boolean

Sets an indicator telling whether data source is enabled.

datasources.*.unique-result-on-find-one

boolean

Fail on multiple results for findOne.

datasources.*.default-fetch-size

java.lang.Integer

Sets the default fetch size for the JDBC driver. The fetch size is a hint to the JDBC driver as to the number of rows that should be fetched from the database when more rows are needed. If set to null, the JDBC driver’s default fetch size will be used. Used in streaming operations.

🔗
Table 6. Configuration Properties for DataJdbcConfiguration$DialectOptionsConfiguration
Property Type Description Default value

datasources.*.dialect-options.version

java.lang.String

datasources.*.dialect-options.detect-version

boolean

datasources.*.dialect-options.validate-version

boolean

🔗
Table 7. Configuration Properties for OracleNotificationConfiguration
Property Type Description Default value

micronaut.data.jdbc.notifications.oracle.queue-capacity

int

Sets the limit for waiting notifications per listener.

🔗
Table 8. Configuration Properties for OracleNotificationConfiguration$RegistrationRecoveryConfiguration
Property Type Description Default value

micronaut.data.jdbc.notifications.oracle.registration-recovery.max-retries

int

Sets the number of retries after the initial recovery attempt. Zero allows only that initial attempt.

micronaut.data.jdbc.notifications.oracle.registration-recovery.retry-delay

java.time.Duration

Sets the delay before the first retry of a failed recovery attempt. Subsequent delays are multiplied by {@link #getRetryDelayMultiplier()} and capped at {@link #getMaxRetryDelay()}.

micronaut.data.jdbc.notifications.oracle.registration-recovery.retry-delay-multiplier

int

Sets the multiplier applied to the delay after each retry. One uses a fixed delay.

micronaut.data.jdbc.notifications.oracle.registration-recovery.max-retry-delay

java.time.Duration

Sets the upper bound for every retry delay, including the first retry.

🔗
Table 9. Configuration Properties for PostgresNotificationConfiguration
Property Type Description Default value

micronaut.data.jdbc.notifications.postgres.queue-capacity

int

Sets the limit for waiting notifications per listener.

micronaut.data.jdbc.notifications.postgres.schema-generate

boolean

Enables notification function and trigger creation alongside generated tables. Has no effect for {@code NONE} or {@code VALIDATE}; migrations remain responsible for those schemas.

micronaut.data.jdbc.notifications.postgres.schema-generate-mode

PostgresNotificationConfiguration$SchemaGenerationMode

Selects row notifications or statement-level invalidations for generated triggers. Applies to all subscribed tables included in schema generation.

micronaut.data.jdbc.notifications.postgres.poll-timeout

java.time.Duration

Sets the notification poll timeout. Durations are used at millisecond precision.

micronaut.data.jdbc.notifications.postgres.validation-interval

java.time.Duration

Sets the interval between round trips that detect silently broken listening connections.

micronaut.data.jdbc.notifications.postgres.validation-timeout

java.time.Duration

Sets the timeout for a listening connection check. Shutdown may wait for an active check.

🔗
Table 10. Configuration Properties for PostgresNotificationConfiguration$ConnectionRecoveryConfiguration
Property Type Description Default value

micronaut.data.jdbc.notifications.postgres.connection-recovery.max-retries

int

Sets the number of retries after the initial recovery attempt. Zero allows only that initial attempt. A reconnected session resets the retry count and delay after a successful connection check. If it fails before that check, it counts as a failed recovery attempt.

micronaut.data.jdbc.notifications.postgres.connection-recovery.retry-delay-multiplier

int

Sets the multiplier applied to the delay after each failed recovery attempt. One uses a fixed delay. Delays are capped at {@link #getMaxRetryDelay()}.

micronaut.data.jdbc.notifications.postgres.connection-recovery.retry-delay

java.time.Duration

Sets the initial recovery delay. Durations are used at millisecond precision.

micronaut.data.jdbc.notifications.postgres.connection-recovery.max-retry-delay

java.time.Duration

Sets the maximum recovery delay. Durations are used at millisecond precision.

Micronaut Data Mongodb Config Properties

🔗
Table 11. Configuration Properties for MongoDataConfiguration
Property Type Description Default value

micronaut.data.mongodb.create-collections

boolean

Create MongoDB collection at app initialization.

micronaut.data.mongodb.ignore-json-views

boolean

Ignore any JsonView annotations on the properties of mapped entity during encode and decode operations.

micronaut.data.mongodb.driver-type

MongoDataConfiguration$DriverType

Choose the appropriate driver type when both are on classpath.

Micronaut Data R2dbc Config Properties

🔗
Table 12. Configuration Properties for DataR2dbcConfiguration
Property Type Description Default value

r2dbc.datasources.*.schema-generate

SchemaGenerate

Sets the schema generation strategy.

r2dbc.datasources.*.batch-generate

boolean

Whether to create the tables with a single statement containing all the DDL statements. It requires a driver that executes several statements in one string, such as H2 or PostgreSQL, and is ignored for Oracle. When the batch fails, for example because a table already exists, the tables are created one by one. With {@link SchemaGenerate#CREATE_DROP}, the tables are still dropped one by one.

r2dbc.datasources.*.packages

java.util.List

Sets the packages to include use for the purposes of schema generation.

r2dbc.datasources.*.dialect

Dialect

Sets the dialect.

r2dbc.datasources.*.schema-generate-name

java.lang.String

The schema name that should be used for generating

r2dbc.datasources.*.schema-generate-names

java.util.List

The schema names that should be used for generating

r2dbc.datasources.*.default-fetch-size

java.lang.Integer

Sets the default fetch size for the JDBC driver. The fetch size is a hint to the JDBC driver as to the number of rows that should be fetched from the database when more rows are needed. If set to null, the JDBC driver’s default fetch size will be used. Used in streaming operations.

🔗
Table 13. Configuration Properties for DataR2dbcConfiguration$DialectOptionsConfiguration
Property Type Description Default value

r2dbc.datasources.*.dialect-options.version

java.lang.String

r2dbc.datasources.*.dialect-options.detect-version

boolean

Micronaut Data Runtime Config Properties

🔗
Table 14. Configuration Properties for DataConfiguration
Property Type Description Default value

micronaut.data.save-as-insert

boolean

Sets whether repository save methods should always use insert operations. This restores the Micronaut Data 4 behavior where {@code save} and {@code saveAll} always inserted entities instead of selecting insert or update based on identity state.

micronaut.data.save-assigned-id-fallback-to-update

boolean

Sets whether repository save methods should fall back to update when an insert detects that an entity with a non-generated identity already exists.

🔗
Table 15. Configuration Properties for MultiTenancyConfiguration
Property Type Description Default value

micronaut.data.multi-tenancy.mode

MultiTenancyMode

Sets the multi-tenancy mode.

🔗
Table 16. Configuration Properties for DataConfiguration$PageableConfiguration
Property Type Description Default value

micronaut.data.pageable.sort-ignore-case

boolean

Whether sort ignores case.

micronaut.data.pageable.sort-delimiter

java.lang.String

The delimiter to use to calculate sort order. Defaults to {@code ,}.

micronaut.data.pageable.max-page-size

int

Sets the maximum page size when binding Pageable objects.

micronaut.data.pageable.default-page-size

int

Sets the default page size when binding Pageable objects and no size parameter is used. Should be smaller or equal than {@link #maxPageSize}.

micronaut.data.pageable.sort-parameter-name

java.lang.String

The default sort parameter name

micronaut.data.pageable.size-parameter-name

java.lang.String

The default size parameter name

micronaut.data.pageable.page-parameter-name

java.lang.String

The default page parameter name