Hello,
I want to use an autoincrement field which is at the same time a primary key in a table in MySQL database. I think I have two choices for this in OJB. 1) I will either set the related field descriptor in repository with autoincrement true and set the field in the database table as an integer field, 2) or set the field in the database table as an autoincrement integer field and not use the autoincrement attribute in the field descriptor.
Which way is better?
#1, unless you're only going to use one DB ever and never change to another DB. If you plan on making things work with multiple DBs, than you pretty much have to use #1 because you can't guarantee a DB will have an autoincrement value, and you don't know how you can get the value out of autoincrement, since each DB will be different.
R
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
