Short answer: it's all in documentation. Look there.

Long answer:
As far you have not give more details, just set it as primary key. This guarantee no 
duplicates, and no nulls. Don't forget to set this in database too (all good databases 
around the world support primary keys).

Other way: in OJB uses it as normal field, and in database create a UNIQUE index. 
Almost all databases knows the UNIQUE concept.

If it need be auto-generated, look docs about auto-increment. If it isn't numeric, and 
need be unique, you can create your own Sequence Manager. Check docs.

Best regards,

Edson Richter

  ----- Original Message ----- 
  From: Muhammad Aamir 
  To: OJB Users List 
  Sent: Friday, February 13, 2004 9:25 AM
  Subject: RE: Unique column



  Re-post
  -----Original Message-----
  From: Muhammad Aamir 
  Sent: Wednesday, February 11, 2004 9:51 AM
  To: [EMAIL PROTECTED]
  Subject: Unique column

  There is a column that I want it to be unique in the table. How can I
  implement this business rule ??
   
  Thanks
  Aamir

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.587 / Virus Database: 371 - Release Date: 12/2/2004

Reply via email to