• 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 (solved, kind of)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Problems using primary key as attribute
  • Next by Date: Problem following example in Java Client Desktop Apps
  • Previous by thread: Re: JDBCAdaptor LIKE clause problem
  • Next by thread: Problem following example in Java Client Desktop Apps
  • Index(es):
    • Date
    • Thread