in src/main/java/com/epam/digital/data/platform/generator/factory/impl/SearchServiceScopeFactory.java [42:56]
protected SearchServiceScope map(Table table, Context context) {
var searchConditionInfo = searchConditionProvider.findFor(getCutTableName(table.getName()));
var serviceScope = new SearchServiceScope();
serviceScope.setClassName(getSchemaName(table) + "SearchService");
serviceScope.setSchemaName(getSchemaName(table));
serviceScope.setRequestType("search" + "-" + toHyphenTableName(table.getName()));
if (SearchConditionPaginationType.isTypePage(searchConditionInfo.getPagination())) {
serviceScope.setResponseType(ScopeTypeUtils.SEARCH_CONDITION_PAGE_TYPE);
serviceScope.setResponseAsPlainContent(false);
} else {
serviceScope.setResponseType(List.class.getCanonicalName());
serviceScope.setResponseAsPlainContent(true);
}
return serviceScope;
}