Skip to content

Commit

Permalink
Prefer query(Class) method in javadoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Sep 28, 2023
1 parent b9bbfb7 commit 38a0e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* <pre class="code">
* Optional&lt;Integer&gt; value = client.sql("SELECT AGE FROM CUSTOMER WHERE ID = :id")
* .param("id", 3)
* .query((rs, rowNum) -> rs.getInt(1))
* .query(Integer.class)
* .optional();
* </pre>
*
Expand Down

0 comments on commit 38a0e17

Please sign in to comment.