recordConverterMethod
The name of the method to generate in converters built from a record.
Every converter generated from a resultRowType declares one method, and this is its name. Change it to match the convention the hand-written converters in your project already follow, so a repository reads the same whichever kind of converter it calls.
Configuration Options
Option: ‘asUserType’
The default value of the recordConverterMethod configuration option is asUserType, which matches the name used by the hand-written converters in the examples.
Option: ‘mapRow’
Changing the recordConverterMethod configuration option to mapRow generates public User mapRow(ResultSet resultSet) instead.
Related Options
Also in this group: defaultConverter , generateMapConverter , mapConverterAlias , mapConverterClass , mapConverterMethod , 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-record-converter-method=configValue
Gradle
In order to use YoSQL together with Gradle
, take a look at the tooling documentation for Gradle
. The recordConverterMethod setting can be configured using Gradle in Kotlin syntax like this:
plugins {
java
id("wtf.metio.yosql") version "2026.8.8"
}
yosql {
converter {
recordConverterMethod.set(configValue)
}
}
or in Groovy syntax like this:
plugins {
id "java"
id "wtf.metio.yosql" version "2026.8.8"
}
yosql {
converter {
recordConverterMethod = configValue
}
}
Maven
In order to use YoSQL together with Maven
, take a look at the tooling documentation for Maven
. The recordConverterMethod 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>
<recordConverterMethod>configValue</recordConverterMethod>
</converter>
</configuration>
</plugin>
</plugins>
</build>