generateMapConverter
Whether the ToMap converter should be generated.
A statement naming neither a resultRowType
nor a
resultRowConverter
answers with a
Map<String, Object> per row, read by a converter generated for the purpose. This decides
whether that converter is written.
Turn it off once every statement names a type of its own, and a statement that goes back to answering with maps then fails the build instead of quietly doing so — which is the point of turning it off.
Configuration Options
Option: ’true'
The default. Statements naming no type answer with maps:
package com.example.persistence.converter;
public final class ToMapConverter {
public Map<String, Object> apply(final ResultSet resultSet) throws SQLException {
// ... reads every column of the row by its label
}
}
Option: ‘false’
No converter is written, so a statement that would need one fails the build.
Related Options
Also in this group: defaultConverter , mapConverterAlias , mapConverterClass , mapConverterMethod , recordConverterMethod , recordConverterPrefix , recordConverterSuffix .
Tooling
Ant
In order to use YoSQL together with Ant
, take a look at the tooling documentation for Ant
.
Bazel
In order to use YoSQL together with Bazel
, take a look at the tooling documentation for Bazel
.
CLI
In order to use YoSQL on the command line, take a look at the tooling documentation for CLI
.
yosql generate --converter-generate-map-converter=configValue
Gradle
In order to use YoSQL together with Gradle
, take a look at the tooling documentation for Gradle
. The generateMapConverter setting can be configured using Gradle in Kotlin syntax like this:
plugins {
java
id("wtf.metio.yosql") version "2026.8.8"
}
yosql {
converter {
generateMapConverter.set(configValue)
}
}
or in Groovy syntax like this:
plugins {
id "java"
id "wtf.metio.yosql" version "2026.8.8"
}
yosql {
converter {
generateMapConverter = configValue
}
}
Maven
In order to use YoSQL together with Maven
, take a look at the tooling documentation for Maven
. The generateMapConverter setting can be configured using Maven like this:
<build>
<plugins>
<plugin>
<groupId>wtf.metio.yosql.tooling</groupId>
<artifactId>yosql-tooling-maven</artifactId>
<version>2026.8.8</version>
<configuration>
<converter>
<generateMapConverter>configValue</generateMapConverter>
</converter>
</configuration>
</plugin>
</plugins>
</build>