-->
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: joined-subclass and join mapping question
PostPosted: Mon Jun 01, 2009 4:07 am 
Newbie

Joined: Mon Jun 01, 2009 2:59 am
Posts: 1
i have a table stracture which leads itself to table per subclass design. my "base" table has many common fields and each one of the children also has many fields that are unique for that entity. this works very well with joined-sublass where the common fields are added to the child entities through inheritance. the base is linked to the childeren through a common PK
However, one of my tables has to be split (due to database replication limitations) and i would like to have the one-to-one mapping of these two tables as a single object. in isolation this would work using the join mapping, but since this class is also inheriting it is not working.

e.g.:
DB stracture
base - col1
normal_child - col2
split_child1 - col3
split_child2 - col4

abstract entity1- col1
entity2 : entity1 - col1, col2
entity3 : entity1 - col1, col3, col4

is this possible (and what version supports it)? how should the mapping look like

thanks


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.