On Mon, May 5, 2014 at 7:13 PM, Chan <[email protected]> wrote: > Having parent child relationships and cascading would require us to build > a complicated ORM suite that is unnecessary IMO. The entity object will be > wrapped by a high level object that will decide to load the necessary child > entities (first call or lazy).
Complicated, but necessary. Maybe we can take a look at the Mongoose Populate [1] implementation for inspiration. IMHO, this should be a part of the core module since one-to-many relationships (among other things) is considered a trivial construct, in relational data stores, or otherwise. Since jaggery-entity is data store agnostic, it would provide a ubiquitous interface for defining data structures and relationships using json. Plugins, should do the necessary work to map that to the data store. [1] http://mongoosejs.com/docs/populate.html -- Nadeesha @ncthis 0779094280
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
