From 3f8d48eb1a3a801580300b6a0f01d6a75d6cdb58 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 18 Feb 2015 20:46:04 +0100 Subject: [PATCH] Correct reference to executeAndReturnKey method Issue: SPR-12639 --- src/reference/docbook/jdbc.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reference/docbook/jdbc.xml b/src/reference/docbook/jdbc.xml index 6b3ae4601b..6c87dd8adb 100644 --- a/src/reference/docbook/jdbc.xml +++ b/src/reference/docbook/jdbc.xml @@ -1525,14 +1525,14 @@ TR: Revised, please review.-->For this example, the initializing method is the // ... additional methods }The main difference when executing the insert by this second approach is that you do not add the id to the Map and you call the - executeReturningKey method. This returns a + executeAndReturnKey method. This returns a java.lang.Number object with which you can create an instance of the numerical type that is used in our domain class.You cannot rely on all databases to return a specific Java class here; java.lang.Number is the base class that you can rely on. If you have multiple auto-generated columns, or the generated values are non-numeric, then you can use a KeyHolder that is - returned from the executeReturningKeyHolder + returned from the executeAndReturnKeyHolder method.