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 protected]> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to [email protected]
> 
> -- 
> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to