4 ms·
I'm thinking more the case where my case class has more fields than are in one database table. For example, what if the Person class has a List[Address] whose v
by emergentcypher 11y ago
I'm thinking more the case where my case class has more fields than are in one database table. For example, what if the Person class has a List[Address] whose values are stored in another table? I guess you would suggest separating the address list from the Person model?
- fwbrasil 11y agoYes, quill is not an ORM. The case classes need to be flat as the database rows are, so relationships need to be mapped using reference fields (ids) to other rows (case classes). There's no "one size fits all". If quill's abstraction level is not enough for your domain, I suggest trying out http://activate-framework.org http://activate-framework.org.