db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <tfisc...@apache.org>
Subject Re: Custom option in column or table definition
Date Wed, 03 Aug 2005 04:43:28 GMT

to do this, you need to change the generator templates. In your case, this 
will be sql/base/mysql/table.vm

Make sure you are changing the template you are actually adrressing, i.e 
check the torque.useClasspath variable in your generator settings to see 
whether Torque uses the classpath or the file system. In case you use the 
classpath, it would be best to change that, extract the templates to the 
file system and do your changes there.


On Tue, 2 Aug 2005, [ISO-8859-1] André Moreira wrote:

> Does anyone know if it is possible to add custom options in the xml
> scheme for table or column?
> For instance, I would link to add in the table the collation
> assignment (Mysql), something that will generated like:
> create table (.... ) collate latin1_general_cs;
> But I don't know how to tell torque-gen to generate it automatically.
> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org

View raw message