Hi,
I have browsed this forum and the annotations documentation but couldn't find any answer.
I am trying to persist a bean which holds a customized implementation of java.util.map but I can not have it working with Hibernate annotations...
The error message is : Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements
How can I specify the collection to use? Are there any additionnal classes to write (like with xml mapping way to do it)?
Isn't it possible to do it with annotations? Do I have to mix annotations and hbm.xml file (using 'collection-type') to have it working?
Please hibernate gurus, bring me the light!
|