-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Using a custom collection with Hibernate annotations
PostPosted: Mon Mar 31, 2008 9:37 am 
Newbie

Joined: Tue Dec 04, 2007 6:24 am
Posts: 13
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!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 11, 2008 3:46 am 
Newbie

Joined: Fri Mar 14, 2008 4:20 am
Posts: 17
I have the same problem. Did you find a solution?


Top
 Profile  
 
 Post subject: Re: Using a custom collection with Hibernate annotations
PostPosted: Mon Aug 17, 2009 3:03 pm 
Newbie

Joined: Tue Mar 18, 2008 12:34 pm
Posts: 6
I have the same problem, does any one know the solution?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.