Better implementation: define a Person model and a fields Text type where
you store additional data as a JSON object. Store a "type" attribute. Then
wrap the Person class with Teacher for all types that have the "Teacher"
attribute.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Tue, Jun 14, 2011 at 3:29 PM, Bruce Aloe <[email protected]> wrote:

> Hello,
>
> I want to define two kinds (tables): Person (PersonId, age, name) and
> Teacher (PersonId, age, name, teaching experience) in my GAE datastore
> and Person is the superclass of Teacher. I want to define inheritance
> relationship between Person and Teacher, so Teacher kind inherites
> PersonId, age, name columns (attributes) from Person kind.
>
> Is there any way to define it in python environment from GAE?
>
> Thanks!
>
> Bruce
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to