• 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
Inheritance and relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Inheritance and relationships
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: Exception only when framework is embedded
  • Next by Date: Openbase caching/time to live
  • Previous by thread: Re: Exception only when framework is embedded
  • Next by thread: Re: Inheritance and relationships
  • Index(es):
    • Date
    • Thread