-->
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: Liste in einer Map
PostPosted: Mon Mar 06, 2006 7:29 pm 
Newbie

Joined: Mon Mar 06, 2006 7:02 pm
Posts: 4
Hi,

ich habe mal ne Frage, wie man eine Liste in einer Map mapt.

Also in Java 1.5 sähe das so aus

private Map<A,List<B>>

meine Idee wäre sowas in die Richtung, aber egal was ich probier irgendwie wills nich klappen

<map table="tableA">
<key>
<column name="" not-null="true" />
</key>
<map-key-many-to-many class="A"/>
<list name="BuildlistUnitTyp" table="tableB" cascade="all">
<index>
<column name="a" not-null="true" />
</index>
<many-to-one class="B"/>
</list>
</map>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 24, 2006 6:48 am 
Newbie

Joined: Mon Apr 24, 2006 6:42 am
Posts: 1
Hallo Moeth,

ich hab in etwa das gleiche Problem. Hast Du inzwischen eine Lösung gefunden?

Gruß, Guido


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 06, 2006 9:19 am 
Newbie

Joined: Mon Mar 06, 2006 7:02 pm
Posts: 4
Nicht wirklich, hab das Mapping irgendwann runtergebrochen auf

List<C> (Wobei der Index dem PK von A entspricht)

und in der Klasse C existiert nun eine List<B>

Ist zwar vom Model her etwas unschön, hab keine bessere Idee und Lust mich damit zu beschäftigen *g*


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.