Re: FetchSpecs over derived attributes
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