in src/main/java/com/epam/digital/data/platform/generator/factory/impl/CreateListEntityScopeFactory.java [48:72]
public List<ModelScope> create(Context context) {
return bulkLoadInfoProvider.getTablesWithBulkLoad().stream()
.map(tableName -> findTable(tableName, context))
.map(
table -> {
var scope = new ModelScope();
var schemaName = getSchemaName(table);
scope.setClassName(schemaName + "CreateList");
var field = new Field();
field.setName("entities");
field.setType(ScopeTypeUtils.getArrayOfType(schemaName + "Model"));
field.setConstraints(
List.of(
new Constraint(
"@javax.validation.constraints.NotNull", Collections.emptyList()),
new Constraint(
"@javax.validation.constraints.Size",
Collections.singletonList(new Content("max", "50"))),
new Constraint("@javax.validation.Valid", Collections.emptyList())));
scope.getFields().add(field);
return scope;
})
.collect(toList());
}