I see your point, you can't have it as a generic method then. Will
On Feb 27, 12:12 pm, Allard Buijze <
bui...@gmail.com> wrote:
> Hi Roland,
>
> it is possible to implement something like this. Your events would need a
> copy-constructor that allows you to attach events to another aggregate (and
> with another sequence number as well).
>
> However, to me, it does come across as "faking history". To copy a recipe,
> I would add that as a fact to the event store. So the first event of
> RecipeB would be a RecipeCopiedEvent that contains a reference to RecipeA
> (identifier only, of course). To create the recipe, you would copy all the
> information from recipe A. In the end, the copy is that fact that really
> occurred. Copying the history will make it seem like recipe B was created
> at the same time as recipe A, but in fact, it wasn't. It's all about how to
> model stuff.
>
> This brings to mind something Eric Evans said during his training: you must
> fail at least three times to get it right. ;-)
>
> Cheers,
>
> Allard
>