You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Ee-Ming Toh <to...@msn.com> on 2003/08/31 03:32:44 UTC

Auto_increment field in MySQL not supported?

Hi, I have a database in MySQL which uses Auto_Increment field.

However, when torque generates the om files, all my auto_increment fields 
will be assigned to blanks and the parameters in copyObj.set<field> method 
will be empty as well. This causes compilation errors.

    /** The value for the bettSn field */
    private int bettSn = ;
...
...
    copyObj.setBettSn();

What I did was to assign the auto_increment fields to 0 and the set<field> 
method to 0 as well, which sort of solve my compilation problems for the 
time being. However, I do not know if that will pose any problems later on 
during runtime. Any ideas/comments?

regards
Ee-Ming

_________________________________________________________________
Get 10mb of inbox space with MSN Hotmail Extra Storage 
http://join.msn.com/?pgmarket=en-sg at only S$36 including GST


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org