db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raynald MESSIE" <r.mes...@ltp.fr>
Subject Object.vm
Date Fri, 29 Aug 2003 08:08:10 GMT
Some corrections:
I use MSSQL and SYBASE, and in some table, I use SmallInt or TinyInt
primary key.
With original Object.vm, I can't obtain class (compile don't work),
example : 
torque om generate :
  CopyObj.setagency_id(0)
But var agency_id is a short, the good syntax is :
  CopyObj.setagency_id((short)0)

There in an other problem, each time Byte type is use in Object.vm,
there is a ")" un-needed.

Last problem is, in Sybase and MsSql, you can have a default value for a
date column named "GetDate()", for initialize the date with value today
and now. I make a condition to set nothing instead of Getdate()


 <<Object.vm>> 


Mime
View raw message