Skip to content

Commit 3f8d48e

Browse files
committed
Correct reference to executeAndReturnKey method
Issue: SPR-12639
1 parent 3ed24bc commit 3f8d48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reference/docbook/jdbc.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,14 +1525,14 @@ TR: Revised, please review.-->For this example, the initializing method is the
15251525
// ... additional methods
15261526
}</programlisting>The main difference when executing the insert by this second
15271527
approach is that you do not add the id to the Map and you call the
1528-
<literal>executeReturningKey</literal> method. This returns a
1528+
<literal>executeAndReturnKey</literal> method. This returns a
15291529
<literal>java.lang.Number</literal> object with which you can create an
15301530
instance of the numerical type that is used in our domain class.You
15311531
cannot rely on all databases to return a specific Java class here;
15321532
<literal>java.lang.Number</literal> is the base class that you can rely
15331533
on. If you have multiple auto-generated columns, or the generated values
15341534
are non-numeric, then you can use a <literal>KeyHolder</literal> that is
1535-
returned from the <literal>executeReturningKeyHolder</literal>
1535+
returned from the <literal>executeAndReturnKeyHolder</literal>
15361536
method.</para>
15371537
</section>
15381538

0 commit comments

Comments
 (0)