Re: How do I get EO's instantiated with dynamic class?
Re: How do I get EO's instantiated with dynamic class?
- Subject: Re: How do I get EO's instantiated with dynamic class?
- From: Guido Neitzer <email@hidden>
- Date: Fri, 17 Aug 2007 09:15:24 -0600
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden