• 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: FetchSpecs over derived attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FetchSpecs over derived attributes


  • Subject: Re: FetchSpecs over derived attributes
  • From: Ken Anderson <email@hidden>
  • Date: Mon, 16 Apr 2007 10:53:23 -0400

No. Fetch specs work directly against the database, so if the column doesn't exist (as with derived attributes), it can't work. You would have to do a fetch on a superset, then use an in-memory qualifier to include your derived attribute.

Ken

On Apr 16, 2007, at 10:45 AM, Catarina Vieira Simoes wrote:

Hi!

Is it possible to do a FetchSpecification over derived attributes?
I tried and I got the error:

java.lang.IllegalStateException: sqlStringForAttribute: attempt to generate SQL for attribute 'attributeName' on entity 'EntityName' with undefined column name. You must define a column name for this attribute before attempting a database operation.

Since the derived attribute doesn't have a real column it should work, no? :)
Thank you in advance.
Sincerely,


Catarina

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


This email sent to email@hidden

_______________________________________________ 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: FetchSpecs over derived attributes
      • From: "John Huss" <email@hidden>
References: 
 >FetchSpecs over derived attributes (From: "Catarina Vieira Simoes" <email@hidden>)

  • Prev by Date: FetchSpecs over derived attributes
  • Next by Date: Re: overriding certain NSKeyValueCoding methods in EOs
  • Previous by thread: FetchSpecs over derived attributes
  • Next by thread: Re: FetchSpecs over derived attributes
  • Index(es):
    • Date
    • Thread