• 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: horizontal inheritance oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: horizontal inheritance oddity


  • Subject: Re: horizontal inheritance oddity
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 24 May 2006 08:28:42 -0400

Handy workaround ... I'm still curious why it's happening in the first place, though.

On May 24, 2006, at 7:52 AM, Jean-François Veillette wrote:

You can add an entry in the userInfo dictionary of your entity, defining the super class.
Then in the eogenerator template, you will be able to set the superclass based on that key-value.
That way, you may not tell EOModeler the exact details of java implementation (which can be all fine in some situation).
Sometimes we try to force into eoentity what should really be interface (or simply a common superclass). Leave the model know about the data model. And use userInfo/eogenerator to enhance and complement details of the concrete class.


- jfv

Le 06-05-23, à 22:45, Mike Schrag a écrit :

I have a model in a framework that defines Entity A and a model in my project that depends on that framework that defines Entity B as subclass of Entity A via Horizontal Inheritance. Entity A is abstract (though the same problem occurs either way). When I run my app, and create new Entity B's, the insert statements don't include the primary key (resulting in an integrity constraint violation). If i edit the model and simply remove the parent entity reference from Entity B, and restart, everything works perfectly. That fix is ACTUALLY is not that big of a deal from a runtime perspective, except that I need the parent reference for EOGenerator to work properly (basically I care more about the inherited methods than I particularly care about it actually having a relationship in the model). Anyone seen this one before? It's been driving me crazy today -- I have to believe I'm just overlooking something silly.

ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


http://www.freeiPods.com/?r=21419063


_______________________________________________ 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: 
 >horizontal inheritance oddity (From: Mike Schrag <email@hidden>)
 >Re: horizontal inheritance oddity (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: Newbie: File upload w/Direct Actions and added parameters
  • Next by Date: Deserializers for NSArray, NSDictionary
  • Previous by thread: Re: horizontal inheritance oddity
  • Next by thread: Re: horizontal inheritance oddity
  • Index(es):
    • Date
    • Thread