I have a POJO like this
public class Application
{
private String dcn;
private Party applicant;
private Date createdDateTime;
private NamedValue[] flags;
// containing getter and setters
}
public class Party
{
private String lastName;
private String rfc;
// containing getter and setters..
}
And my table columns are..
dcn,applicantLastName,applicantRFC,createdDateTime,flag
all are varchar type. I am using annotations to get data from the above table and set it to POJO using below Query.
@Select("SELECT dcn,applicantLastName,applicantRFC,createdDateTime,flag FROM DnA_Application WHERE dcn=#{dcn}")
List<Application> getByProc(int proc);
I am not getting data for Party bean from table using above config .Please help.