public List create()

in src/main/java/com/epam/digital/data/platform/generator/factory/impl/nested/NestedServiceScopeFactory.java [39:58]


  public List<CreateServiceScope> create(Context context) {
    return nestedStructureProvider.findAll().stream()
        .map(
            nestedStructure -> {
              var tableName = nestedStructure.getRoot().getTableName();
              var scope = new CreateServiceScope();
              var schemaName = getSchemaName(nestedStructure.getName(), tableName) + "Nested";
              scope.setClassName(schemaName + "UpsertService");
              scope.setSchemaName(schemaName);
              scope.setRequestType(
                  "upsert-"
                      + toHyphenTableName(nestedStructure.getName())
                      + "-"
                      + toHyphenTableName(tableName)
                      + "-nested");

              return scope;
            })
        .collect(toList());
  }