Hi
I am saving a custom class to the user table by using the user.setProperty method. Once saved i try to get the object back from the user object by calling the getProperty method. This gives me a HashMap which contains the correct values of the related object. How can i get an instance of the object back and not a HashMap of the serialization data
Try calling this method before you fetch any data:
Backendless.Data.mapTableToClass( "your-table-name", YourClass.class )
For example, if the table name is “Person” and the class name is Person, it would like this:
Backendless.Data.mapTableToClass( "Person", Person.class )
Works great thank you