• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems using primary key as attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems using primary key as attribute


  • Subject: Re: Problems using primary key as attribute
  • From: Ray Ackland <email@hidden>
  • Date: Sun, 17 Aug 2003 12:26:26 +1200

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.

  • Follow-Ups:
    • Re: Problems using primary key as attribute
      • From: Ricardo Strausz <email@hidden>
  • Prev by Date: Re: Problems using primary key as attribute
  • Next by Date: Re: Problems using primary key as attribute (solved, kind of)
  • Previous by thread: Re: Problems using primary key as attribute
  • Next by thread: Re: Problems using primary key as attribute
  • Index(es):
    • Date
    • Thread