2 title: repositoryNameSuffix
3 date: 2019-09-27T18:51:08+02:00
14 The suffix to append to repository names. In case the repository name already contains the configured suffix, it will not be added twice.
16 ## Configuration Options
18 ### Option: 'Repository'
20 The default value of the `repositoryNameSuffix` configuration option is `Repository`. Setting the option to `Repository` therefore produces the same code generated as the default configuration without any configuration option set. It produces code similar to this:
23 package com.example.persistence;
25 public class SomeRepository {
27 // ... rest of generated code
34 Changing the `repositoryNameSuffix` configuration option to `Repo` generates the following code instead:
37 package com.example.persistence;
39 public class SomeRepo {
41 // ... rest of generated code (same as above)
48 - [allowedCallPrefixes](../allowedcallprefixes/): Controls which method name prefixes are allowed for calling statements.
49 - [allowedReadPrefixes](../allowedreadprefixes/): Controls which method name prefixes are allowed for reading statements.
50 - [allowedWritePrefixes](../allowedwriteprefixes/): Controls which method name prefixes are allowed for writing statements.
51 - [injectConverters](../injectconverters/): Controls whether converters are injected as constructor parameters.
52 - [validateMethodNamePrefixes](../validatemethodnameprefixes/): Controls whether method name prefixes are validated.
58 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/).
60 {{< maven/config/repositories/repositoryNameSuffix >}}
64 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
69 id("wtf.metio.yosql") version "2021.4.21"
74 repositoryNameSuffix.set("Repo")
82 id "wtf.metio.yosql" version "2021.4.21"
87 repositoryNameSuffix = "Repo"
94 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
98 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
101 $ yosql --repositories-repository-name-suffix=Repo
104 The shorter form is available as well:
107 $ yosql --repository-name-suffix=Repo