Re: horizontal inheritance oddity
Re: horizontal inheritance oddity
- Subject: Re: horizontal inheritance oddity
- From: Jean-François Veillette <email@hidden>
- Date: Wed, 24 May 2006 07:52:34 -0400
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