It's supposed to be primaryKey=true not primarykey=true
Don't you just hate errors due to the wrongs caps? :)
[EMAIL PROTECTED] wrote:
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.
/Users/pauldecoursey/Projects/Tqtest/src/org/bid4it/db/om/BaseAddresstable.java:362: cannot resolve symbol symbol : method retrieveByPK (org.apache.torque.om.SimpleKey) location: class org.bid4it.db.om.UserstablePeer aUserstable = UserstablePeer.retrieveByPK(SimpleKey.keyFor(this.userid)); 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"?> <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_1.dtd"> <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> <unique-column name="username" /> </unique> </table> <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"/> </foreign-key> </table> </database>
Help,
Thanks
Paul
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
