IF you want to annotate a List of Enums in Hibernate the solution will be :

@Column
@Enumerated
@ElementCollection(targetClass = MyEnum.class)
private List<MyEnum> values;
Tagged:

Laisser un commentaire