-->
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: question about inheritance
PostPosted: Sat Jun 12, 2004 7:39 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
hi and a wounderfull morning,

I had a little problem with hibernate 1.4 and perhaps its only a problem aobut how to do this....

ok now descripe it

I had a class A with a 1:n relation to B. It's maped as a set.

now my object B is an interface with 3 implementation (C,D,F) likes the cheque example at the documentation. So i want to say A.getChildren() and this gives me a set containning some objects of type C, some objects of D and some of E.

now the question: Hhow to deal with this problem, I had absolutly no idea...

o i forgett, the database is an existing application and i don't have the possibility to modify the model, so all subclasses must stored in one table...

thanks, gert


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 13, 2004 5:58 pm 
Regular
Regular

Joined: Tue Oct 07, 2003 10:20 am
Posts: 77
Have you read http://www.hibernate.org/hib_docs/refer ... tance.html?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 3:50 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
yes sure, but this was not so helpfull, and i don't find a xdoclet tutorial how to fix this stuff


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.