Jason Harrelson wrote:

I am new to Torque.  I have been successful at creating my DB and classes.
Everything works correctly, excluding the primary key incrementing, or
populating at all.  When I add a record to my account table, I get a 0 in
the primary key column.  A second record added also yields a 0, thus it
fails.

Here is an excerpt from my schema file for the account table:

<database

name="recipe"

defaultIdMethod="idBroker">

<table name="account" description="">

<column

name="account_id"

required="true"

primaryKey="true"

type="INTEGER"

description="Key of the account record"/>
<snip>


I am not sure what else to post to help with the putting anyone on the
correct trail.  Everything else seems to be working correctly.  I have
combed the archives and found nothing similar to this problem.  If you need
any other info, please let me know and I will provide it.

Thank you in advance for you help.


I'm not very sure, but I think you should add autoIncrement="true" in column account_id.

Good luck,
Antonis


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

  • ... Dressler,Erik(externe MA)
    • ... Jason Harrelson
    • ... Jason Harrelson
      • ... Αντώνης Λεμπέσης
    • ... Dressler,Erik(externe MA)
      • ... C. Jason Harrelson
        • ... Thomas Fischer
    • ... jason . harrelson
    • ... Dressler,Erik(externe MA)

Reply via email to