-->
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: Mapping Question
PostPosted: Fri Jun 23, 2006 10:16 am 
Newbie

Joined: Wed May 24, 2006 3:15 pm
Posts: 4
Hi All,
I have a somewhat complex mapping (compared to what I have implemented previously). I have not been able to get the hibernate mapping to work as it appears the dtd doesn't like the xml structure of what I am trying to do.


Here is my class hierarchy.
I have main class A, with 3 subclasses, B C and D.
I would like to implement B C and D as joined subclasses.
All that works so far.

Class B has further subclasses. I would like to implement the B and sublcass hierarchy using the table per hierachy approach.

So I would like to define the subclasses of B as subclasses using descriminator values and storing all the subclasses in B's table.
This would give me four tables, for A B C and D, with the table for B containing its sublcasses.

Does this make sense and can it be done?

It appears that the DTD (v3) didn't like having a <subclass> element as the child of a <joined-subclass> element.

Thanks


Top
 Profile  
 
 Post subject: same mapping problem
PostPosted: Fri Jun 23, 2006 4:58 pm 
Newbie

Joined: Fri Jun 23, 2006 1:36 pm
Posts: 2
I am having the same mapping problem where hibernate currently does not seem to support table per hierarchy under table per subclass.

- jose


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.