• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get EO's instantiated with dynamic class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How do I get EO's instantiated with dynamic class?
      • From: Riccardo De Menna <email@hidden>
References: 
 >How do I get EO's instantiated with dynamic class? (From: Riccardo De Menna <email@hidden>)

  • Prev by Date: Re: Using WO components inside HTML tags
  • Next by Date: Re: Using WO components inside HTML tags
  • Previous by thread: Re: How do I get EO's instantiated with dynamic class? Sorry for the spam
  • Next by thread: Re: How do I get EO's instantiated with dynamic class?
  • Index(es):
    • Date
    • Thread