例如:
@Table("t_trader")
public class Trader extends BaseEntity {
private static final long serialVersionUID = 121014516216221059L;
//
@Id(auto = false)
@Column("F_TRADER_ID")
private Long traderId;
// trader附加信息
@One(target=TraderEx.class,field = "traderId")
private TraderEx traderEx;
// trader附加图片信息
@Many(field = "realtionId")
private List<Imgs> imgs;
//1启用2禁用3销户
@Column("F_STATUS")
@ApiModelProperty("TraderStatusDic")
private Integer status;
}
想更新traderEx中的属性,
FieldFilter.create(Trader.class, true).run(new Atom() {
public void run() {
int i = traderDao.getDao().update(trader);
log.info("updateCompanyInfo:{}行", i);
}
});
这样是不对的,各位有办法解决吗