views:

75

answers:

3

http://code.google.com/appengine/articles/update_schema.html shows how to remove a property from a model in python with delattr. Is there a way to do the same in java?

Thanks!

+1  A: 

Yes, there's a method for that in the Low-Level API.

Markus Knittig
A: 

You simply remove the property from your class code, and recompile.

Sug
A: 

App Engine's datastore is schemaless. That means that whatever properties exist on an entity at insert time define that property. All the type information exists in your Java classes.

If your entity has already been deployed to production and you remove a field, this will not retroactively remove the property from entities that have already been saved. You'll have to create a set of Task Queue tasks to go through and re-save all of those entities. It's probably best to take this step before migrating to the new entity so you don't break your business logic elsewhere.

Ikai Lan