db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafi Mohamed" <Raf...@yahoo.com.au>
Subject Re: Error in Torque Generated Java Code
Date Tue, 13 May 2003 04:03:13 GMT
Hi All,
The attachment did not work, I have provided the errors inline. Please
scroll down.
One error is that generated java code does not initialise 'short' fields to
'0'. I used the jars from torque-gen-3.1-alpha1.zip download .
Last week, I had the same error with 'torque-3.0.zip'
I am also listing the schema used for generating the java code

√Črror List is given below :
  [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCities.java:
58: illegal start of expression
    [javac]         private short id = ;
    [javac]                            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseDescription.
java:43: illegal start of expression
    [javac]         private short id = ;
    [javac]                            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseDescription.
java:53: illegal start of expression
    [javac]         private short link = ;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseLocationname
.java:43: illegal start of expression
    [javac]         private short id = ;
    [javac]                            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseLocationname
.java:63: illegal start of expression
    [javac]         private short description = ;
    [javac]                                     ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseMailinglist.
java:43: illegal start of expression
    [javac]         private short id = ;
    [javac]                            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseMailinglist.
java:88: '{' expected
    [javac]         private byte[] url = new byte[]();
    [javac]                                        ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseMailinglist.
java:98: illegal start of expression
    [javac]         private short description = ;
    [javac]                                     ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseUsers.java:7
3: illegal start of expression
    [javac]         private short description = ;
    [javac]                                     ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseUpdatelog.ja
va:63: illegal start of expression
    [javac]         private short id = ;
    [javac]                            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.CitiesMapBuilder
    [javac] public class CitiesMapBuilder implements MapBuilder
    [javac]                                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.CitiesMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.CitiesMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/CitiesMapBui
lder.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.CitiesMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.DescriptionMapBuilder
    [javac] public class DescriptionMapBuilder implements MapBuilder
    [javac]                                               ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.DescriptionMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.DescriptionMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/DescriptionM
apBuilder.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.DescriptionMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.LocationnameMapBuilder
    [javac] public class LocationnameMapBuilder implements MapBuilder
    [javac]                                                ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.LocationnameMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.LocationnameMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/Locationname
MapBuilder.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.LocationnameMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.MailinglistMapBuilder
    [javac] public class MailinglistMapBuilder implements MapBuilder
    [javac]                                               ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.MailinglistMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.MailinglistMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/MailinglistM
apBuilder.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.MailinglistMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.UsersMapBuilder
    [javac] public class UsersMapBuilder implements MapBuilder
    [javac]                                         ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.UsersMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.UsersMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UsersMapBuil
der.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.UsersMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.UpdatelogMapBuilder
    [javac] public class UpdatelogMapBuilder implements MapBuilder
    [javac]                                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.UpdatelogMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.UpdatelogMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/UpdatelogMap
Builder.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.UpdatelogMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:6: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:7: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:8: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:9: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.DatabaseMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:10: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:18: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.map.XrefMapBuilder
    [javac] public class XrefMapBuilder implements MapBuilder
    [javac]                                        ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:30: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.XrefMapBuilder
    [javac]     private DatabaseMap dbMap = null;
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:48: cannot resolve symbol
    [javac] symbol  : class DatabaseMap
    [javac] location: class com.test.com.map.XrefMapBuilder
    [javac]     public DatabaseMap getDatabaseMap()
    [javac]            ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/map/XrefMapBuild
er.java:58: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.map.XrefMapBuilder
    [javac]     public void doBuild() throws TorqueException
    [javac]                                  ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:12: package org.apache.torque does not exist
    [javac] import org.apache.torque.NoRowsException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:13: package org.apache.torque does not exist
    [javac] import org.apache.torque.TooManyRowsException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:14: package org.apache.torque does not exist
    [javac] import org.apache.torque.Torque;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:15: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:16: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.MapBuilder;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:17: package org.apache.torque.map does not exist
    [javac] import org.apache.torque.map.TableMap;
    [javac]                              ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:18: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.DateKey;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:19: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.NumberKey;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:20: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.StringKey;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:21: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.ObjectKey;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:22: package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.SimpleKey;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:23: package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.BasePeer;
    [javac]                               ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:24: package org.apache.torque.util does not exist
    [javac] import org.apache.torque.util.Criteria;
    [javac]                               ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:41: cannot resolve symbol
    [javac] symbol  : class BasePeer
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     extends BasePeer
    [javac]             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:55: cannot resolve symbol
    [javac] symbol  : class MapBuilder
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static MapBuilder getMapBuilder()
    [javac]                   ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:56: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:150: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]             throws TorqueException
    [javac]                    ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:190: cannot resolve symbol
    [javac] symbol  : class Criteria
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria)
    [javac]                                      ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:190: cannot resolve symbol
    [javac] symbol  : class ObjectKey
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria)
    [javac]                   ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:191: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:207: cannot resolve symbol
    [javac] symbol  : class Criteria
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria,
Connection con)
    [javac]                                      ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:207: cannot resolve symbol
    [javac] symbol  : class ObjectKey
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static ObjectKey doInsert(Criteria criteria,
Connection con)
    [javac]                   ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:208: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]         throws TorqueException
    [javac]                ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:235: cannot resolve symbol
    [javac] symbol  : class Criteria
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]     public static void addSelectColumns(Criteria criteria)
    [javac]                                         ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCitiesPeer.j
ava:236: cannot resolve symbol
    [javac] symbol  : class TorqueException
    [javac] location: class com.test.com.BaseCitiesPeer
    [javac]             throws TorqueException
    [javac]                    ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/Cities.java:5:
