-->
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.  [ 4 posts ] 
Author Message
 Post subject: Why not Persist unmapped subclasses as parent class
PostPosted: Thu Dec 04, 2003 9:37 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If I map A but not SubA (a subclass of A), I cannot save SubA. I get a MappingException: No persister for SubA.

Why can't Hibernate check class hierarchy to find the appropriate persister ?
Is there a fundamental reason or an optimization tip ?
I can't figure it out knowing that CGLIB will actually subclass A for proxying it.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 10:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
no reason why we can't do this. its easy - one method to change


Top
 Profile  
 
 Post subject: Has this change been made?
PostPosted: Mon Mar 29, 2004 6:51 pm 
Newbie

Joined: Wed Jan 14, 2004 4:44 pm
Posts: 13
Location: Wellington, New Zealand
Has this change been made, or should I do it myself?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 8:58 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I didn't do the feature afterall. I did a quick look and found it wouldn't be that transparent. But give it a try and tell us.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.