Backendless Support
 
Solved

Difference between Persistence and Data class

can someone please tell what is exactly difference between:

Backendless.Data.of( E ).save( E entity )

and:

Backendless.Persistence.of( E ).save( E entity )

Leave a Comment

Comments (1)

photo
2

Hi Hamid,

These two are the references to the same class, so they're totally identical. "Persistence" reference is an older one, and "Data" was introduced later as a shorter and more understandable alternative. There's a small probability that "Persistence" will be removed in the future versions of the SDK as a deprecated one, so "Data" is preferred.