Skip to content

Commit 89e4e05

Browse files
committed
chore: update api on DynamoDBRepositoryProxy.java
1 parent 574bb1f commit 89e4e05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jnosql-orientdb/src/main/java/org/eclipse/jnosql/databases/orientdb/mapping/OrientDBDocumentRepositoryProxy.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ protected DocumentTemplate template() {
9595
return template;
9696
}
9797

98+
@SuppressWarnings("unchecked")
9899
@Override
99100
public Object invoke(Object instance, Method method, Object[] args) throws Throwable {
100101

@@ -114,8 +115,10 @@ public Object invoke(Object instance, Method method, Object[] args) throws Throw
114115
}
115116
return DynamicReturn.builder()
116117
.classSource(typeClass)
117-
.methodSource(method).result(() -> result)
118-
.singleResult(toSingleResult(method).apply(() -> result))
118+
.methodName(method.getName())
119+
.returnType(method.getReturnType())
120+
.result(() -> result)
121+
.singleResult(toSingleResult(method.getName()).apply(() -> result))
119122
.build().execute();
120123
}
121124
return super.invoke(instance, method, args);

0 commit comments

Comments
 (0)