Re: Caching many to many
Re: Caching many to many
- Subject: Re: Caching many to many
- From: "Daniele Corti" <email@hidden>
- Date: Tue, 24 Jul 2007 13:59:48 +0200
2007/7/24, Ute Hoffmann <email@hidden>:
Hallo,
I use code like:
aGruppe.jgruppeprodukts_produkt() to fill a Array with Objects. The
Objects come from a flattened many to many realtionship.
Without know what this method do, I can't say what the problem can be, but try use
ec.refreshAllObjects()
on your Editing context (ec) after the inster of the element
This works well, but when I add a new Element to the relationship the
element will not show in the list.
Question: Is there a way to get a refreshed fetch for the realtionship.
Will changing the editingContext do the trick? At the moment
everything is in the session defaut edcontext. Will a new
editingcontext solve this?
Is there a way to tell the above code to get fresh data from the db
(apart from timeStampLag - which is set but does not show a effect?).
Thanks for a tip.
Regards
Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (
This email sent to email@hidden
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden