@ManyMany(from = "userId", relation = "sys_user_unit", target = Sys_role.class, to = "unitId")
protected List<Sys_unit> units;
是不是应该改为:
@ManyMany(from = "userId", relation = "sys_user_unit", target = Sys_unit.class, to = "unitId")
protected List<Sys_unit> units;
同时,请教一下,在前面:
@One(target = Sys_unit.class, field = "unitid")
private Sys_unit unit;
这个sys_unit和sys_user的对应关系是,一对一,还是一对多呢?
@Wizzercn