• 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: Inheriting from EO Generated Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheriting from EO Generated Classes


  • Subject: Re: Inheriting from EO Generated Classes
  • From: LD <email@hidden>
  • Date: Wed, 10 Aug 2005 16:59:39 +1000

Hi there,

On 09/08/2005, at 3:28 PM, Colin Shreffler wrote:

I’m trying create derived (child) classes for each of my EO generated classes.

For instance, I have an EOCustomer object that contains the java code generated by EOModeler.  I have a class that extends this class called Customer.  This way I can add custom code to my Customer class and generate the EOCustomer class whenever my model changes without having to merge my custom code each time.

The problem I’m having is that when I try to use my Customer class in a fetch and display the return results in a WORepetition, the framework throws an error.  It tries to pass the base class type (EOCustomer) rather than the derived type (Customer).  The error is below.  Is anyone else doing this successfully?  Is there a work around?

You'll need to adjust the "Class" for the Entity to reflect Customer rather than EOCustomer. You might be able to do this at run-time if you're not wanting to change your model...

with regards,
--

LD


 _______________________________________________
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

References: 
 >Inheriting from EO Generated Classes (From: Colin Shreffler <email@hidden>)

  • Prev by Date: Using LIKE with PostgreSQL
  • Next by Date: Re: ConnectorJ and MySQL4.1
  • Previous by thread: Re: Inheriting from EO Generated Classes
  • Next by thread: Creating a LIKE Fetch Specification
  • Index(es):
    • Date
    • Thread