db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pauldecour...@decoursey.net
Subject Re: Getting Started...HELP
Date Tue, 22 Feb 2005 15:29:10 GMT
Ok, I've slowed down and read through the tutorial.  It is very helpful,
and I jumped the gun on begging for help.  Now I got the example in the
tutorial to generate and then build.  Now I updated the schema and other
files to fit my needs and it generates but the java that gets generated
does not build.

cannot resolve symbol
symbol  : method retrieveByPK (org.apache.torque.om.SimpleKey)
location: class org.bid4it.db.om.UserstablePeer
                          aUserstable =
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.

retrieveByPK I am guessing has somthing to do with the Primary Key.  I can
see that that method is not being generated, I don't know why, I have
primary keys.

Here is my schema:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<database name="bid4it" defaultidmethod="idbroker">
	<table name="UsersTable">
		<column name="userID" required="true" primarykey="true" type="INTEGER" />
		<column name="username" required="true" size="255" type="VARCHAR" />
		<column name="password" required="true" size="32" type="VARCHAR" />
			<unique-column name="username" />
	<table name="AddressTable">
		<column name="addressID" required="true" primarykey="true"
type="INTEGER" />
		<column name="userID" required="true" type="BIGINT" />
		<column name="identifier" required="true" size="255" type="VARCHAR" />
		<column name="verified" required="true" type="BOOLEANINT" default="0"
javaType="primitive" />
		<column name="address1" size="255" type="VARCHAR" />
		<column name="address2" size="255" type="VARCHAR" />
		<column name="city" size="255" type="VARCHAR" />
		<column name="state" size="255" type="VARCHAR" />
		<column name="zip" size="11" type="VARCHAR" />
		<foreign-key foreignTable="UsersTable" name="UserKey">
			<reference local="userID" foreign="userID"/>




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

View raw message