-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to create map with set value type?
PostPosted: Wed Jun 09, 2004 5:55 am 
Newbie

Joined: Wed Jun 09, 2004 5:53 am
Posts: 6
How can I make Map property that holds Sets as values?

Table A ( a_id integer)
Table B (b_id integer)
Table C (c_id integer)
Table ABC (a_id integer (FK), b_id integer (FK), c_id integer (FK))

I'd like to make class A to have a Map property that maps B to set of C
for example
<class name="A" table="A">
<map name="B_to_C_map" table="ABC">
<key column="ReferenceElement_ID" />
<index-many-to-many column="b_id" class="B"/>
<!-- Something that defines Set of references of C instances -->
</map>
</class>

Should I consider <nested-composite-element> ???


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 09, 2004 5:57 am 
Newbie

Joined: Wed Jun 09, 2004 5:53 am
Posts: 6
Of cause I was incorrect in key column
<key column="a_id" />


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.