-
Notifications
You must be signed in to change notification settings - Fork 19
Labels
bugSomething isn't workingSomething isn't working
Description
let's imagine Entity(id, value) with projection ValueIndex(id_value, entity_id). If we save in tx some entity and after it try to find projections - they will be unchanged
For example: this test is green
@Test
public void savedIndexIsNotInCache() {
Book.Id bookId = new Book.Id("1");
Book.ByAuthor index1 = db.tx(() -> {
db.table(Book.class).save(new Book(bookId, 1, "title1", List.of("author1")));
return db.table(Book.ByAuthor.class).find(new Book.ByAuthor.Id("author1", bookId));
});
Book.ByAuthor index2 = db.tx(() -> {
return db.table(Book.ByAuthor.class).find(new Book.ByAuthor.Id("author1", bookId));
});
assertNull(index1);
assertNotNull(index2);
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working