Interface MergeFromRepository<T>


  • public interface MergeFromRepository<T>
    An element of the DSL allowing to specify whether the aggregates should be retrieved from a repository or created from a factory.
    • Method Detail

      • fromRepository

        MergeFromRepositoryOrFactory<T> fromRepository()
        Loads the aggregates from their repository.

        It uses the AggregateId annotation 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 FactoryArgument annotation on the DTO to find the factory method parameters.

        Returns:
        the next element of the DSL.