parent
e72b523995
commit
169b9abeef
|
|
@ -759,7 +759,7 @@ With a required single object result:
|
||||||
|
|
||||||
[source,java,indent=0,subs="verbatim,quotes"]
|
[source,java,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
Actor actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?",
|
Actor actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
|
||||||
.param(1212L);
|
.param(1212L);
|
||||||
.query(Actor.class)
|
.query(Actor.class)
|
||||||
.single();
|
.single();
|
||||||
|
|
@ -769,7 +769,7 @@ With a `java.util.Optional` result:
|
||||||
|
|
||||||
[source,java,indent=0,subs="verbatim,quotes"]
|
[source,java,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
Optional<Actor> actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?",
|
Optional<Actor> actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
|
||||||
.param(1212L);
|
.param(1212L);
|
||||||
.query(Actor.class)
|
.query(Actor.class)
|
||||||
.optional();
|
.optional();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue