-->
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: 1-to-many + inheritance not returning full graph
PostPosted: Mon May 31, 2004 5:36 pm 
Newbie

Joined: Mon May 31, 2004 5:20 pm
Posts: 6
I have the following relationships:
Class P can have 0 or more Class A
Class M inherits from A, and can have 0 or more Class U
I can insert this graph just fine. Everything shows up in the database correctly. However, when I do a session.get(P.class, oid) I get everything but the U collection. P6Spy indicates that there is no SQL for getting this collection from the database.

Relevant ( I think, will post the others.) hbm.xml


<class
name="A"
dynamic-update="false"
dynamic-insert="false"
>
....snip properties that work...
<joined-subclass
name="M"
dynamic-update="false"
dynamic-insert="false"
>
<key
column="subclassKey"
/>

<set
name="U"
lazy="false"
inverse="true"
cascade="save-update"
sort="unsorted"
>

<key
column="M_oid"
/>

<one-to-many
class="U"
/>
</set>


</joined-subclass>

</class>

Any help would be appreciated.

_________________
Grim Shieldsson


Top
 Profile  
 
 Post subject: Figured it out.
PostPosted: Tue Jun 01, 2004 1:24 am 
Newbie

Joined: Mon May 31, 2004 5:20 pm
Posts: 6
Whoops... configuration error.. had a column named wrong in the xdoclet for the missing collection.

_________________
Grim Shieldsson


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.