RED-7679: Changed joining from same table row

This commit is contained in:
Ali Oezyetimoglu 2023-10-26 16:13:57 +02:00
parent 5a4947372f
commit d1b8a39cd6

View File

@ -429,7 +429,8 @@ public class ComponentCreationService {
.sorted(Comparator.comparingInt(Map.Entry::getKey)) .sorted(Comparator.comparingInt(Map.Entry::getKey))
.map(Map.Entry::getValue) .map(Map.Entry::getValue)
.forEach(entitiesInSameRow -> create(ruleIdentifier, .forEach(entitiesInSameRow -> create(ruleIdentifier,
name, entitiesInSameRow.stream().sorted(EntityComparators.first()).map(Entity::getValue).collect(Collectors.joining(", ")), name,
entitiesInSameRow.stream().sorted(EntityComparators.first()).map(Entity::getValue).collect(Collectors.joining(", ")),
valueDescription, valueDescription,
entitiesInSameRow)); entitiesInSameRow));
}); });