“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 
<webobjects-dev-bounces+chill=gevityinc....@lists.apple.com> on behalf of Aaron 
Rosenzweig <aa...@chatnbike.com>
Date: Monday, September 17, 2018 at 2:47 PM
To: Markus Ruggiero <mailingli...@kataputt.com>
Cc: "webobjects-dev@lists.apple.com" <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 
<mailingli...@kataputt.com<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

Reply via email to