12-15-2009 07:21 AM
Is there a way to override the way the PersistanceStore persist objects?
I've a complex data structure that I need to store. One of the inner classes contain non persistable field. When I storing the data I do not need to store this field but the compiler raise error.
...Widget: Error!: Class ...Widget marked Persistable by interface: ...Persistable is not Persistable: field _field: Class ...Field does not implement net.rim.vm.Persistable
Is the a way to override this class persitant implementation and exclude problematic fields?
Solved! Go to Solution.
12-15-2009 07:30 AM
create a persistable and a nonpersistable version and convert the objects on read/write
12-15-2009 01:44 PM
Thanks for the reply.
I done something similar, I created a data class for the persistence and a runtime class with the additional fields.
This is not very convenient as these classes are deep in a complex data tree but I guess this is how it should work with BlackBerry.