• 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: Qualifier With Primary Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier With Primary Key


  • Subject: Re: Qualifier With Primary Key
  • From: Jesse Tayler <email@hidden>
  • Date: Fri, 19 Aug 2011 12:14:55 -0400

Hi Travis-

Is it impractical?

I've used a simple date+rand constructor and ran it through an encoding to HEX to get a 'random' object id and had no troubles with that. I suppose it has limits to uniqueness in theory but it was quick to generate.

I was also about to start looking for something more short, like bit.ly urls ? More like a mod-counter with a nice set of case-sensitive characters.

I was just about to ask if someone know's of a good slice of code or method to do just that so I could adopt something more modern?

I figured for certain WO URLs it might be clean and won't expose id ordering in a URL so I'd write an apache rule or two and use an object-id like the die above? Not smart?

On Aug 19, 2011, at 8:15 AM, Travis Britt wrote:

> Unless you're generating a true guid that's impractical to do in a general way at the app level.
>
> tb
>
> On Aug 19, 2011, at 8:03 AM, Kevin Hinkson wrote:
>> This should be a common issue then. So I'm surprised there isn't some kind of slug generator that handles ensuring uniqueness in Wonder. (or is there?)
>
> _______________________________________________
> 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
>

 _______________________________________________
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: Qualifier With Primary Key
      • From: Travis Britt <email@hidden>
References: 
 >Qualifier With Primary Key (From: Kevin Hinkson <email@hidden>)
 >Re: Qualifier With Primary Key (From: Paul Hoadley <email@hidden>)
 >Re: Qualifier With Primary Key (From: Paul Hoadley <email@hidden>)
 >Re: Qualifier With Primary Key (From: Kevin Hinkson <email@hidden>)
 >Re: Qualifier With Primary Key (From: Travis Britt <email@hidden>)

  • Prev by Date: Re: Mark as deleted in a ERD2W app
  • Next by Date: Re: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
  • Previous by thread: Re: Qualifier With Primary Key
  • Next by thread: Re: Qualifier With Primary Key
  • Index(es):
    • Date
    • Thread