Inheritance and relationships
Inheritance and relationships
- Subject: Inheritance and relationships
- From: Guido Neitzer <email@hidden>
- Date: Thu, 7 Aug 2008 23:05:04 -0600
Hi.
I'm running into a weird issue here and was thinking that this was
supposed to work.
In my model I have a AppUser entity which is a subclass of Person.
Now, if I have a relationship on some other object, lets say
"createdBy", and this points to the Person, it doesn't work when it is
actually an AppUser.
I came to that situation when I refactored a big model into smaller
pieces and have now a base framework with some base entities in there.
The database already exists ...
What I get is:
java.lang.IllegalStateException: The object with globalID
_EOIntegralKeyGlobalID[Person (java.lang.Long)3049] could not be found
in the database. This could be result of a referential integrity
problem with the database. An empty fault could not be created because
the object's class could not be determined (e.g. the GID is temporary
or it is for an abstract entity).
The object is there, but is an AppUser, not a Person.
So, is this not supposed to work?
cug
--
http://www.event-s.net
_______________________________________________
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