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 Ivano Luberti <lu...@archicoop.it> on 2009/02/11 19:12:11 UTC
Re: newbie question about postgres: nextval
Another little question about one of your suggestion.
Remeber I use jdbc task to generate chema.xml file from the db.
Greg Monroe ha scritto:
> In general, for autoincrement id fields coming out of the JDBC task,
> you will need to decide which method to use with automatic id fields.
> This is done via the defaultIdMethod attribute on the database tag or
> the idMethod attribute on the specific table tag. The choices are
> idbroker (Torque's works everywhere method), native (the DB server's
> native method) or none. In your case, you want native.
> Next you will need to identify the autoincrement fields and modify
> them to include the autoincrement="true" attribute and drop any
> default values.
>
>
Ok, but what is the default value for defaultIdMethod and for idMethod ?
Moreover is there a way to tell JDBCTransformTask to put the right value
in the schema file ?
In other words: can jdbc task be configured to follow this behaviour ?
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org