You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertx-sql-client-templates/src/main/asciidoc/index.adoc
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,11 +221,10 @@ A Vert.x data object is a simple Java bean class annotated with the `@DataObject
221
221
Any data object annotated by {@link io.vertx.sqlclient.templates.annotations.RowMapped} or {@link io.vertx.sqlclient.templates.annotations.ParametersMapped}
222
222
will trigger the generation of a corresponding mapper class.
223
223
224
-
The _codegen_ annotation processor generates these classes at compilation time. It is a feature of the Java
225
-
compiler so _no extra step_ is required, it is just a matter of configuring correctly your build:
224
+
The _codegen_ annotation processor generates these classes at compilation time.
225
+
It is a feature of the Java compiler so _no extra step_ is required, it is just a matter of configuring correctly your build.
226
226
227
-
Just add the `io.vertx:vertx-codegen:processor` and `io.vertx:${maven.artifactId}`
228
-
dependencies to your build.
227
+
Add the `io.vertx:vertx-codegen:processor` and `io.vertx:${maven.artifactId}` dependencies to your build.
229
228
230
229
Here a configuration example for Maven:
231
230
@@ -249,16 +248,16 @@ This feature can also be used in Gradle:
IDEs usually provide support for annotation processors.
256
257
257
-
The codegen `processor` classifier adds to the jar the automatic configuration of the service proxy annotation processor
258
-
via the `META-INF/services` plugin mechanism.
258
+
The codegen `processor` classifier adds to the jar the automatic configuration of the service proxy annotation processor via the `META-INF/services` plugin mechanism.
259
259
260
-
If you want you can use it too with the regular jar, but you need then to declare the annotation processor
261
-
explicitly, for instance in Maven:
260
+
If you want you can use it too with the regular jar, but you need then to declare the annotation processor explicitly, for instance in Maven:
262
261
263
262
[source,xml]
264
263
----
@@ -272,6 +271,21 @@ explicitly, for instance in Maven:
272
271
</plugin>
273
272
----
274
273
274
+
[IMPORTANT]
275
+
====
276
+
The codegen `processor` requires a `package-info.java` file annotated with `@io.vertx.codegen.annotations.ModuleGen` at the root of the package of the annotated classes.
0 commit comments