Check cross database issues and also name sure the types on your pk
and fk match ... I notice that says your fk is a long, make sure that
matches the pk of the destination entity.
Sent from my iPhone
On Dec 28, 2009, at 7:33 PM, "Tim Worman"<[email protected]> wrote:
...or wondering if I've modeled something incorrectly.
I've got a model with these Entities:
Timesheet (abstract parent) >----------------- TimeEntry (just a
time entry on a timesheet)
TimesheetExempt (child)
TimesheetNonExempt(child)
Everything works fine until a given TimeEntry tries to refer back to
its timesheet by calling timesheet(). At that point I get this error:
Error: java.lang.IllegalStateException: The object with globalID
_EOIntegralKeyGlobalID[Timesheet (java.lang.Long)10253] 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)
It is true that the GID would be for an abstract entity - Timesheet.
But I assumed that a TimeEntry would not need to know specifically
what variety of Timesheet it is dealing with. I guess the question I
have is, what is the better way to model this? Will it be necessary
for me to model TimeEntryExempt and TimeEntryNonExempt just so the
time entries know which type of timesheet they belong to and don't
call the abstract parent?
Tim
UCLA GSE&IS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]