一个投诉单对应多个上传附件,一对多配置不起作用,nutz版本1.r.66
/**
** @author beili
** 投诉数据
*/
@Table("tb_complaint")
public class ComplaintModel extends PojoBasis{
@Many(target = AttachFileModel.class, field = "complaintId")
protected List<AttachFileModel> files;//附件
@Name
@Prev(els=@EL("uuid(32)"))
protected String pkid;
@Column
protected String number;//投诉单号
//省略get set
}
/**
** @author beili
** 附件文件
*/
@Table("tb_attach")
public class AttachFileModel extends PojoBasis{
@Name
@Prev(els=@EL("uuid(32)"))
protected String pkid;//主键
@Column
protected String path;//文件路径
@Column
protected String complaintId;//投诉单ID
//省略get set
}