You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Robert S. Sfeir" <ro...@codepuccino.com> on 2003/02/23 17:39:16 UTC

A question about refresh="true"

Ok so as a follow up to the whole insert of new objects, I've noticed 
that if I don't have refresh="true" on a Collection that when I do a 
select to get an updated Home object after the insert, which contains a 
bunch of Collection references, that the Collections are not updated 
unless I had refresh="true".

Am I to understand that OJB's caching will Cache collections, and not 
update the reference to the Collection unless we have refresh="true" 
which in essence drops all objects from the Collection and repopulates 
it?  (again lots of overhead there if the Collection is big)  If this 
is true, then does it store multiple Collections for each Home object? 
(which would not be that bad actually and be pretty efficient use of 
memory down the line)

Thanks... again

R

--
Robert S. Sfeir
Senior Java Engineer
Codepuccino, Inc.
robert@codepuccino.com

definition - Codepuccino n:
A Little JSP mixed with lots of Java, usually served with Servlets, a 
Datasource, a sprinkle of XML, and sometimes EJB.  (See Great MVC 
Frameworks)