String sqt="select r.repairId repairId from tapplyrepair r,TSERVICETYPE s,TREPAIRAPPEAR a,TApplyRepairInfo i where r.REPAIRTYPE = s.KID and r.REPAIRAPPEAR = a.appearid(+) and r.REPAIRID = i.repairId and r.ISDISPATCHED = 1 and i.isReceived = 0 ";
Sql sql=Sqls.create(sqt);
sql.setCallback(Sqls.callback.entities());
sql.setEntity(dao.getEntity(detailtask.class));
dao.execute(sql);
list = sql.getList(detailtask.class);
System.out.println("大小"+list.size());
*****************************************************************************************下面是实体类
public class detailtask {
private String repairId;
public String getRepairId() {
return repairId; }
public void setRepairId(String repairId) {
this.repairId = repairId;
}
映射出list.size()是0,但数据库执行这句sql 有一条数据。???
}