db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: jdbc -> xml problem (MySQL)
Date Thu, 13 Apr 2006 09:46:11 GMT

This looks like a bug in the jdbc2xml task. Can you create an issue in the
issue tracker please ?

Java 1.5 support is already in SVN. You may want to build from SVN.
It also supports comment on column/table for some databases, but I cannot
remember whether in 3.2 or in SVN only.
Cascading is something I have to look into; there are no current plans I am
aware of. It is not supported natively by all databases, so we might have
to do it manually for databases which do not support it, and this might be


Tomáš Procházka <t.prochazka@centrum.cz> schrieb am 12.04.2006 23:52:12:

> Hi.
> I'm use Torque only one day and it's perfect project. I looking for
> it for long time.
> But I found one problem in Generator. I use MySQL 5 database. I
> created table with this SQL:
> DROP TABLE IF EXISTS `car_type`;
>   `id` mediumint(9) NOT NULL,
>   `value` varchar(20) collate utf8_czech_ci default NULL,
>   PRIMARY KEY  (`id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
> and Generator create this:
>  <table name="car_type">
>      <column default="" name="id" primaryKey="true" required="true"
> type="INTEGER"/>
>      <column name="value" size="20" type="VARCHAR"/>
>  </table>
> Problem is in default="". INTEGER type can not have empty string
> default value "".  This cause problem while generating java code.
> Is this bug in Torgue or MySQL or JDBC driver?
> Also it's pity that it doesn't support comment of column or table,
> references integrity attributes (ON DELETE CASCADE or ON UPDATE
> CASCADE), support for Java 1.5. It's something from them in plan for
> future version?
> --
> Tomas Prochazka
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
View raw message