Re: Display PrimaryKey
Johann Werner <[email protected]> Wed, 13 Jul 2011 15:17:53 +0200
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
have a look at ERXEnterpriseObject.primaryKey() (will return null for unsaved objects = as the pk does not yet exist) ERXEnterpriseObject.primaryKeyInTransaction() (will get a pk from = database if it does not yet have one) jw Am 13.07.2011 um 12:37 schrieb Paul D Yu: > Peter >=20 > If you are using wonder, you should be able to just call = person().primaryKey(). >=20 > Paul >=20 > Sent from my iPad >=20 > On Jul 13, 2011, at 6:01 AM, "Peter M=FCller" = <[email protected]> wrote: >=20 >> Hello together, >>=20 >> i've a question about primary keys in WebObjects: I have a model like = this: >> id (Integer), no accessor, primary key >> lastname (String), accessor >> firstname (String), accessor >> ... >>=20 >> The id's will be needed in an PDF-Download (the people working with = them need the ID, I don't know why, but they need this ID). >>=20 >> Because there is no accessor to this id, i can't display it. Is there = a way, to display the ID (i don't want to modify, just display)? >>=20 >> Thank you a lot, >> Peter M. >> --=20 >> NEU: FreePhone - kostenlos mobil telefonieren! =20 >> Jetzt informieren: http://www.gmx.net/de/go/freephone >=20