Re: Inheriting from EO Generated Classes
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... |
_______________________________________________
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