Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference to @DatabaseValue to the documentation #2496

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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