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

feat(jans-orm): add search support in json path #9759

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat(jans-orm): add search support in json path
Signed-off-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
  • Loading branch information
yurem committed Oct 15, 2024
commit ec25bba1a9adc60c1bac1de71fafbf51b4738fe2
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ private AttributeType resolveAttributeType(TableMapping tableMapping, Filter fil

private String resolveAttributeName(TableMapping tableMapping, Filter filter) throws SearchException {
if ((tableMapping == null) || (filter == null)) {
return null;
return filter.getAttributeName();
}

String attributeName = filter.getAttributeName();
Expand Down Expand Up @@ -534,7 +534,7 @@ private String toInternalAttribute(TableMapping tableMapping, Filter filter) thr
if (StringHelper.isEmpty(attributeName)) {
// Try to find inside sub-filter
for (Filter subFilter : filter.getFilters()) {
attributeName = resolveAttributeName(tableMapping, subFilter);
attributeName = subFilter.getAttributeName();
if (StringHelper.isNotEmpty(attributeName)) {
break;
}
Expand Down