public interface MergeFromRepositoryOrFactory<T>
DSL
allowing to specify the behavior when aggregates
cannot be found in the repository.Modifier and Type | Method and Description |
---|---|
T |
orFail()
Returns the aggregates or throws an
AggregateNotFoundException if at least one
aggregate cannot be loaded from their repository. |
T |
orFromFactory()
Returns the aggregates, allowing to create aggregates with its
Factory when they cannot be loaded from the repository.It uses
the FactoryArgument annotation on the DTO to find the factory method parameters. |
T orFail() throws AggregateNotFoundException
AggregateNotFoundException
if at least one
aggregate cannot be loaded from their repository.AggregateNotFoundException
- if an aggregate cannot be retrieved from the repository.T orFromFactory()
Factory
when they cannot be loaded from the repository.It uses
the FactoryArgument
annotation on the DTO to find the factory method parameters.Copyright © 2013-2018–2019 SeedStack. All rights reserved.