• 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
problem with Entities and inherance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with Entities and inherance


  • Subject: problem with Entities and inherance
  • From: HOUNKPONOU Ronald <email@hidden>
  • Date: Fri, 24 Apr 2015 17:22:48 +0100

Hi,
have a problem with Entities and inherance.
I have 3 Entities AbstractPerson, Person and Account.

AbstractPerson is abstract.

Person inherit from AbstractPerson.
An AbstractPerson can have many Accounts.
I can esaly create a Person.
The problem is that when I try to insert an Account that belongs to a Person, i got this ERROR :

ERROR: an  insert or update instruction on the « Account » violate the foreign key constraint « account_abstractperson_fk »
Details: The key (abstractpersonid)=(1) is not present in the table « abstractperson ».
 _______________________________________________
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: problem with Entities and inherance
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: ERXExistsQualifier
  • Next by Date: Re: problem with Entities and inherance
  • Previous by thread: Abwesenheitsnachricht / out of office notice
  • Next by thread: Re: problem with Entities and inherance
  • Index(es):
    • Date
    • Thread