-->
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: How to keep cache after rebuilt SessionFactory
PostPosted: Wed Jan 24, 2007 4:56 am 
Newbie

Joined: Tue Jan 17, 2006 9:48 pm
Posts: 16
Hi guys,

In order to support runtime increased O/R mapping. I have to rebuild SessionFactory without restart my application.
Could I keep cache after rebuilding SessionFactory?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 8:01 am 
Newbie

Joined: Sun Jan 21, 2007 10:56 pm
Posts: 14
you can't.

an alternative would be to make a copy of the cache...
or maybe a staging table that you can write to just before you rebuild your session factory. then at least you have a snapshot of that data

can I ask why you are rebuilding the SessionFactory during runtime?


cheers,


pali


Top
 Profile  
 
 Post subject: I want build mapping runtime
PostPosted: Wed Jan 24, 2007 9:21 pm 
Newbie

Joined: Tue Jan 17, 2006 9:48 pm
Posts: 16
I want change or add O/R mapping runtime, that's why I have to rebuild session factory.

My first target is: supports uer runtime define some customized fields.
My second target is: user is able to extend pojo runtime.
Both targets request dynamic mapping.


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.