-->
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: Xdoclet and table per class hierarchy (solved)
PostPosted: Wed May 24, 2006 3:23 pm 
Newbie

Joined: Wed May 24, 2006 3:15 pm
Posts: 4
(update, this is now working, not sure what I changed. please inquire if interested)

Hello,

I am trying to implement the table per class hierarchy approach using Xdoclet.

This works fine as long as I limit myself to a parent and child class hierarchy.
My data model is three levels deep, so I am trying to specify the grandchild as a subclass as well, in the same manner as the child.

so the top level is
* @hibernate.class
* table="Contracts"
* discriminator-value = "CB"

The middle level is
* @hibernate.subclass
* discriminator-value = "CH"
* table="Contracts"

That works so far.

The third level is

* @hibernate.subclass
* discriminator-value = "CL"
* table="Contracts"

but the subclass for the third level doesn't show up at all in the generated mapping file.

The classes inherit from one another in the expected manner.

has anyone seen or solved this?

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.