两个类
public class A() {
@Id
private int id;
@Name
private int name;
@Column
private int status;
@Column
private int bId;
@One(field="bId", key="id")
private B b;
}
public class B() {
@Id
private int id;
@Name
private int name;
@Column
private int status;
}
// 现在要查询b的status为1的应该怎么写,这样写可以吗
Daos.queryWithLinks(dao(), A.class, Cnd.where("b.status", "=", 1), null, null);