Re: Yet Another Question
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