select a repository by the type of persistent object
creates many persistent objects at once.
creates many persistent objects 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 keyedPs
.
because PWithTypeKey is an implicit class, you can call this method
using just aggregate roots, and the roots will be converted to
PWithTypeKey
implicitly:
repoPool.createMany(user1, user2, user2, blogPost1, blogPost2, blog)
the persistent objects to persist, wrapped with their
TypeKeys
the execution context
[Assoc.apply]
a TypeKeyMap
of longevity.subdomain.persistent.Persistent to Repo
iterate over the repositories
a collection of repositories