Skip to content

Commit

Permalink
fix(jans-orm): throw exception if table in DB is not exists (#10096)
Browse files Browse the repository at this point in the history
fix(jans-orm): Throw exception if table in DB is not exists

Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem authored Nov 8, 2024
1 parent f2a87d0 commit 595e0c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ private String resolveAttributeName(TableMapping tableMapping, Filter filter) th
}

String attributeNameLower = attributeName.toLowerCase();

if (tableMapping.getColumTypes() == null) {
throw new SearchException(String.format("Unknown table '%s' and it's column '%s'", tableMapping.getTableName(), attributeName));
}

AttributeType attributeType = tableMapping.getColumTypes().get(attributeNameLower);
if (attributeType == null) {
Expand Down

0 comments on commit 595e0c3

Please sign in to comment.