From fe181b2bd9a856b5efbd24950018e57b1e158d7c Mon Sep 17 00:00:00 2001 From: taeyeonkim Date: Mon, 3 Feb 2020 20:23:02 +0900 Subject: [PATCH] DATAJDBC-483 - Fixes small documentation issues. Add anchor to section on JdbcValue in reference documentation. Correct the type of `BeforeSaveEvent` in example code. Original pull request: #189. --- src/main/asciidoc/jdbc.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/jdbc.adoc b/src/main/asciidoc/jdbc.adoc index b6f79ac2..c9786c69 100644 --- a/src/main/asciidoc/jdbc.adoc +++ b/src/main/asciidoc/jdbc.adoc @@ -188,6 +188,7 @@ Converters should be annotated with `@ReadingConverter` or `@WritingConverter` i `TIMESTAMPTZ` in the example is a database specific data type that needs conversion into something more suitable for a domain model. +[[jdbc.entity-persistence.custom-converters.jdbc-value]] ==== JdbcValue Value conversion uses `JdbcValue` to enrich values propagated to JDBC operations with a `java.sql.Types` type. @@ -608,7 +609,7 @@ For example, the following listener gets invoked before an aggregate gets saved: [source,java] ---- @Bean -public ApplicationListener timeStampingSaveTime() { +public ApplicationListener timeStampingSaveTime() { return event -> {