mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-03 04:19:47 +01:00
Prefer query(Class) method in javadoc example
See gh-26594
This commit is contained in:
@@ -46,7 +46,7 @@ import org.springframework.lang.Nullable;
|
||||
* <pre class="code">
|
||||
* Optional<Integer> value = client.sql("SELECT AGE FROM CUSTOMER WHERE ID = :id")
|
||||
* .param("id", 3)
|
||||
* .query((rs, rowNum) -> rs.getInt(1))
|
||||
* .query(Integer.class)
|
||||
* .optional();
|
||||
* </pre>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user