Skip to content

Commit dff89d2

Browse files
committed
chore: update api on SolrRepositoryProxy.java
1 parent 71b2138 commit dff89d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jnosql-oracle-nosql/src/main/java/org/eclipse/jnosql/databases/oracle/mapping/OracleDocumentRepositoryProxy.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ public Object invoke(Object instance, Method method, Object[] args) throws Throw
118118
}
119119
return DynamicReturn.builder()
120120
.classSource(typeClass)
121-
.methodSource(method)
121+
.methodName(method.getName())
122+
.returnType(method.getReturnType())
122123
.result(() -> result)
123-
.singleResult(toSingleResult(method).apply(() -> result))
124+
.singleResult(toSingleResult(method.getName()).apply(() -> result))
124125
.build().execute();
125126
}
126127
return super.invoke(instance, method, args);

jnosql-solr/src/main/java/org/eclipse/jnosql/databases/solr/mapping/SolrRepositoryProxy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ protected DocumentTemplate template() {
9292
return template;
9393
}
9494

95+
@SuppressWarnings("unchecked")
9596
@Override
9697
public Object invoke(Object instance, Method method, Object[] args) throws Throwable {
9798

0 commit comments

Comments
 (0)