-->
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: What is the solution of many subclass parent to same child?
PostPosted: Wed Mar 24, 2004 5:04 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
In my case, a parent/child association. But there are many subclass parent and all have same child.
Code:
DB schema
Parent table
id, parnet_name, flag .....
Child table
id, parent_id, name .....

Different "flag" indicate different subclass of parent. In xml of child table, how to config many-to-one? If it associates to super class of parent, how to write hql or criteria to join child to a special subclass parent?


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.