Package io.micronaut.configuration.jooq
Class JooqConfigurationProperties
java.lang.Object
io.micronaut.configuration.jooq.JooqConfigurationProperties
Configuration for jOOQ.
- Since:
- 1.2.0
- Author:
- Vladimir Kulev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetermineSqlDialect
(DataSource dataSource) ResolveSQLDialect
to be used for the data source.SQL dialect to use.boolean
If enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.void
setJsonConverterEnabled
(boolean jsonConverterEnabled) Set if enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.void
setSqlDialect
(SQLDialect sqlDialect) SQL dialect to use.
-
Constructor Details
-
JooqConfigurationProperties
public JooqConfigurationProperties()
-
-
Method Details
-
getSqlDialect
SQL dialect to use. Ifnull
, will be detected automatically.- Returns:
- SQL dialect
-
setSqlDialect
SQL dialect to use. Will be detected automatically by default.- Parameters:
sqlDialect
- SQL dialect
-
isJsonConverterEnabled
public boolean isJsonConverterEnabled()If enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.- Returns:
- boolean
- Since:
- 4.1.0
-
setJsonConverterEnabled
public void setJsonConverterEnabled(boolean jsonConverterEnabled) Set if enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.- Parameters:
jsonConverterEnabled
- Enable JSON mapping- Since:
- 4.1.0
-
determineSqlDialect
ResolveSQLDialect
to be used for the data source. If SQL dialect is not set explicitly, automatic detection will be done.- Parameters:
dataSource
- data source for automatic detection- Returns:
- Effective SQL dialect
-