开发者

How the existing data to be if entity structure modified or deleted on GAE?

开发者 https://www.devze.com 2022-12-31 10:33 出处:网络
GAE recommends using JDO/JPA. But I have serious question about using OODB like them. JDO based on user\'s class structure. And d开发者_如何学Goata structure should be modified continually as service

GAE recommends using JDO/JPA. But I have serious question about using OODB like them. JDO based on user's class structure. And d开发者_如何学Goata structure should be modified continually as service advances. So,

  1. If data(entity) class property being removed, what happened to existing data on the property?
  2. If data(entity) class renamed for refactoring reason, how the JDO know those renaming? Or all data loss?

Major point is "How JDO/GAE/BigTable applies modification of application level structure(class/attributes) into existing data on DB?".


Take a look at Updating Your Model's Schema.

  1. Existing entities will still have the old property. New entities will not.
  2. You can map a new entity class to an existing Kind in the datastore. However, if you want to change the name of the Kind in the datastore then that's not as easy.
0

精彩评论

暂无评论...
验证码 换一张
取 消