How to model an entity with many children in Sorm?
问题 I have a Workspace and Document entities, with the idea that a workspace can contain zero, one, or more documents. My first approach to model this was: case class Workspace(name: String, documents: Seq[Document]) but this will not scale well since my workspaces may contain many documents. Fortunately, my business requirement allow me to treat workspaces and documents separately (in the sense that when I have a workspace, there is no reason or invariant that forces me to consider all documents