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.