use of org.finos.waltz.schema.tables.records.ApplicationGroupRecord in project waltz by khartec.
the class AppGroupGenerator method create.
@Override
public Map<String, Integer> create(ApplicationContext ctx) {
DSLContext dsl = getDsl(ctx);
List<ApplicationGroupRecord> groupRecords = Arrays.stream(names).map(n -> {
ApplicationGroupRecord record = dsl.newRecord(APPLICATION_GROUP);
record.setName(n);
record.setKind(AppGroupKind.PUBLIC.name());
record.setDescription(format("%s : Description of %s", SAMPLE_DATA_PROVENANCE, n));
return record;
}).collect(Collectors.toList());
dsl.batchStore(groupRecords).execute();
return null;
}
Aggregations