On 17.08.2007, at 00:38, Riccardo De Menna wrote:
I was wondering if anyone could point me out in the right direction
on this problem of mine.
I'm writing a domain registration app and I have a model that holds
an entity "domain".
It's generic in nature as it will accomodate many different domain
endings (com net org eu etc).
Since I need to fit in a lot of custom behavior I was wondering if
I can force my editing context to retrieve data from the database
but then instantiate custom subclasses of a generic abstract
"domain" class (ie DotComDomain, DotNetDomain) instead of what I
provide in the model.
Is there a way to decide on the fly what class gets used to
generate fetched EO's?
You can use EOF inheritance (get Chuck's book to really learn how to
do it).
cug
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]