I'm trying to map a Set of Java5 Enums. Mapping an Enum works (using the solution from the wiki) as intended, but I'm having trouble mapping a Set of them:
org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: example.User.languages[example.Language]
I use these annotations:
Code:
@OneToMany(cascade=CascadeType.ALL)
@Type(type = "example.orm.EnumUserType", parameters = { @Parameter(name = "enumClassName", value = "example.Language") })
private Set<Language> languages = new HashSet<Language>();
hibernate-3.2.0.cr2, hibernate-annotations-3.2.0.CR1.
Any help or pointers in the right direction are appreciated.