RED-7679: Updated table demo rules for entities and components
This commit is contained in:
parent
6c9025da71
commit
45c8427ebe
@ -435,19 +435,21 @@ public class ComponentCreationService {
|
|||||||
.entrySet()
|
.entrySet()
|
||||||
.stream()
|
.stream()
|
||||||
.sorted(Comparator.comparingInt(Map.Entry::getKey))
|
.sorted(Comparator.comparingInt(Map.Entry::getKey))
|
||||||
.forEach(integerListEntry -> {
|
.map(Map.Entry::getValue)
|
||||||
var rowNumber = integerListEntry.getKey();
|
.forEach(entitiesInSameRow -> create(ruleIdentifier,
|
||||||
var entitiesInSameRow = integerListEntry.getValue();
|
name,
|
||||||
create(ruleIdentifier,
|
entitiesInSameRow.stream().sorted(EntityComparators.first()).map(Entity::getValue).collect(Collectors.joining(", ")),
|
||||||
name + " " + rowNumber,
|
valueDescription,
|
||||||
entitiesInSameRow.stream().sorted(EntityComparators.first()).map(Entity::getValue).collect(Collectors.joining(", ")),
|
entitiesInSameRow));
|
||||||
valueDescription,
|
|
||||||
entitiesInSameRow);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void joiningFromSameTableSeperatedByRow(String ruleIdentifier, String name, Collection<Entity> entities) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private Optional<Table> getFirstTable(Entity entity) {
|
private Optional<Table> getFirstTable(Entity entity) {
|
||||||
|
|
||||||
SemanticNode node = entity.getContainingNode();
|
SemanticNode node = entity.getContainingNode();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user