-->
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: Subclassing a hibernate class from a different project/jar
PostPosted: Thu Aug 05, 2010 1:46 am 
Newbie

Joined: Thu Aug 28, 2008 8:14 pm
Posts: 2
Location: New Zealand
Hi there,

I want to subclass a hibernate entity class that is defined in a different project that is loaded as dependency into our web application. The parent class is hbm.xml-defined, the new subclass could be hbm.xml-defined, too, but I would prefer annotations. The subclass is not adding properties to the parent but just adding new 1:m relationships that are not available for the parent class, so I thought about a single table inheritance. There are some new annotation-configured entities around.

The project is Spring-Managed, and the dependency jar file provides us with the context and hibernate config files for the base structures. We plan an extension to that. What and how must I define the inheritance in this case under the condition that I can't modify the hbm.xml file of the dependency jar?

Thank you!
Kai


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.