Re: set a PK to a virtual Entity
Re: set a PK to a virtual Entity
- Subject: Re: set a PK to a virtual Entity
- From: Raymond NANEON <email@hidden>
- Date: Tue, 09 Apr 2013 23:00:48 +0200
Thanks Chuck. I go for 1st option stored procedure.
Envoyé de mon iPad
Le 9 avr. 2013 à 22:51, Chuck Hill <email@hidden> a écrit :
> The PK should NEVER change after the EO is first created. NEVER.
>
> Chuck
>
>
> On 2013-04-09, at 1:49 PM, Raymond NANEON wrote:
>
>> Ok Chuck, I go to choose stored procedure to save in database and not ec.savChange for my VEntity.
>> So I have another question, There is no way to set pk to an Entity whitout saving it in database?
>>
>> Ray
>>
>> Envoyé de mon iPad
>>
>> Le 9 avr. 2013 à 20:35, Chuck Hill <email@hidden> a écrit :
>>
>>> I don't think that EOF will allow you to do that.
>>>
>>>
>>> Chuck
>>>
>>>
>>> On 2013-04-09, at 10:22 AM, Raymond NANEON wrote:
>>>
>>>> Hi Chuck,
>>>>
>>>> I want to create an Interface(virtual) Entity which can be any Entity when I set it to the virtual Entity.
>>>> i.e :
>>>> VEntity virtualEnt = VEntity.createInstance(ec);
>>>> virtualEnt = EOperson;
>>>> virtualEnt takes all description classe and pk of EOperson.
>>>> If virtualEnt = EOCompany an take all attribute of EOCompany.
>>>>
>>>> Here is what I want to do.
>>>>
>>>> Envoyé de mon iPad
>>>>
>>>> Le 9 avr. 2013 à 18:09, Chuck Hill <email@hidden> a écrit :
>>>>
>>>>> Hi Raymond,
>>>>>
>>>>> I think that we need a more detailed description of what you are trying to do. It sounds either like you are setting a to-one relationship, or what you want to do is not possible. Have you looked at the Role Pattern? That may be a better solution for your problem.
>>>>>
>>>>> http://hillside.net/plop/plop97/Proceedings/riehle.pdf
>>>>>
>>>>> Chuck
>>>>>
>>>>>
>>>>>
>>>>> On 2013-04-09, at 8:04 AM, Raymond NANEON wrote:
>>>>>
>>>>>> Hi List,
>>>>>>
>>>>>> I have an entity in my virtual model that can take the indentity (person, company etc...) of any other entity.
>>>>>> So I wonder how set primary key of the entity it represents at moment T?
>>>>>>
>>>>>> I Have all time for the virtual entity pk is null.
>>>>>>
>>>>>> Thanks for your help
>>>>>> Envoyé depuis iCloud
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>> --
>>>>> Chuck Hill
>>>>> Executive Managing Partner, VP Development and Technical Services
>>>>>
>>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>>> http://www.global-village.net/gvc/practical_webobjects
>>>>>
>>>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>>>>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>
>>> --
>>> Chuck Hill
>>> Executive Managing Partner, VP Development and Technical Services
>>>
>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/gvc/practical_webobjects
>>>
>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
> --
> Chuck Hill
> Executive Managing Partner, VP Development and Technical Services
>
> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
>
>
>
>
>
>
>
>
>
>
_______________________________________________
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