2 zhongjianno1 zhongjianno1 于 2013.12.12 10:41 提问

Hibernate set many-to-many EnumType 枚举类型的set集合怎么多对多关联起来?

枚举类
public enum PurchaseAttachmentType {
REQUIREMENTS,
SIGN,
OPINION,
REPROT,
ANNOUNCEMENT,
AGENCY,

TRANSACTION
;
}

public class ProcurementMethod {

private Set purchaseAttachmentTypes;
}

hibernate配置文件(省略了部分)




文件类型


下面多对多的关系该怎么写?


Csdn user default icon
上传中...
上传图片
插入图片