Skip to content

Commit

Permalink
Merge pull request #2496 from hpoettker/database-value-documentation
Browse files Browse the repository at this point in the history
Add reference to `@DatabaseValue` to the documentation
  • Loading branch information
hgschmie committed Sep 29, 2023
2 parents 33da482 + 55ab654 commit df5e9e8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/src/adoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,13 @@ Out of the box, Jdbi supports the following types as SQL statement arguments:
* `java.util.Collection` and Java arrays (stored as SQL arrays).
Some additional setup may be required depending on the type of array element.

[NOTE]
The binding and mapping method for enum values
can be controlled via the link:{jdbidocs}/core/enums/Enums.html[Enums^] config,
as well as the annotations link:{jdbidocs}/core/enums/EnumByName.html[@EnumByName^],
link:{jdbidocs}/core/enums/EnumByOrdinal.html[@EnumByOrdinal^], and
link:{jdbidocs}/core/enums/DatabaseValue.html[@DatabaseValue^].

You can also configure Jdbi to support additional argument types.
More on that later.

Expand Down Expand Up @@ -1940,8 +1947,9 @@ Out of the box, column mappers are registered for the following types:
[NOTE]
The binding and mapping method for enum values
can be controlled via the link:{jdbidocs}/core/enums/Enums.html[Enums^] config,
as well as the link:{jdbidocs}/core/enums/EnumByName.html[EnumByName^] and
link:{jdbidocs}/core/enums/EnumByOrdinal.html[EnumByOrdinal^] annotations.
as well as the annotations link:{jdbidocs}/core/enums/EnumByName.html[@EnumByName^],
link:{jdbidocs}/core/enums/EnumByOrdinal.html[@EnumByOrdinal^], and
link:{jdbidocs}/core/enums/DatabaseValue.html[@DatabaseValue^].


==== ColumnMapperFactory
Expand Down

0 comments on commit df5e9e8

Please sign in to comment.