-->
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: Composite Composite-Id
PostPosted: Thu May 27, 2004 4:07 pm 
Newbie

Joined: Fri Apr 02, 2004 4:12 pm
Posts: 12
I have a table with a composite id wherein one of the key-properties is itself a composite id of another table...

Can that be mapped??? I imagine it like so:

Code:
<composite-id
            name="id"
            class="SupplierAdditiveAssignmentModelKey"
        >
                     <key-property
                        name="spotNumber"
                        type="java.lang.Long"
                        column="NBR_SPO"
                />
                     <key-property
                        name="logicalMeter"
                        type="java.lang.Long"
                        column="IDN_MTR_RCK_LOG"
                />
                    <key-many-to-one class="SupplierAdditiveModelKey">
                                <key-property
                                      name="supplier"
                                      column="NBR_BSA_SUP"/>
                                <key-property
                                      name="additive"
                                      column="NBR_ATV_REF"/>


By the way, I'm using Xdoclet.

RMC


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 4:46 pm 
Newbie

Joined: Fri Apr 02, 2004 4:12 pm
Posts: 12
Well it works if I do:

Code:
<key-many-to-one class="SupplierAdditiveModelKey">
    <column name="NBR_BSA_SUP"/>
    <column name="NBR_ATV_REF"/>


w00t! Does anyone know how to make this work with Xdoclet??

RMC


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 28, 2004 9:52 am 
Newbie

Joined: Fri Apr 02, 2004 4:12 pm
Posts: 12
Seems there is a patch: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-776


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.