db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tak Fujimoto <t-fujim...@beingcorp.co.jp>
Subject Re: problem with Postgresql and sequences for autoincrement
Date Fri, 18 Apr 2003 02:35:15 GMT
Now, project-schema.xml looks like this.
I removed autoincrement attribute and id-method-parameter tag.
I still can't make it work.

  <table name="TELSUPPORT" idMethod="native">
    <column name="TELSUPPORT_ID"      type="INTEGER"  required="true" primaryKey="true"
/>
  </table>


[setup]
jakarta-struts-1.1-b3
jakarta-tomcat-4.0.6
torque-3.0
Red Hat Linux release 7.1 (Seawolf)
apache_1.3.26
postgresql-7.2.1
pg73jdbc3.jar
mod_jk-1.3-noeapi.so

> Try this. Note no autoincrement attribute or id-method-parameter tag. I
> also use bigint columns for pk's as I believe that the sequences in pg
> cope with bigints ok. 
> 
>   <table idMethod="native" name="myname">
>    <column name="myid" primaryKey="true" required="true" type="BIGINT"/>
>   </table>



Mime
View raw message