-->
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: Class Table Inheritance
PostPosted: Thu Oct 23, 2003 3:48 pm 
Newbie

Joined: Thu Oct 09, 2003 9:02 am
Posts: 4
Location: New York, NY USA
Howdy -

I'm using Middlegen/hbm2java/Ant to generate mappings and POJOs for my project. I would like to have my domain objects sublclass the generated classes but not add any additional persistent information.

I was wondering whether it was possible to have a mapping like so

Code:
<class
    name="com.generated.NastySuperClass"
    table="DUDE"
>
...
<subclass name="com.not.generated.NiftySubClass" />
...
</subclass>


Now I understand that I could simply use the tools to generate the code and then map my subclass directly (or cut and paste and not subclass at all); but, I was hoping to use this approach for several domain classes, and I would like to avoid having to do all relevant FK mappings by hand when things change.

Thanks!

Matt


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.