[Opensource] Unique Fields
Michael Rimov
rimovm at centercomp.com
Mon Aug 5 19:20:01 PDT 2002
At 11:28 AM 8/5/2002 +0200, you wrote:
>Hello,
>
>
> Is there a "best practice" way to implement unique fields in
>DBObjects?
Well, there's a couple of ways. You can set createTableInidices=true in
your database config file and then create a unique index through the
addIndex() method if your setup fields method.
You can also override either checkField() or add() and update() to manually
check for correctness of the entries.
HTH!
-Mike
More information about the Opensource
mailing list