-->
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: Unable to use <set> within <join>?
PostPosted: Tue Aug 10, 2010 2:19 pm 
Newbie

Joined: Tue Feb 26, 2008 1:17 pm
Posts: 9
I have a subclass element, which happens to be a mix of table per class hierarchy with table per subclass. My question is, why am I not allowed to use the <set> mapping within the <join> element? What is the alternative?

Code:
<subclass name="bean.Employer" discriminator-value="E">

            <join table="EMPLOYER">
                <key column="USER_ID"/>
                <property name="name" column="NAME" type="java.lang.String"/>
                <property name="description" column="DESCRIPTION" type="java.lang.String"/>
                <set name="locations">
                    <key>
                       <column name="EMP_ID" precision="12" scale="0"/>
                    </key>
                    <one-to-many class="bean.EmpLocation"/>
                 </set>
            </join>

        </subclass>


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.