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

Re: Inheritance and relationships


  • Subject: Re: Inheritance and relationships
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 8 Aug 2008 16:38:16 +1000

On 08/08/2008, at 3:05 PM, Guido Neitzer wrote:

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.

What type of inheritance? ST, H, VI.
For the the relationship from 'some other object' to Person - is the source object also an inherited object?


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.

Do you have a restricting qualifier?

So, is this not supposed to work?

I've seen problems going from an inherited record to another inherited record (where they both have the same super).


Have you turned on adaptor logging and checked the sql?

with regards,
--

Lachlan Deck
_______________________________________________
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: Guido Neitzer <email@hidden>
    • Re: Inheritance and relationships
      • From: Guido Neitzer <email@hidden>
References: 
 >Inheritance and relationships (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Entity Modeler: Reverse engineering of a FrontBase db?
  • Next by Date: Re: Can I use WOMultipartIterator API in WOComponent action methods?
  • Previous by thread: Inheritance and relationships
  • Next by thread: Re: Inheritance and relationships
  • Index(es):
    • Date
    • Thread