class Author(db.Model):
name = db.StringProperty()
class Story(db.Model):
author = db.ReferenceProperty(Author)
story = db.get(story_key)
author_name = story.author.name
author = db.get(author_key)
stories_by_author = author.story_set.get()
As is known; using ReferenceProperty is good solution for data relationship as exampled above. So; For example, we have a large amout of row in our "Author" and "Story" entities(tables). And after many years we deleted "Author" entity or replaced name propery to another name. Naturally; our app sholud throw error. Can this situation (managing code) reasonable or is performing relationships manually good? Is there any alternative model for this case?