-->
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: Bidirectional one-to-many with Map at many-valued end
PostPosted: Mon Mar 29, 2004 5:14 pm 
Newbie

Joined: Mon Mar 29, 2004 4:55 pm
Posts: 1
The docs explicitly state that Hibernate doesn't "currently" support bidirectional one-to-many with Map at the many-valued end. However, it appears to work fine with 2.1.1 -- even with a composite-index. (The collection retrieval selects the index column twice, but this appears to be harmless.) Is this just a case of the docs being out-of-date?

Here's a flavor of what I'm doing:

<map name="Addresses" lazy="true" inverse="true" cascade="all-delete-orphan">
<key column="pat_id_fk"/>
<composite-index class="AddrType">
<key-property name="Id" column="addr_typ_cd"/>
</composite-index>
<one-to-many class="Address"/>
</map>

-Tuyen


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 9:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate doesn't handle it well because the index clomun has to be mapped and maintained manually on the child side. It is still true

_________________
Emmanuel


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.