@Test @DisplayName("delete entity via migration") void deleteEntityViaMigration() { ProjectId id = createId(42); TestProjection projection = createEntity(id); repository().store(projection); repository().applyMigration(id, new MarkProjectionDeleted<>()); Optional<TestProjection> found = repository().find(id); assertThat(found).isPresent(); assertThat(found.get() .isDeleted()).isTrue(); }
@Override public final void store(P entity) { cache.store(entity); }
ProjectionRepository extends EventDispatchingRepository<I, P, S> { @Override public final void store(P entity) { cache.store(entity); } }
ProjectionRepository extends EventDispatchingRepository<I, P, S> { @Override public final void store(P entity) { cache.store(entity); }  }
ProjectionRepository extends EventDispatchingRepository<I, P, S> { @Override public final void store(P entity) { cache.store(entity); }  @Override @OverridingMethodsMustInvokeSuper void registerWith(BoundedContext context); @OverridingMethodsMustInvokeSuper @Override P create(I id); @Override final void store(P entity); @Override final ImmutableSet<EventClass> messageClasses(); @Override final ImmutableSet<EventClass> domesticEventClasses(); @Override final ImmutableSet<EventClass> externalEventClasses(); @OverridingMethodsMustInvokeSuper @Override final boolean canDispatch(EventEnvelope event); CatchUpId catchUp(Timestamp since, @Nullable Set<I> ids); CatchUpId catchUpAll(Timestamp since); @OverridingMethodsMustInvokeSuper @Override void close(); }
ProjectionRepository extends EventDispatchingRepository<I, P, S> { @Override public final void store(P entity) { cache.store(entity); }  @Override @OverridingMethodsMustInvokeSuper void registerWith(BoundedContext context); @OverridingMethodsMustInvokeSuper @Override P create(I id); @Override final void store(P entity); @Override final ImmutableSet<EventClass> messageClasses(); @Override final ImmutableSet<EventClass> domesticEventClasses(); @Override final ImmutableSet<EventClass> externalEventClasses(); @OverridingMethodsMustInvokeSuper @Override final boolean canDispatch(EventEnvelope event); CatchUpId catchUp(Timestamp since, @Nullable Set<I> ids); CatchUpId catchUpAll(Timestamp since); @OverridingMethodsMustInvokeSuper @Override void close();  }