• 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: Getting an abstract ID key - how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting an abstract ID key - how?


  • Subject: Re: Getting an abstract ID key - how?
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 01 Feb 2003 09:58:37 -0800

Why do you want to use the PK as a ref number?  For what purpose?

If you really are going to use the PK for some use other than as a PK, why
do you object to being honest ;-) about it and stating so in the EOModel?
Yes, you can rape it out, but why?


Chuck


At 05:34 PM 01/02/2003 +0000, Jonathan Fleming wrote:
>I have created a user object in a secure login area and I want to obtain the
>primary key of that object as a ref number, but  the ID in the entity is set
>as abstract  so I can not access it from the EOCustomObject (java file)
>created by the EOModel. How do I get to present the primary key in an iVar
>without turning the diamond on in the EOModel to get the primary key
>displayed in an instance variable?
>
>The table/entity is AdminUser = adminUser
>the ID is adminUserID
>when I enclose the object in a WOString component I can see:
>{values = {accessLevel = "Moderator"; lastName = "Fleming"; clients =
>"<com.webobjects.eocontrol._EOCheapCopyMutableArray 6df389
>(<EOAccessArrayFaultHandler clients _EOIntegralKeyGlobalID[AdminUser
>(java.lang.Integer)3]>)>"; }; this = "<AdminUser 2f72d8
>_EOIntegralKeyGlobalID[AdminUser (java.lang.Integer)3]>"; }
>
>but I don't know how to get the adminUserID (3) or the
>_EOIntegralKeyGlobalID[AdminUser (java.lang.Integer)3] out so I can access
>an use it for reference
>
>Can you help?
>
>Simple enough question, but with WebObjects it an proove very difficult
>especially when you don't know how and I don't know how.
>
>Kind regards
>Jonathan
>
>_________________________________________________________________
>Use MSN Messenger to send music and pics to your friends
>http://messenger.msn.co.uk
>_______________________________________________
>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.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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.

References: 
 >Getting an abstract ID key - how? (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Getting an abstract ID key - how?
  • Next by Date: Re: Getting an abstract ID key - how?
  • Previous by thread: Getting an abstract ID key - how?
  • Next by thread: Re: Getting an abstract ID key - how?
  • Index(es):
    • Date
    • Thread