Re: Virtual Column equivalent in EOModel ?
Re: Virtual Column equivalent in EOModel ?
- Subject: Re: Virtual Column equivalent in EOModel ?
- From: Hugi Thordarson <email@hidden>
- Date: Tue, 09 Jun 2015 11:04:05 +0000
Hi Thomas.
If you don’t use the attribute for locking, EOF won't use it when locating the row for an update/delete. To disable locking on the attribute click the button with the little lock on it in the attribute’s settings.
- hugi
> On 9. jún. 2015, at 10:57, Thomas LATTER <email@hidden> wrote:
>
>
> Hi,
>
> In one of my Oracle tables I've got a virtual column. In my EOModel I had to set this field as Read-Only in order to do an Insert in this table. Otherwise the generated SQL included this field and an Oracle error occured.
>
> My problem now is to edit/update a row in this table because even with this field as Read-Only in the EOModel the generated SQl includes this field in the 'Where' clause of it's 'UPDATE' query.
>
> Is there a certain way to set this field in the EOModel for it not to be included in the sql for an edit/update? Or should I just use rawrows?
>
> Thanks in advance,
>
> _______________________________________________
> 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