db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Belisle <torque_maill...@yahoo.ca>
Subject JDBC Conversion Problem
Date Wed, 25 Jun 2003 13:55:22 GMT
Hi, please look at :
 
package org.apache.torque.task;
class TorqueJDBCTransformTask
 
330                 if (defValue != null)
 
I would suggest the following to correct the last issue : 
 
330                 if (defValue != null && !defValue.equals(""))
 
Nicolas Belisle


Rafi Mohamed <Rafimf@yahoo.com.au> wrote:

I have the same problem with SMALLINT (not null and no default value
defined) and a similar one with URL generating a new byte[]().
I modify the generated schema and make the code work, but I would prefer a
better solution.

- Rafi.

----- Original Message -----
From: "Nicolas Belisle" 
To: "Turbine Torque Users List" 
Sent: Tuesday, June 24, 2003 6:43 AM
Subject: JDBC Conversion Problem (MySQL)


> Hi there,
>
> (I'm using Mysql 4.1.0 alpha)
>
> MySQL uses TINYINT (1) to represents the BIT type. So when I use the jdbc
function of the generator to convert the database to XML schema I get an
annoying :
>
> 
>
> which generates a more annoying :
>
> /**
> * The value for the checked field
> */
> private byte checked = ;
>
> I would be nice if the generator could convert it to boolean and give a
valid default value.
>
> Nicolas
>
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
>


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




---------------------------------
Post your free ad now! Yahoo! Canada Personals

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message