Re: Polymorphic Relationship

2017-11-29 Thread remy
that takes the string >>> and returns an instance of a sub-class of EntityAbstract. All of the >>> information needed to do this is in the model and can be referenced at >>> runtime. It is quite simple. The way you are doing it below is just wrong. >>>

Re: Polymorphic Relationship

2017-11-28 Thread Chuck Hill
That is not a solution. That is a terrible thing to do. I don’t want to spread bad ideas. From: Webobjects-dev on behalf of remy Date: Tuesday, November 28, 2017 at 1:47 AM To: "webobjects-dev@lists.apple.com" Subject: Re: Polymorphic Relationship Hi Chuck, How do I thi

Re: Polymorphic Relationship

2017-11-28 Thread remy
ate: Friday, November 24, 2017 at 2:30 AM > To: "webobjects-dev@lists.apple.com" > Subject: Polymorphic Relationship > > Hi, > > I want make an polymorphic entity. > > I have an Entity Abstract named "EntityAbstract" and a subclass Entity named > &

Re: Polymorphic Relationship

2017-11-24 Thread Jean-François Veillette
Hi Remy, I used polymorphic relationship, in my case I used ERXLongPrimaryKeyFactory (splitting Long primary key numbers into 2 parts, 1 sequence and 1 entity index), to help EOF a bit. In the model you describe, I really think you should change it a bit. - an object should not change class ‘on

Re: Polymorphic Relationship

2017-11-24 Thread Ken Anderson
ime. It is quite simple. The way you are doing it below is just wrong. > > Chuck > > From: Webobjects-dev > on behalf of > remy > Date: Friday, November 24, 2017 at 2:30 AM > To: "webobjects-dev@lists.apple.com" > Subject: Polymorphic Relationship &

Re: Polymorphic Relationship

2017-11-24 Thread Chuck Hill
be referenced at runtime. It is quite simple. The way you are doing it below is just wrong. Chuck From: Webobjects-dev on behalf of remy Date: Friday, November 24, 2017 at 2:30 AM To: "webobjects-dev@lists.apple.com" Subject: Polymorphic Relationship Hi, I want make an polymorp

Re: Polymorphic Relationship

2017-11-24 Thread René Bock
aveChanges(); If you really want to model a polymorphic relationship, the destination of the relationship "refEntity" should be EntityAbstract. Am 24.11.2017 um 11:30 schrieb remy mailto:r...@algodata.fr>>: Hi, I want make an polymorphic entity. I have an Entity Abstract na

Polymorphic Relationship

2017-11-24 Thread remy
Hi, I want make an polymorphic entity. I have an Entity Abstract named "EntityAbstract" and a subclass Entity named "EntitySub" where the qualifier is (refEntityName=‘EntitySub'). I have third Entity named "Relation" that has an relationship with "EntitySub". I have a problem when : EOEditingC