Clute, Andrew wrote:

If I cauld say OJB prefetch "parent" and "children" reference in all folders wich I materizalize by this call it would be more productive

I am slightly confused by this statement. Are you saying you want all
the children to be materialized when the parent is created, thus
populating all of the children's back-references to it's parent with the
same instance?



yes! That what I want.
In many cases proxies are well. In 99% i load only one folder, somethimes view its children or parent. So this problem in 99% doesn't bother me.
But only for one particular case I need work with the whole tree. So I want to change proxy attribute only for for this case when I want load the whole folders tree. Is it possible?



On a side note: One quick, dirty, workaround is to save your 'folder'
object inside the new PersistenceBroker before calling any method on the
children collection to make it be materizalized. This will 1) save the
object to the DB, but 2) Place that object in the cache, so the same
reference will be used for your back-references. Now, this might not
work in your scenario, especially if your 'folder' object has been
mutated, and you are not ready to persist it yet. However, just a
thought.

-Andrew





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to