java - Refactoring packages containing JDO @PersistenceCapable classes in Google App Engine -


I have a package of JDO firmly enabled classes, which must be restored.

I know if you change the class name then you have to update the "BigTables" objects. However, if I change the Java object's package, does it mean that the data objects in "BigTables" should be updated in some way?

That means com.example.test.Person -> com . The result of refactoring rules is:

  • Adding a new faucet field to your class will result in all the existing units that are empty for that field.
  • Adding a new collection or array of fields as an empty array of all those existing units or array for that area.
  • Adding a new non-faucet field will result in an exception if you try to load existing entities. / Li>
  • Deleting a field will not cause any errors; Existing institutions will retain the old fields until they are loaded and saved.
  • Changing the type of a field will require app engineers to try to put the old values ​​on the new datatype; An exception will be thrown if the artist is illegal is an exception numerical type; In this case the price changes rather than cast, and the overflow does not create exceptions.

If you have to reconstruct which can not be obtained with the simple modifications described above, you may want to use it.


Comments