Backendless Support
 
Answered

Difference between PersistenceService.of(E) and Data.of(E)

Hi,

Since I can, for example, save a data object as well with Backendless.PersistenceService.of( E ) as with Backendless.Data.of( E ), what is the difference between the two and are there cases where it is better to use one over the other?

Thank you in advance,

Regards,

Christophe

Leave a Comment

Comments (2)

photo
1

There is no difference. Backendless.Data was added later because it is shorter and just looks better. We kept Backendless.Persistence for backwards compatibility.

Regards,

Mark

photo
1

Hi Mark,

Thank you,

Regards,

Christophe