Single step retrieval

Hello, I have issue with single step retrieval when i try to Retrieve a related table it keeps sending null values.
i have one parent table called “Property Models” ,
one related table called “marketer”
with one to one relation to a column called “marky”
This is my code :
List relation = new ArrayList();
relation.add(“marky”);
Backendless.Data.of(PropertyModels.class).findById(objId,relation,
new AsyncCallback()
{
@Override
public void handleResponse(PropertyModels response)
{
waiting.dismiss();
PropertyModels model;
model=response;
CallPhoneTextView=model.getCallPhone();
}

			@Override
			public void handleFault( BackendlessFault fault )
			{
				waiting.dismiss();
			}
		});

Hello @Mohammed_Abdalla

I’ve created an internal ticket BKNDLSS-22082 to investigate your problem.
Could you please provide with us your AppId and version of the SDK you use.

Regards, Vlad

App Id :66080E8F-379E-C76A-FFBA-B08F90122D00
sdk version : 5.7.1
i am using “.jar” sdk

Hi, Mohammed.
I’ve tried with your example and receive the parent object with the child related object.
Do you still experience the problem?

looks like my problem is in the way of receiving the data, can you show me exactly how did you Retrieved the data ?

Hi Mohammed,

Could you please show me what the PropertyModels class looks like?

Does it have a public field or public getMarky/setMarky methods for the marky property?

Mark

public class PropertModels{
marketer marky
// here i put my setters and getters
}

Can I see the complete class please?

public class PropertyModels {
private int price;
private String address;
private int area;
private String description;
private String image;
private String purpose;
private String type;
private String title;
private String objectId;
private marketer marky;
private long created;
public void setPrice(int price)
{
this.price = price;
}

public int getPrice()
{
	return price;
}

public void setAddress(String address)
{
	this.address = address;
}

public String getAddress()
{
	return address;
}

public void setArea(int area)
{
	this.area = area;
}

public int getArea()
{
	return area;
}

public void setDescription(String description)
{
	this.description = description;
}

public String getDescription()
{
	return description;
}

public void setImage(String image)
{
	this.image = image;
}

public String getImage()
{
	return image;
}

public void setPurpose(String purpose)
{
	this.purpose = purpose;
}

public String getPurpose()
{
	return purpose;
}

public void setType(String type)
{
	this.type = type;
}

public String getType()
{
	return type;
}

public void setTitle(String title)
{
	this.title = title;
}

public String getTitle()
{
	return title;
}

public void setObjectId(String objectId)
{
	this.objectId = objectId;
}

public String getObjectId()
{
	return objectId;
}

public void setMarky(marketer marky)
{
	this.marky = marky;
}

public marketer getMarky()
{
	return marky;
}

public void setCreated(long created)
{
	this.created = created;
}

public long getCreated()
{
	return created;
}

}

Is the “marketer” class public?
Does it have a public constructor?

that was my problem, i will add that constructor.
thanks