public class Address {
private static final long serialVersionUID = -965829144356813385L;
@Id
private Long id; // 逻辑id
@Column
@ColDefine(type = ColType.VARCHAR, width = 200)
private String areaName; // 地址名称
@Column
@ColDefine(type = ColType.FLOAT)
private float longitude; // 经度
@Column
@ColDefine(type = ColType.FLOAT)
private float latitude; // 纬度
@Column
@ColDefine(type = ColType.VARCHAR, width = 200)
private String phone; // 手机号
@Column
@ColDefine(type = ColType.VARCHAR, width = 200)
private String adcode; // 行政区划代码
@Column
@ColDefine(type = ColType.VARCHAR, width = 200)
private String name; // 姓名
@ManyMany(target = Role.class, relation = "address_user", from = "addressid", to = "userid")
private List<User> users;
这个address_user表
@ManyMany(target = Role.class, relation = "address_user", from = "addressid", to = "userid")