3 date: 2019-09-27T18:51:08+02:00
14 Controls what comment should be placed inside the `@Generated` annotation on generated fields. Defaults to `DO NOT MODIFY - automatically generated by YoSQL`.
16 ## Configuration Options
18 ### Option: 'DO NOT MODIFY - automatically generated by YoSQL'
20 The default value of the `fieldComment` configuration option is `DO NOT MODIFY - automatically generated by YoSQL`. Setting the option to `DO NOT MODIFY - automatically generated by YoSQL` therefore produces the same code generated as the default configuration.
23 package com.example.persistence;
25 import javax.annotation.processing.Generated;
27 public class SomeRepository {
31 date = "<current_timestamp>",
32 comments = "DO NOT MODIFY - automatically generated by YoSQL"
34 private Object someField;
36 // ... rest of generated code
41 ### Option: 'Hello World!'
43 Changing the `fieldComment` configuration option to `Hello World!` produces the following code:
46 package com.example.persistence;
48 import javax.annotation.processing.Generated;
50 public class SomeRepository {
54 date = "<current_timestamp>",
55 comments = "Hello World!"
57 private Object someField;
59 // ... rest of generated code
66 - [annotateFields](../annotatefields/): Controls whether the `@Generated` annotation should be added at all.
67 - [fieldMembers](../fieldmembers/): Controls which `@Generated` annotation members should be used.
68 - [generatorName](../generatorname/): Controls the value used in the `@Generated` annotation.
74 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation
75 for Maven](/tooling/maven/).
77 {{< maven/config/annotations/fieldComment >}}
81 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
90 fieldComment = "Hello World!"
97 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for
98 Bazel](/tooling/bazel/).
102 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
105 $ yosql --annotations-field-comment="Hello World!"
108 The shorter form is available as well:
111 $ yosql --field-comment="Hello World!"