db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-torque Wiki] Update of "GettingTorqueToWork" by bdc34
Date Tue, 21 Jun 2005 14:19:52 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-torque Wiki" for change notification.

The following page has been changed by bdc34:
http://wiki.apache.org/db-torque/GettingTorqueToWork

------------------------------------------------------------------------------
  
  BrettSutton
  
+ = Errors during compile of Base objects =
+ 
+ If you have database columns with names that are java key words your compile will fail.
 Torque does not check for this in v3.1.1 and it will attempt to make java classes with properties
names like {{{ class abstract public private }}}.  See http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
for a list of keywords.  Those keywords are some rather seductive names for columns.  Your
options are to change your database column names from something like {{{class}}} to {{{someprefix_class}}}
or to use the torque's javaName attribute in your schema.xml
+ {{{<table name="classes">        
+         <column name="class" javaName="vClass" size="120" type="VARCHAR"/>}}}
+ 
  = Using ant to build 3.1.1 =
  
  Here are some hints for UsingAntForV311

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


Mime
View raw message