Re: List of all Properties? Legacy EOModel with exposed keys.....

2018-09-17 Thread Paul Hoadley
Hi Markus,

On 18 Sep 2018, at 06:29, Markus Ruggiero  wrote:

> I thought I have seen a list of the properties that Wonder supports but I 
> cannot find it anymore. I have no idea where I saw this list. Could have been 
> here or somewhere in the docs or the Wonder Source. But it is late and I am 
> tired and I have been searching for it invain. Anyone to help me?

I think you may have imagined this. If there ever was such a list, there's no 
way it would be current and maintained.

> Background:
> I am struggling with a legacy legacy legacy pure old time WebObjects 
> application. No Wonder, no Eclipse, but WindowsXP with ProjectBuilder 
> (sourcode goes back to 1998/1999!!!). And the database has exposed primary 
> and foreign keys

Just to echo Chuck: this is going to be a big problem.

> that are mostly strings and char. The application is a mess and I am trying 
> to bring it into Eclipse and use Wonder. Unfortunately WOToOneRelationship 
> does not connect objects. Manually using addObjectToBoth does not connect 
> objects either (debugger shows that the relationship is set, but it does not 
> populate the foreign key fields). Populating them manually in addition to 
> addObject... fixes things. I have a vague recollection of a property that 
> might help here, and that is why I am looking for that list.

Are you thinking of this?

er.extensions.ERXEnterpriseObject.updateInverseRelationships=true


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: List of all Properties? Legacy EOModel with exposed keys.....

2018-09-17 Thread Chuck Hill
“the database has exposed primary and foreign keys that are mostly strings and 
char. The application is a mess”

You repeat yourself.  :-)

Exposed PK values are generally a bad idea, but EOF is OK with them.  Exposed 
FK values cause serious problems with EOF maintaining graph consistency.  Fix 
that and setting relationships should just work again.

Chuck

From: Webobjects-dev 
 on behalf of Aaron 
Rosenzweig 
Date: Monday, September 17, 2018 at 2:47 PM
To: Markus Ruggiero 
Cc: "webobjects-dev@lists.apple.com" 
Subject: Re: List of all Properties? Legacy EOModel with exposed keys.

Hi Markus,

I don’t know of any property.

Because they are exposed they are treated as attributes.

Because they are relationships they are treated as foreign keys.

So you really have to set both… I don’t see a way around it. If you don’t there 
is a race condition for who wins and you’ll never win.

Would be better to make the attribute non-exposed and then create a cover read 
only (perhaps derived) property on that attribute to “expose” it for the legacy 
app. I mean… for whatever reason they want those integer values exposed so this 
is your best bet.
Aaron Rosenzweig / Chat 'n Bike<http://www.chatnbike.com>
e:  aa...@chatnbike.com<mailto:aa...@chatnbike.com>  t:  (301) 956-2319

[Image removed by sender. Chat 'n Bike]

[Image removed by sender. Chat 'n Bike]



On Sep 17, 2018, at 4:59 PM, Markus Ruggiero 
mailto:mailingli...@kataputt.com>> wrote:

I thought I have seen a list of the properties that Wonder supports but I 
cannot find it anymore. I have no idea where I saw this list. Could have been 
here or somewhere in the docs or the Wonder Source. But it is late and I am 
tired and I have been searching for it invain. Anyone to help me?

Background:
I am struggling with a legacy legacy legacy pure old time WebObjects 
application. No Wonder, no Eclipse, but WindowsXP with ProjectBuilder (sourcode 
goes back to 1998/1999!!!). And the database has exposed primary and foreign 
keys that are mostly strings and char. The application is a mess and I am 
trying to bring it into Eclipse and use Wonder. Unfortunately 
WOToOneRelationship does not connect objects. Manually using 
addObjectToBoth does not connect objects either (debugger shows that the 
relationship is set, but it does not populate the foreign key fields). 
Populating them manually in addition to addObject... fixes things. I have a 
vague recollection of a property that might help here, and that is why I am 
looking for that list.

Any ideas? What am I missing?

Thanks
---markus---
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com

This email sent to aa...@chatnbike.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: List of all Properties? Legacy EOModel with exposed keys.....

2018-09-17 Thread Aaron Rosenzweig
Hi Markus,

I don’t know of any property.

Because they are exposed they are treated as attributes.

Because they are relationships they are treated as foreign keys. 

So you really have to set both… I don’t see a way around it. If you don’t there 
is a race condition for who wins and you’ll never win. 

Would be better to make the attribute non-exposed and then create a cover read 
only (perhaps derived) property on that attribute to “expose” it for the legacy 
app. I mean… for whatever reason they want those integer values exposed so this 
is your best bet. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Sep 17, 2018, at 4:59 PM, Markus Ruggiero  
> wrote:
> 
> I thought I have seen a list of the properties that Wonder supports but I 
> cannot find it anymore. I have no idea where I saw this list. Could have been 
> here or somewhere in the docs or the Wonder Source. But it is late and I am 
> tired and I have been searching for it invain. Anyone to help me?
> 
> Background:
> I am struggling with a legacy legacy legacy pure old time WebObjects 
> application. No Wonder, no Eclipse, but WindowsXP with ProjectBuilder 
> (sourcode goes back to 1998/1999!!!). And the database has exposed primary 
> and foreign keys that are mostly strings and char. The application is a mess 
> and I am trying to bring it into Eclipse and use Wonder. Unfortunately 
> WOToOneRelationship does not connect objects. Manually using 
> addObjectToBoth does not connect objects either (debugger shows that the 
> relationship is set, but it does not populate the foreign key fields). 
> Populating them manually in addition to addObject... fixes things. I have a 
> vague recollection of a property that might help here, and that is why I am 
> looking for that list.
> 
> Any ideas? What am I missing?
> 
> Thanks
> ---markus---
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
> 
> This email sent to aa...@chatnbike.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


List of all Properties? Legacy EOModel with exposed keys.....

2018-09-17 Thread Markus Ruggiero
I thought I have seen a list of the properties that Wonder supports but I 
cannot find it anymore. I have no idea where I saw this list. Could have been 
here or somewhere in the docs or the Wonder Source. But it is late and I am 
tired and I have been searching for it invain. Anyone to help me?

Background:
I am struggling with a legacy legacy legacy pure old time WebObjects 
application. No Wonder, no Eclipse, but WindowsXP with ProjectBuilder (sourcode 
goes back to 1998/1999!!!). And the database has exposed primary and foreign 
keys that are mostly strings and char. The application is a mess and I am 
trying to bring it into Eclipse and use Wonder. Unfortunately 
WOToOneRelationship does not connect objects. Manually using 
addObjectToBoth does not connect objects either (debugger shows that the 
relationship is set, but it does not populate the foreign key fields). 
Populating them manually in addition to addObject... fixes things. I have a 
vague recollection of a property that might help here, and that is why I am 
looking for that list.

Any ideas? What am I missing?

Thanks
---markus---
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com