-->
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.  [ 2 posts ] 
Author Message
 Post subject: Remove mapped class from the configuration.
PostPosted: Sun Feb 29, 2004 12:29 pm 
Newbie

Joined: Mon Jan 12, 2004 7:05 am
Posts: 16
I am writing for my diploma thesis an aspect oriented persistence layer. I use Hibernate for the persistence layer and add aspects to it. My goal is that the programmer only need to declare a java object as persistent. Other things such as mapping and database access code will be automaticaly added from the aspects. The problem I have now is the following: I am loading the persistent classes at runtime. After loading the class i generated the mapping for it and add the mapping to the hibernate configuration at runtime. The problem now is, if I load an subclass of an class that is already in configuration, I have to remove old mapping and replace it with new one which additionaly contains the subclass block.
I can not extend the Configuration and Binder classes, because Binder is final. What could be the alternative way to achieve this?

listopad


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 11:03 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Do a 2 steps loading and sort your classes

_________________
Emmanuel


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