@Bean public Repository<GiftCard> giftCardRepository(EventStore eventStore, Cache cache) { return EventSourcingRepository.builder(GiftCard.class) .cache(cache).eventStore(eventStore) .build(); }
@Bean public Repository<GiftCard> giftCardRepository(EventStore eventStore, Cache cache) { return EventSourcingRepository.builder(GiftCard.class) .cache(cache).eventStore(eventStore) .build(); }