Re: FetchSpecs over derived attributes
Re: FetchSpecs over derived attributes
- Subject: Re: FetchSpecs over derived attributes
- From: "John Huss" <email@hidden>
- Date: Mon, 16 Apr 2007 13:08:30 -0500
I know you can use derived attributes in Raw Row fetches (I do this
all the time). I don't see why they wouldn't work in regular fetches
too.
John
On 4/16/07, Ken Anderson <email@hidden> wrote:
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
_______________________________________________
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