-->
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.  [ 1 post ] 
Author Message
 Post subject: idbag many-to-many with Set semantics
PostPosted: Thu May 12, 2005 11:49 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
Currently I am using an <idbag> to map a many-to-many association based on a pure association table with a surrogate primary key. It works fine, but I have to use Collection in my code, whereas I'd like to be able to use Set to keep things consistent. There is a database level uniqueness constraint on the two foreign keys in the association table which should make it possible to use Set semantics, but I cannot figure out a way to convey this to Hibernate. I've tried surrounding the <key...> and <many-to-many...> with <properties> so I could use unique="true", but that didn't work.

Is there a way to do this?


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

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.