db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mickey Mokotov" <mic...@fetchbook.info>
Subject FW: torque error
Date Thu, 19 May 2005 09:38:55 GMT
Hi fellows,

We have a compilation error when we try to move a key to other integer type
than INTEGER.
For example, when we try 

	<table name="PriceAlertRequest" idMethod="native">
		<column name="request_id" type="SMALLINT" required="true"
primaryKey="true" autoIncrement="true"/>
		<column name="date" type="DATE" required="true"/>
		...
	</table>



We get the following errors:

    [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating Peer-based Object Model for   |
     [echo] | YOUR Torque project!                     |
     [echo] |                                          |
     [echo] +------------------------------------------+
om-classpath:
om-template:
[torque-data-model] Using contextProperties file:
~home/torque-gen/build.properties
[torque-data-model] Generating to file
~home/src/isbn/build/tmp/torque/src/report.database.om.generation
[torque-data-model] log4j:ERROR Could not find value for key
log4j.appender.org.apache.torque.engine
[torque-data-model] log4j:ERROR Could not instantiate appender named
"org.apache.torque.engine". [torque-data-model] 2005-05-19 11:23:05,432
[main] INFO 
org.apache.torque.engine.database.transform.XmlToAppData - Parsing file:
'database-schema.xml' [torque-data-model] 2005-05-19 11:23:05,442 [main]
INFO 
org.apache.torque.engine.database.transform.DTDResolver - Resolver: used
database.dtd from 'org.apache.torque.engine.database.transform' package
Overriding previous definition of reference to torque-classpath
compile:

...

~home/src/isbn/build/tmp/torque/src/com/isbn/logic/beans/torqueOM/database/B
asePricealertrequest.java:672: setRequestId(short) in
com.isbn.logic.beans.torqueOM.database.BasePricealertrequest cannot be
applied to (int)
    [javac] copyObj.setRequestId(0);
    [javac] ^
    [javac]
~home/src/isbn/build/tmp/torque/src/com/isbn/logic/beans/torqueOM/database/B
asePricealertrequestPeer.java:55: warning: getMapBuilder() in
org.apache.torque.util.BasePeer has been deprecated
    [javac] public static MapBuilder getMapBuilder()
    [javac] ^
    [javac] 1 error
    [javac] 6 warnings
BUILD FAILED: ~home/src/commons/build.xml:281: Following error occured while
executing this line
~home/src/commons/build.xml:291: Following error occured while executing
this line
~home/torque-gen/build-torque.xml:663: Compile failed; see the compiler
error output for details. Total time: 24 seconds
-- 

www.FetchBook.Info
Find the lowest price - Compare more than a hundred book stores in a click


---------------------------------------------------------------------
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