<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Forcing object reload"]]></title>
		<link>http://forums.visual-paradigm.com/posts/32.html</link>
		<description><![CDATA[Latest messages posted in the topic "Forcing object reload"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Forcing object reload</title>
				<description><![CDATA[ Is there any way to force the persistent manager to re-load objects. This is the problem I am having:<br> 1- I load an array of objects A from the DB<br> 2-  I modify one of the object and save() and commit() to the DB<br> 3- When I look at the DB, the object is updated but when I read the initial list (from step 1) the object is not modified. If I try reloading (using the Factory class) it seems to be reloading from cache rather then the DB. Any way to prevent this?<br> Martha Greg<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#3054.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#3054.html</link>
				<pubDate><![CDATA[Fri, 16 Sep 2005 03:20:18]]></pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Forcing object reload</title>
				<description><![CDATA[ Dear Martha,<br> <br> Thank you for your message. In order to reduce the number of database access and for fast loading, the persistable objects will be cached in the session. You can remove the cache by using this<br> <br> PersistentManager.instance().getSession().evict(object);<br> <br> where the <b>object</b> is the persistable object that you want to remove from cache. If you have any further questions, please feel free to contact us again.<br> <br> Best regards,<br> Rain<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#3059.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#3059.html</link>
				<pubDate><![CDATA[Fri, 16 Sep 2005 10:48:06]]></pubDate>
				<author><![CDATA[ Rain]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi Rain,<br> <br> I ran into this to, and was happy to find this entry in the Forum. When I search on "evict" in the user guide - no luck. I'd like to see the default eviction cycle and other documentation related to this kind of issue, and maybe some best practices in the guide for when to manually evict, and when to aviod it.<br> <br> Brien]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#6085.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#6085.html</link>
				<pubDate><![CDATA[Thu, 5 Oct 2006 04:09:57]]></pubDate>
				<author><![CDATA[ Brien Williams]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi Brien,<br> <br> I will let our documentation team know about your need. Meanwhile, if you  have any questions about the use of evict, please feel free to post here.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#6087.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#6087.html</link>
				<pubDate><![CDATA[Thu, 5 Oct 2006 09:35:51]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi support, hi all,<br> <br> as the freshness of objects is critical to my application the issue of evicting/refreshing objects has been keeping me busy for a while.<br> <br> As my impression is, closing and re-opening a session is much more efficient or just even effective, than evicting a single object from the cache. <br> <br> More detailed: When I evict a single object from the cache my impression is that the object does not or not instantly get removed from and reloaded into the cache, when needed. This is inacceptable, as I do want any actions to take effect immediately, and not by chance or after a while.<br> <br> When I close and re-open my session, the effect (or the change in the object) is instantly reflected.<br> <br> Now I'm wondering if it has any negative side-effects, closing and re-opening a session!? Like using resources, because _all_ objects have to be reloaded!?<br> <br> I'd be grateful if you could offer some more detailed insight into this topic. Or are you the wrong address, because those are Hibernate issues!?<br> <br> Thanks + regards<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16463.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16463.html</link>
				<pubDate><![CDATA[Mon, 2 Apr 2007 23:39:47]]></pubDate>
				<author><![CDATA[ christine.slotty]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi christine,<br> <br> A session contains a cache of objects. With evict, object will be removed from the cache, so the next query will load again from the database. Refersh will reload the object from the database again. <br> <br> About re-opening of session, the session with all its cache will be removed, and the new session will work like as if the application is restarted. There won't have any negative effect, except that the cache will be removed.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16471.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16471.html</link>
				<pubDate><![CDATA[Tue, 3 Apr 2007 10:26:48]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi Jick,<br> <br> thanks for your reply!<br> <br> Yet I'm sorry to say that it doesn't help me or tell me anything new. What you're describing is what's already in the documentation, what I have already written in my posting and how it's supposed to be.<br> <br> But I guess this is simply the wrong place to ask detailed Hibernate questions...<br> <br> What I experience is that objects do _not_ get removed immediately, when using evict. It would be interesting to get to know why, or what I might be doing wrong. I already turned off browser caching and all that.<br> <br> Secondly, the application does _not_ behave as if it were restarting. When the application starts, my debug log gets crowded with Hibernate object loading, configuration and all that. The debug log is quite quiet when doing a session close and a new getSession.<br> <br> So it seems as if the Hibernate session does _not_ get closed completely, or the cache does not get reloaded completely.<br> <br> Anyways, never mind. I'm glad to be able to use the tool, which is very helpful. And to get expert advice I'll ask experts ;-)  (and not VP first level forum support, resp. VP documentation) or do research on my own.<br> <br> Stating the obvious is never helpful, neither in product documentation nor in a support situation.<br> <br> Like I said, thanks anyways and never mind. I'm not trying to "unmake" your day. The product is fine. And sometimes this support forum <i>does</i> help. ;-)<br> <br> Best regards.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16514.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16514.html</link>
				<pubDate><![CDATA[Sat, 7 Apr 2007 01:21:13]]></pubDate>
				<author><![CDATA[ christine.slotty]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi christine,<br> <br> Sorry if my response was not good enough to address your query.<br> <br> <table class="quote-table" align="center">
		<tr>
		<td class="quote">Secondly, the application does _not_ behave as if it were restarting. When the application starts, my debug log gets crowded with Hibernate object loading, configuration and all that. The debug log is quite quiet when doing a session close and a new getSession. &nbsp;
		</td>
		</tr>
		</table><br> <br> You are right. Renewing of session is quiet, it does not require reloading the configuration. Turning on show_sql in configuration can help checking whether Hibernate has really retrieved data from the database.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16535.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16535.html</link>
				<pubDate><![CDATA[Tue, 10 Apr 2007 10:26:38]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Forcing object reload</title>
				<description><![CDATA[ Thanks for the additional information.]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16623.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16623.html</link>
				<pubDate><![CDATA[Fri, 13 Apr 2007 23:07:59]]></pubDate>
				<author><![CDATA[ christine.slotty]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ You are welcome. Have a nice weekend!  :D ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#16631.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#16631.html</link>
				<pubDate><![CDATA[Sat, 14 Apr 2007 09:01:39]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ FYI:<br> I ran into a similar problem noticing that my classes were indicating different results than what was in my database after updates, and rather than using the Evict approach I'm exploring another solution path.<br> <br> Details on separate thread:<br> <a href="http://forums.visual-paradigm.com/posts/list/0/2651.html#20158" target="_blank" rel="nofollow">http://forums.visual-paradigm.com/posts/list/0/2651.html#20158</a><br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#20159.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#20159.html</link>
				<pubDate><![CDATA[Wed, 14 Nov 2007 03:02:29]]></pubDate>
				<author><![CDATA[ LW]]></author>
			</item>
			<item>
				<title>Re:Forcing object reload</title>
				<description><![CDATA[ Hi LW,<br> <br> Let's continue at:<br> <a href="http://forums.visual-paradigm.com/posts/list/0/2651.html#20158" target="_blank" rel="nofollow">http://forums.visual-paradigm.com/posts/list/0/2651.html#20158</a><br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/995#20173.html</guid>
				<link>http://forums.visual-paradigm.com/posts/995#20173.html</link>
				<pubDate><![CDATA[Wed, 14 Nov 2007 18:31:25]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>