blackberryjava-meblackberry-world

Does PersistentStore\PersistentObject data remain after updating app from AppWorld


I am wondering whether the data which was stored in PersistentObject\PersistentStore remains after updating a version of an application.

My use case:

1) Publishing application with version 0.1. Users save data into PersistentObject\PersistentStore

2) Publishing application with version 0.2.

Will the data that was saved into PersistentStore\PersistentObject in version 0.1 be available to the application with version 0.2?


Solution

  • Yes, it will still be available so long as the classes that are persisted have not had any structural changes. This means you can't add or delete fields between versions if you want the persistent data to remain.