• 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: Entity Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entity Inheritance


  • Subject: Re: Entity Inheritance
  • From: Kieran Kelleher <email@hidden>
  • Date: Mon, 1 Dec 2008 06:25:18 -0500

Maybe the Strategy design pattern could be used instead of inheritance and the Strategy behaviour becomes a selectable "behaviour" attribute of entity "Batch" instead of using subclass types. If you are unsure what the Strategy design pattern is, see Head First Design Patterns book pages 15-24.

Regards, Kieran


On Nov 30, 2008, at 8:29 PM, Ted Archibald wrote:

I have a question about eo inheritance.

Let's say I have the following three entities:

Entity Batch - Table Batch - Class Batch extends ERXGenericRecord - qualifier typeId = 1
Entity SubBatch1 - Table Batch - Class SubBatch1 extends Batch - qualifier typeId = 2
Entity SubBatch2 - Table Batch - Class SubBatch2 extends Batch - qualifier typeId = 3


Now, if I change the typeId of an eo will this cause problems and or make WebObjects angry? From the experiments I've done it doesn't seem to cause any problems, but down the road will this have negative consequences?
_______________________________________________
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

_______________________________________________ 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: Entity Inheritance
      • From: "Ted Archibald" <email@hidden>
  • Prev by Date: Re: Entity Inheritance
  • Next by Date: Re: Entity Inheritance
  • Previous by thread: Re: Entity Inheritance
  • Next by thread: Re: Entity Inheritance
  • Index(es):
    • Date
    • Thread