Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolved recursive call issue #521

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,17 @@ public Object invoke(Object instance, Method method, Object[] params) throws Thr
case OBJECT_METHOD -> {
return unwrapInvocationTargetException(() -> unwrapInvocationTargetException(() -> method.invoke(this, params)));
}
case FIND_ALL, FIND_BY, PARAMETER_BASED, CURSOR_PAGINATION -> {
return unwrapInvocationTargetException(() -> repository(method).invoke(instance, method, params));
case PARAMETER_BASED -> {
return unwrapInvocationTargetException(() -> repository(method).executeParameterBased(instance, method, params));
}
case CURSOR_PAGINATION -> {
return unwrapInvocationTargetException(() -> repository(method).executeCursorPagination(instance, method, params));
}
case FIND_ALL -> {
return unwrapInvocationTargetException(() -> repository(method).executeFindAll(instance, method, params));
}
case FIND_BY -> {
return unwrapInvocationTargetException(() -> repository(method).executeFindByQuery(instance, method, params));
}
case CUSTOM_REPOSITORY -> {
Object customRepository = CDI.current().select(method.getDeclaringClass()).get();
Expand Down