remove ilo run command file
[yosql.git] / yosql-website / content / configuration / repositories / repositoryNameSuffix.md
blob1c0e73e835896933cb9816ac027acdfc0d64505b
1 ---
2 title: repositoryNameSuffix
3 date: 2019-09-27T18:51:08+02:00
4 menu:
5   main:
6     parent: Repositories
7 categories:
8   - Configuration
9 tags:
10   - repositories
11   - name
12 ---
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:
22 ```java
23 package com.example.persistence;
25 public class SomeRepository {
27     // ... rest of generated code
30 ```
32 ### Option: 'Repo'
34 Changing the `repositoryNameSuffix` configuration option to `Repo` generates the following code instead:
36 ```java
37 package com.example.persistence;
39 public class SomeRepo {
41     // ... rest of generated code (same as above)
44 ```
46 ## Related Options
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.
54 ## Tooling
56 ### Maven
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 >}}
62 ### Gradle
64 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
66 ```kotlin
67 plugins {
68   java
69   id("wtf.metio.yosql") version "2021.4.21"
72 yosql {
73   repositories {
74     repositoryNameSuffix.set("Repo")
75   }
77 ```
79 ```groovy
80 plugins {
81   id "java"
82   id "wtf.metio.yosql" version "2021.4.21"
85 yosql {
86   repositories {
87     repositoryNameSuffix = "Repo"
88   }
90 ```
92 ### Bazel
94 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
96 ### CLI
98 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
100 ```shell
101 $ yosql --repositories-repository-name-suffix=Repo
104 The shorter form is available as well:
106 ```shell
107 $ yosql --repository-name-suffix=Repo