db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Ostapenko <stas.ostape...@gmail.com>
Subject SQLToAppData help is needed
Date Sat, 24 Sep 2005 23:15:58 GMT
Hi !
I'm playing with this simple code :

import org.apache.torque.engine.database.transform.SQLToAppData;
import org.apache.torque.engine.database.model.Database;
import org.apache.torque.engine.database.model.Table;

  public class test_sql
  {
      public static void main(String args[])
      {
        try
        {
          SQLToAppData sqlToAppData = new SQLToAppData("./domain.sql", "mysql");
          Database db = sqlToAppData.execute();
          Table domain = db.getTable("domain");
          System.out.println(domain.toString());
        }
        catch(Exception e)
        {
                e.printStackTrace();
        }
      }
  }

domain.sql :

create table domain (
    id                                  int auto_increment primary key,
    status                              tinyint default 1,
    domain                              varchar( 64 ) not null unique,
    comment                             varchar( 128 ) default ''
);

I get the following output:

[WARN] Column - SchemaType INT does not exist
[WARN] Column - could not load platform implementation
[WARN] Column - could not load platform implementation
[WARN] Column - could not load platform implementation
[WARN] Column - could not load platform implementation
<table name="domain" javaName="Domain" idMethod="idbroker">
    <column name="id" javaName="Id" primaryKey="true" required="false"
type="INTEGER" />
    <column name="status" javaName="Status" required="false"
type="INTEGER" default="1" />
    <column name="domain" javaName="Domain" required="true"
type="VARCHAR" size="64" />
    <column name="comment" javaName="Comment" required="false"
type="VARCHAR" size="128" default="'" />
</table>

My question is why there are warnings ? It seems that default platform
implementation is used.  But why ?

Plese help.

Regards, Stas

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


Mime
View raw message