Interface MergeFromRepository<T>
-
public interface MergeFromRepository<T>An element of theDSLallowing to specify whether the aggregates should be retrieved from a repository or created from a factory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfromFactory()Create the aggregates from their factory.MergeFromRepositoryOrFactory<T>fromRepository()Loads the aggregates from their repository.
-
-
-
Method Detail
-
fromRepository
MergeFromRepositoryOrFactory<T> fromRepository()
Loads the aggregates from their repository.It uses the
AggregateIdannotation on the DTO to find the aggregate IDs.- Returns:
- the next element of the DSL.
-
fromFactory
T fromFactory()
Create the aggregates from their factory.It uses the
FactoryArgumentannotation on the DTO to find the factory method parameters.- Returns:
- the next element of the DSL.
-
-