cancel
Showing results for 
Search instead for 
Did you mean: 

Deprecation of Persistence API in ME2.1 SP03

Former Member
0 Kudos

Hello together,

I am coding an application with persistence functionality. I am following the example PersistenceSimple from the Mobile Development Kit (MDK):ME2.1 SP03, 4th revised Edition

The example uses the class "Transaction" for persistence. But this class and its methods is declared deprecated. My coding looks like this:

transaction = transactionManager.begin(TransactionType.WRITE);
transactionManager.update(entity, TreeOptionType.COMPLETE);
transaction.commit();

If I simply avoid step 1 and step 3 and using TransationManager only, my data gets written to the disk but it is not persisted after the ME shuts down.

So anybody here with an alternative for ME 2.1 SP03 which does NOT make use of "Transaction"?

Best regards, Tim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

sorry - that is a "bug" in the Javadoc. For ME2.1 transaction has to be used - in MI2.5 it is different.

Bye Sigi

Answers (0)