Re: horizontal inheritance oddity
Re: horizontal inheritance oddity
- Subject: Re: horizontal inheritance oddity
- From: Chuck Hill <email@hidden>
- Date: Wed, 24 May 2006 15:37:14 -0700
On May 23, 2006, at 7:45 PM, Mike Schrag wrote:
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.
Are there any entities with a relationship to the parent that have
the relationship marked as Propogate Primary Key? If have seen this
cause the primary key to not get generated even the objects in
question were created but not related. I have been bitten by that
recently, and it was very hard to track down.
Another possibility is that something in the parent entitie's PK
definition is different and causing EOF to think that it can't /
shouldn't generate the PK.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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