Multiple Inheritance

18 views
Skip to first unread message

Neelesh Soni

unread,
Jun 16, 2013, 6:26:49 PM6/16/13
to appengine-...@googlegroups.com
Is there a way to implement a schema with multiple inheritance using ndb? 
Example: Class C has two ancestors/base classes, Class A and Class B (A and B are not related). And then query Class C objects as either children of Class A (ex: C.query(ancestor=aObject)) or Class B(C.query(ancestor=bObject)).  

Alfred Fuller

unread,
Jun 24, 2013, 3:39:12 PM6/24/13
to appengine-...@googlegroups.com
Polymodel doesn't work for you?


On Sun, Jun 16, 2013 at 3:26 PM, Neelesh Soni <neeleshs...@gmail.com> wrote:
Is there a way to implement a schema with multiple inheritance using ndb? 
Example: Class C has two ancestors/base classes, Class A and Class B (A and B are not related). And then query Class C objects as either children of Class A (ex: C.query(ancestor=aObject)) or Class B(C.query(ancestor=bObject)).  

--
You received this message because you are subscribed to the Google Groups "appengine-ndb-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appengine-ndb-di...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages