Skip to content

Commit 36b0702

Browse files
committed
Merge branch '6.1.x'
2 parents a26d31e + e6da2a8 commit 36b0702

File tree

1 file changed

+3
-3
lines changed
  • framework-docs/modules/ROOT/pages/data-access/jdbc

1 file changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/data-access/jdbc/object.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Java::
112112
this.actorMappingQuery = new ActorMappingQuery(dataSource);
113113
}
114114
115-
public Customer getCustomer(Long id) {
115+
public Actor getActor(Long id) {
116116
return actorMappingQuery.findObject(id);
117117
}
118118
----
@@ -123,11 +123,11 @@ Kotlin::
123123
----
124124
private val actorMappingQuery = ActorMappingQuery(dataSource)
125125
126-
fun getCustomer(id: Long) = actorMappingQuery.findObject(id)
126+
fun getActor(id: Long) = actorMappingQuery.findObject(id)
127127
----
128128
======
129129

130-
The method in the preceding example retrieves the customer with the `id` that is passed in as the
130+
The method in the preceding example retrieves the actor with the `id` that is passed in as the
131131
only parameter. Since we want only one object to be returned, we call the `findObject` convenience
132132
method with the `id` as the parameter. If we had instead a query that returned a
133133
list of objects and took additional parameters, we would use one of the `execute`

0 commit comments

Comments
 (0)