Hi,
I’m new in backendless and this is the first contact that I have with your backend that seems cool. I’m getting some problems when I try to get all the data that I have in one table in my data base.
That I want to do is get all the data of one/all row (name, description and location) in one object to can handle in the client. I’m using Android Studio.
With the code of below I’m only getting the name of my data, and description and location I’m getting null. I have spent some hours in this and I don’t know why I’m not getting all the object.
I attached you a jpg of my database
Thanks,
I’m doing this in to retrieve the data:
Backendless.Persistence.of( Beach.class).find( new AsyncCallback<BackendlessCollection<Beach>>(){
@Override
public void handleResponse( BackendlessCollection<Beach> response )
{
List<Beach> firstPage = response.getCurrentPage();
for( int i = 0; i < firstPage.size(); i++ ) {
Log.e(TAG, firstPage.get(i).getName() + firstPage.get(i).getDescription() + firstPage.get(i).getLocation());
}
}
@Override
public void handleFault( BackendlessFault fault )
{
// an error has occurred, the error code can be retrieved with fault.getCode()
}
});
This is my class Beach
public class Beach{
private String name;
private String description;
private GeoPoint location;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public GeoPoint getLocation() {
return location;
}
public void setLocation(GeoPoint location) {
this.location = location;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}