package org.apache.torque.om does not exist
    [javac] import org.apache.torque.om.Persistent;
    [javac]                             ^
    [javac]
/usr/local/sbin/torque-gen-3.1-alpha1/src/java/com/test/com/BaseCities.java:
12: package org.apache.torque does not exist
    [javac] import org.apache.torque.TorqueException;
    [javac]                          ^
    [javac] 100 errors

BUILD FAILED
file:/usr/local/sbin/torque-gen-3.1-alpha1/build.xml:663: Compile failed;
see the compiler error output for details.

Total time: 14 seconds


Schema Used :
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM
"http://jakarta.apache.org/turbine/dtd/database.dtd">
<!-- Autogenerated by JDBCToXMLSchema! -->
<database>
    <table name="Cities">
        <column default="0" name="CountryID" required="true"
type="SMALLINT"/>
        <column default="0" name="StateID" required="true" type="SMALLINT"/>
        <column default="0" name="CityID" required="true" type="SMALLINT"/>
        <column default="" name="ID" primaryKey="true" required="true"
type="SMALLINT"/>
        <column default="" name="UserID" required="true" size="8"
type="VARCHAR"/>
    </table>
    <table name="Description">
        <column default="" name="ID" primaryKey="true" required="true"
type="SMALLINT"/>
        <column default="" name="Notes" size="255" type="VARCHAR"/>
        <column default="" name="Link" type="SMALLINT"/>
    </table>
    <table name="LocationName">
        <column default="" name="ID" primaryKey="true" required="true"
type="SMALLINT"/>
        <column default="" name="Name" required="true" size="50"
type="VARCHAR"/>
        <column default="" name="Type" size="9" type="CHAR"/>
        <column default="" name="CUserID" required="true" size="8"
type="VARCHAR"/>
        <column default="" name="Description" type="SMALLINT"/>
        <column default="" name="More" size="4" type="CHAR"/>
    </table>
    <table name="MailingList">
        <column default="" name="ID" primaryKey="true" required="true"
type="SMALLINT"/>
        <column default="" name="OrganizationName" required="true"
            size="50" type="VARCHAR"/>
        <column default="" name="Address" required="true" size="99"
type="VARCHAR"/>
        <column default="" name="PostalCode" size="9" type="VARCHAR"/>
        <column default="" name="PrimaryPhone" size="15" type="VARCHAR"/>
        <column default="" name="FaxNumber" size="15" type="VARCHAR"/>
        <column default="" name="Status" size="9" type="CHAR"/>
        <column default="" name="AlternativePhone" size="15"
type="VARCHAR"/>
        <column default="" name="EmailAddress" size="50" type="VARCHAR"/>
        <column default="" name="URL" type="LONGVARBINARY"/>
        <column default="" name="CUserID" required="true" size="8"
type="VARCHAR"/>
        <column default="" name="Description" type="SMALLINT"/>
        <column default="RETAIL" name="Type" size="13" type="CHAR"/>
    </table>
    <table name="Users">
        <column default="" name="ID" primaryKey="true" required="true"
            size="8" type="VARCHAR"/>
        <column default="" name="FirstName" required="true" size="30"
type="VARCHAR"/>
        <column default="" name="MiddleName" size="3" type="CHAR"/>
        <column default="" name="LastName" required="true" size="30"
type="VARCHAR"/>
        <column default="" name="EmailName" required="true" size="50"
type="VARCHAR"/>
        <column default="" name="Password" required="true" size="8"
type="VARCHAR"/>
        <column default="" name="Description" type="SMALLINT"/>
        <column default="" name="CreateDate" type="TIMESTAMP"/>
    </table>
    <table name="updateLog">
        <column default="" name="Info" size="255" type="VARCHAR"/>
        <column default="0" name="Type" required="true" type="TINYINT"/>
        <column default="" name="userID" required="true" size="8"
type="VARCHAR"/>
        <column default="" name="TimeStamp" type="TIMESTAMP"/>
        <column default="" name="ID" primaryKey="true" required="true"
type="SMALLINT"/>
    </table>
    <table name="xRef">
        <column default="0" name="MailingListID" primaryKey="true"
            required="true" type="SMALLINT"/>
        <column default="0" name="AddressID" primaryKey="true"
            required="true" type="SMALLINT"/>
        <column default="" name="UserID" required="true" size="8"
type="VARCHAR"/>
    </table>
</database>


----- Original Message -----
From: "Eric Emminger" <eric@ericemminger.com>
To: "Turbine Torque Users List" <torque-user@db.apache.org>
Cc: <rafimf@yahoo.com.au>
Sent: Tuesday, May 13, 2003 2:46 AM
Subject: Re: Error in Torque Generated Java Code


> Rafi
>
> The attachment didn't work. Could you send it inline or try again?
>
> Eric
>
> Rafi Mohamed wrote:
> > Hi,
> > This is my first email. Apologies if I have sent this
> > email to the wrong list. If so, please let me know the
> > right Email ID to send to.
> >
> > Problem Description :
> > I generated java code for a mysql schema (which was
> > generated by the ANT JDBC task from a mysql database).
> > I decided to compile the generated code without
> > modification using 'ant compile' and got a few errors.
> > I have attached to this email. Could someone help.
> >
> > Thanks,
> > Rafi Mohamed.
> >
> > http://mobile.yahoo.com.au - Yahoo! Mobile
> > - Check & compose your email via SMS on your Telstra or Vodafone mobile.
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: torque-user-help@db.apache.org
>
>
> ---------------------------------------------------------------------
> 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