recordConverterPrefix

Talks about:

The prefix of the class name of converters built from a record.

A converter generated for a record is named <prefix><record><suffix> and lives in the package of the mapConverterClass . The field a repository injects it into takes the same name with a lower-case first letter, so changing either affix changes both.

Configuration Options

Option: ‘To’

The default value of the recordConverterPrefix configuration option is To, which names the converter for a User record ToUserConverter.

Option: ''

Clearing the recordConverterPrefix configuration option and setting recordConverterSuffix to RowMapper names it UserRowMapper.

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 --converter-record-converter-prefix=configValue

As long as the name of the config option is unique across all configuration groups, you can use the shorter form:

yosql --record-converter-prefix=configValue

Gradle

In order to use YoSQL together with Gradle , take a look at the tooling documentation for Gradle . The recordConverterPrefix setting can be configured using Gradle in Kotlin syntax like this:

plugins {
  java
  id("wtf.metio.yosql") version "2023.2.22"
}

yosql {
  converter {
    recordConverterPrefix.set(configValue)
  }
}

or in Groovy syntax like this:

plugins {
  id "java"
  id "wtf.metio.yosql" version "2023.2.22"
}

yosql {
  converter {
    recordConverterPrefix = configValue
  }
}

Maven

In order to use YoSQL together with Maven , take a look at the tooling documentation for Maven . The recordConverterPrefix setting can be configured using Maven like this:

<build>
  <plugins>
    <plugin>
      <groupId>wtf.metio.yosql</groupId>
      <artifactId>yosql-tooling-maven</artifactId>
      <version>2023.2.22</version>
      <configuration>
        <converter>
          <recordConverterPrefix>configValue</recordConverterPrefix>
        </converter>
      </configuration>
    </plugin>
  </plugins>
</build>