-->
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: "extends" meta tag ignored for subclasses... why?
PostPosted: Mon Sep 12, 2005 12:22 am 
Beginner
Beginner

Joined: Mon Nov 29, 2004 11:51 am
Posts: 31
Hibernate version: 3.0.5

From the Hibernate Toolset document at (http://www.hibernate.org/hib_docs/refer ... guide.html) regarding the 'extends' meta tag:
"class the class should extend (ignored for subclasses)"

... why ignored for subclasses? Is there something wrong with having it extend a different class than what's mapped in hbm and having that non-mapped superclass extend the mapped superclass?

MappedClassA
|
NonMappedCLassB
|
MappedSubclassC

The reason I ask is that, naturally, I want to implement some custom behavior for my subclasses but want to continue to use hbm2java... and keep my persistence bean properties seperate from the business logic.

I can probably work around the hbm2java thing, but I'm wondering if hibernate will have some problem with me doing that sort of structure.

Thoughts?


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.