This content has been marked as final.
Show 3 replies
-
1. Re: oneToMany enums
lvdberg Oct 11, 2010 6:49 AM (in response to vata2999)Hi,
you are using a select many and you try to put the result in a single reference. Try using a Set instead.
Leo
-
2. Re: oneToMany enums
vata2999 Oct 11, 2010 7:06 AM (in response to vata2999)Thanks leo for your quick reply now i've got this exception
Could not determine type for: java.util.Set, for columns: org.hibernate.mapping.Column(mtypes)
private Set<TypeMember> mtypes = new HashSet<TypeMember>();
-
3. Re: oneToMany enums
lvdberg Oct 11, 2010 7:25 AM (in response to vata2999)Hi,
You should annotate it with the CollectionOf.. annotation, so Hibernate van map it cottectly.Be aware that the default mapping for an Enum is Ordinal.
Leo