• 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: Single-table inheritance error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single-table inheritance error


  • Subject: Re: Single-table inheritance error
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 30 Sep 2009 17:53:39 -0400

  public void awakeFromInsertion(EOEditingContext ec) {
      super.awakeFromInsertion(ec);
      setResourceType(ResourceType.Resource2);
  }
ew.
## Specifies that you want restricting qualifiers "applied" to your newly
## inserted objects.  For instance, if you have an entity that is part of
## single table inheritance and your restricting qualifier only uses
## EOAndQualifiers and EOKeyValueQualifiers, ERX can interpret the qualifier
## and make your EO's automatically match the restricting qualifier.  This
## allows you to skip the awakeFromInsertion step where you have to remember
## to make your EO match the restricting qualifier you chose in your model.
# er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true

Also, in case it matters, resourceType is a javaEnum.
no way this works, right? the restricting qualifier as defined in your model is not going to parse as an enum value, so I'm guessing this totally breaks ...

ms
 _______________________________________________
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

References: 
 >Single-table inheritance error (From: Jon Nolan <email@hidden>)
 >Re: Single-table inheritance error (From: Mike Schrag <email@hidden>)
 >Re: Single-table inheritance error (From: Jon Nolan <email@hidden>)

  • Prev by Date: Re: Single-table inheritance error [SOLVED]
  • Next by Date: Re: Single-table inheritance error [SOLVED]
  • Previous by thread: Re: Single-table inheritance error [SOLVED]
  • Next by thread: Re: Single-table inheritance error
  • Index(es):
    • Date
    • Thread