A jOOQ-CodeGenerator to create vertx-ified DAOs and POJOs.
commit()
and rollback()
return a failed Future
/ Completable
instead of throwing an Exception
in case of failure
for the reactive QueryExecutors.Cursor
or a RowStream<Row>
Flowable<Row>
and Flowable<P>
RowMapper
in reactive QueryExecutors
for convenient usage.PgConverter
: previously, PGConverter
was only considered when converting from or into a JsonObject
. With
the new release you can now convert anything from a io.vertx.sqlclient.Row
into your user object. For that reason I've
introduced the new RowConverter
. For an example check out the
CommaSeparatedStringIntoListConverter
.java.util.List<U>
in your POJOs. Checkout the PostgresConfigurationProvider
of how to configure it.CompletableFuture
-API. When this project was started, the io.vertx.core.Future
was in a bad shape.
Many methods for composition and error handling were missing and made it hard to actually use. In the past couple
of months this has been fixed - making the io.vertx.core.Future
-API a first-class choice. In case you really need
the interoperability with CompletionStage/CompletableFuture
just call io.vertx.core.Future#toCompletionStage()
to
convert it into, or the static method Future.createFromCompletionStage to convert from a CompletionStage
.The following dependencies have been upgraded:
Note: this will most likely be the last release depending on the vertx 3.x and jooq 3.13.x branches. As vertx will integrate first-class CompletionStage
support and the io.vertx.Future
-API has improved dramatically, we will most likely drop the -completablefuture
modules entirely.
@DataObject
annotation to the generated POJOs. This is very handy when you
are working with ServiceProxies etc.vertx-codegen
-module this feature is disabled by default. This is how you enable it
for the classic reactive generator: VertxGeneratorBuilder.init().withClassicAPI().withPostgresReactiveDriver().build(new BuildOptions().withBuildFlags(EnumSet.of(BuildOptions.BuildFlag.GENERATE_DATA_OBJECT_ANNOTATION)))
to/fromJson
-conversion of LocalDateTime
, OffsetDateTime
, ZonedDateTime
, LocalTime
and LocalDate
PgConverter
for the reactive modules. This gives users finally the opportunity to use custom POJOs instead of JsonObjects
. The generators are also properly used in the fromJson
and toJson
-methods.BuildOptions
when creating a code generator using VertxGeneratorBuilder
. Currently one flag can be set which determines whether to use singletons (default) for converters or instantiate them every time. When set to SINGLETON
-mode, this will create a class with references to all Converters
and Bindings
that are used.findManyBy
-methods now take Collection
as argumentQueryResult
https://github.com/jklingsporn/vertx-jooq/milestone/18?closed=1