D2W + custom EOEditingContext subclass
D2W + custom EOEditingContext subclass
- Subject: D2W + custom EOEditingContext subclass
- From: Sam Barnum <email@hidden>
- Date: Wed, 26 Sep 2007 05:25:38 -0700
I'm using a custom EOEditingContext subclass to auto-restrict
qualifiers (thanks to everyone who had suggestions on that)
To do this, I need to ensure that all DB access is done through my
EOEditingContext subclass (EGEditingContext).
I'm also using D2W.
The D2W class instantiates an editing context in a few places, and
I've written my own factory to take care of these
(editPageForNewObjectWithEntityNamed and
editPageForNewObjectWithConfigurationNamed). However, my client
uncovered some odd behavior in the query all page involving the back
arrow that was instantiating a regular EC.
If I want to ensure that only my custom EC subclass is used in D2W,
what other places to I need to attend to? Is there a definitive list?
I've added a check in awakeFromInsertion() to throw an exception if
my objects are instantiated in a regular EC.
_______________________________________________
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