-->
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.  [ 3 posts ] 
Author Message
 Post subject: need help using classloader and hybernate at the same time..
PostPosted: Tue Aug 07, 2007 1:37 pm 
Newbie

Joined: Tue Aug 07, 2007 1:25 pm
Posts: 4
i have an application that uses hybernate for persistence in java, but at the same time i use a classloader for importing pluggins to the application.

My problem is that i dunno the name of the class i have in a table, i know the name of the interface or the abstract class that is implement or extended... and when i use in the xml for example:
Code:
<class
        name="Node"
        table="node"
    >

Node should be the father class... and is the class that is extended from all the pluggins i want to load from outside the application.

The application load the father class when i want to load an external class that is in a pluggin... i know the name of the class at execution time, but i don't know how can i load it propperly for using it as the son, and not as the father...

can anybody help me?

Thanks to all! and sorry about my pour english ;)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 08, 2007 12:30 pm 
Newbie

Joined: Tue Aug 07, 2007 1:25 pm
Posts: 4
or any way for getting the classes telling the name of the class in execution time... the classes have the same attributes, so in the table there is no difference...

anybody can help me?

thanks to all


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 09, 2007 12:32 pm 
Newbie

Joined: Tue Aug 07, 2007 1:25 pm
Posts: 4
or any way for loading some classes from only one table? taking the value from a column of the table that says which class is is?

thanks to all!!


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