• 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: Yet Another Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet Another Question


  • Subject: Re: Yet Another Question
  • From: Andrew Lindesay <email@hidden>
  • Date: Fri, 21 Mar 2008 13:02:50 +1300

Hello;

So what you're saying is to move the validation into form action instead of the EO and throw the exception there?
No. Absolutely not! I am suggesting that ensuring this is unique is not trivial.

I would move the validation into the form action and insert the validation info into the component from there rather than try and do it from the EO. Also add a unique index to the column in your database to be safe.


In my own application , I get the database to give me unique numbers from a sequence. I do not let the user choose/generate it.

^^^ I do the same thing in a more database-agnostic fashion. I think this is good advice.


cheers.

___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



_______________________________________________
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


References: 
 >Yet Another Question (From: "Yury Peskin" <email@hidden>)
 >Re: Yet Another Question (From: Chuck Hill <email@hidden>)
 >Re: Yet Another Question (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Better start with Wonder than WO
  • Next by Date: Migration Error
  • Previous by thread: Re: Yet Another Question
  • Next by thread: MySQL JDBC Connect Error
  • Index(es):
    • Date
    • Thread