如题,用dao.fetchLinks方法时有办法将执行的语句输出在日志中么?
6 回复
public class JoinInVO
{
@Id
private int id;
/**关联的供应商id和经销商id*/
@Column
protected String supplyerId;
@Column
private String salesId;
@Column
private String userLevelId;
@One(target = JoinInLevelVO.class, field = "userLevelId", key = "levelId")
protected JoinInLevelVO joinInLevelVO;
}
``````
public class JoinInLevelVO
{
//通用字段
@Name
@Column
private String levelId;
@Column
private String levelName;
@Column
private String companyId;
}
这个关联的写法应该是没有问题的
添加回复
请先登陆