File tree 1 file changed +3
-3
lines changed
framework-docs/modules/ROOT/pages/data-access/jdbc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Java::
112
112
this.actorMappingQuery = new ActorMappingQuery(dataSource);
113
113
}
114
114
115
- public Customer getCustomer (Long id) {
115
+ public Actor getActor (Long id) {
116
116
return actorMappingQuery.findObject(id);
117
117
}
118
118
----
@@ -123,11 +123,11 @@ Kotlin::
123
123
----
124
124
private val actorMappingQuery = ActorMappingQuery(dataSource)
125
125
126
- fun getCustomer (id: Long) = actorMappingQuery.findObject(id)
126
+ fun getActor (id: Long) = actorMappingQuery.findObject(id)
127
127
----
128
128
======
129
129
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
131
131
only parameter. Since we want only one object to be returned, we call the `findObject` convenience
132
132
method with the `id` as the parameter. If we had instead a query that returned a
133
133
list of objects and took additional parameters, we would use one of the `execute`
You can’t perform that action at this time.
0 commit comments