-->
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: Element "joined-subclass" requires additional elem
PostPosted: Thu Jan 29, 2004 2:33 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
I have this mapping:

<class name="Boss" table="Boss">
<id name="id" type="long" unsaved-value="null">
<generator class="identity"/>
</id>
<property name="name" type="string"/>
<joined-subclass name="BigBoss" table="BigBoss"/>
<key column="boss_id"/>
<property name="how_big"/>
</joined-subclass>
</class>

And these tables:

Boss
-----
id bigint (pk)
name varchar(70)

BigBoss
---------
boss_id bigint (reference id in Boss)
how_big varchar(50)

And I got this error :
SEVERE: Error parsing XML: XML InputStream(25) Element "joined-subclass" requires additional elements.
SEVERE: Error parsing XML: XML InputStream(26) Element "class" does not allow "key" here.
......
......


What did I do wrong?
Is it correct that element "key" in "joined-subclass" is a foreign key to the superclass?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 5:24 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
remove the / from
<joined-subclass name="BigBoss" table="BigBoss"/>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 6:17 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
Silly me. Thanks a lot!


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.