-->
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: Dynamic Models
PostPosted: Fri Sep 30, 2005 2:11 am 
Newbie

Joined: Tue Sep 27, 2005 10:12 am
Posts: 9
Hi,

I am in need of building a dynamic model in Hibernate and have seen that it is possible in Hibernate from http://www.hibernate.org/171.html.

My application needs to add new classes at runtime ie after the application is deployed into the JBOSS App server it needs to add additional classes into the current Application.

Is there any sample code or a working example that will show how to implement this.

Request your help in this regard.

Regards
Vasu


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 2:53 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
your link appears to be broken.

to answer your question, you will want to do exactly what hibernate always does at run time. instantiate a Configuration object, call addClass() for whatever class you want, create a sessionFactory, ...


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.