• 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
PK uniqueness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PK uniqueness


  • Subject: PK uniqueness
  • From: OCsite via Webobjects-dev <email@hidden>
  • Date: Mon, 15 Sep 2025 17:09:34 +0200

Hi there,

presumed I use integer PKs and don't ever assign them myself, leaving it on
EOF, can I rely on that never a newly created EO would get same PK as used to
have one deleted previously? Or is there some rare scenario when this may
happen?

I need to store some information for EOs (which would be very rarely deleted,
but occasionally it might happen) in a map whose keys would be the PKs (the map
itself persists archived in a BLOB of another EO). I wonder whether I have to
observe deletions and update these maps accordingly, or whether I can afford to
simply keep PKs and information for deleted EOs in there without any real harm.

Thanks!
OC
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: PK uniqueness
      • From: mailinglists via Webobjects-dev <email@hidden>
    • Re: PK uniqueness
      • From: Jesse Tayler via Webobjects-dev <email@hidden>
  • Prev by Date: Re: OGNL Library vulnerability- CVE-2025-53192
  • Next by Date: Re: PK uniqueness
  • Previous by thread: Re: OGNL Library vulnerability- CVE-2025-53192
  • Next by thread: Re: PK uniqueness
  • Index(es):
    • Date
    • Thread