select a repository by root type
creates many aggregates at once.
creates many aggregates at once. this method is the only way to persist
aggregates with embedded unpersisted associations. any aggregates embedded
this way must be present in the argument list keyedRoots
.
because [RootWithTypeKey] is an implicit class, you can call this method
using just aggregate roots, and the roots will be converted to
RootWithTypeKey
implicitly:
repoPool.createMany(user1, user2, user2, blogPost1, blogPost2, blog)
the roots of the aggregates to persist, wrapped with their TypeKeys
.
[Assoc.apply]
iterate over the repositories
a collection of repositories