문제

GAE recommends using JDO/JPA. But I have serious question about using OODB like them. JDO based on user's class structure. And data 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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top