Skip to content

Commit

Permalink
support value auto generation
Browse files Browse the repository at this point in the history
  • Loading branch information
azahnen committed Aug 1, 2024
1 parent de821fa commit 10182c1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.function.Predicate;
import java.util.stream.Collectors;

public interface EntityStoreDecorator<T extends EntityData, U extends T>
extends EntityDataStore<U>, Volatile2 {
Expand Down Expand Up @@ -65,7 +66,13 @@ default CompletableFuture<U> patch(

@Override
default List<Identifier> identifiers(String... path) {
return getDecorated().identifiers(transformPath(path));
return getDecorated().identifiers().stream()
.filter(
identifier ->
Identifier.JOINER
.join(identifier.path())
.endsWith(Identifier.JOINER.join(transformPath(path))))
.collect(Collectors.toList());
}

// TODO: transformPath
Expand Down

0 comments on commit 10182c1

Please sign in to comment.