Re: Problems using primary key as attribute (solved, kind of)
Re: Problems using primary key as attribute (solved, kind of)
- Subject: Re: Problems using primary key as attribute (solved, kind of)
- From: Ray Ackland <email@hidden>
- Date: Sun, 17 Aug 2003 12:44:43 +1200
I reread your message. Instead of doing it as a derived attribute I
just had the separate attribute on the same database column. Would
still like to know why derived method didn't work for me though.
Thanks.
r.
This is what I was hoping for, a simple solution. I had been
concentrating on doing it in code, rather than in EOModeler.
Only problem at this stage is I can't get it to work. As soon as I put
a derived attribute in EOModeler, the app goes funny not retrieving
the records (no SQL even generated).
I have tried it with a fresh project and EOModel, and trivial formula
(eg setting attribute to a fixed int) without success. I am using JVM
1.4.1, but using the settings to work around that. Will try it on
another machine tomorrow at work, which didn't have the 1.4.1 update
installed.
Ray.
On Sunday, Aug 17, 2003, at 06:37 Pacific/Auckland,
email@hidden wrote:
Never tried but it should work. Use the client # as your primary key
but don't mark it as a class property and create a new read-only
attribute that maps to the primary key column.
HTH
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.