Skip to content

Commit a1f54c0

Browse files
committed
chore: update api on Neo4JRepositoryProxy.java
1 parent 61dc185 commit a1f54c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/mapping/Neo4JRepositoryProxy.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ public Object invoke(Object instance, Method method, Object[] args) throws Throw
108108

109109
return DynamicReturn.builder()
110110
.classSource(typeClass)
111-
.methodSource(method)
111+
.methodName(method.getName())
112+
.returnType(method.getReturnType())
112113
.result(() -> result)
113-
.singleResult(toSingleResult(method).apply(() -> result))
114+
.singleResult(toSingleResult(method.getName()).apply(() -> result))
114115
.build().execute();
115116
}
116117

0 commit comments

Comments
 (0)