Jim, I strongly recommend applying the changes in the extend-user-howto to the sample newapp application that comes with the tdk before going on to implementing this for your own application. This is pretty much a cut and paste exercise, but all of the necessary steps are included and you will end up with a clear understanding of how the various parts fit together.
See also my comments below. HTH, Scott > From: Jim Knoll <[EMAIL PROTECTED]> > Reply-To: "Turbine Users List" <[EMAIL PROTECTED]> > Date: Thu, 28 Feb 2002 20:17:53 -0500 > To: Turbine Users List <[EMAIL PROTECTED]> > Subject: Extend User Question > > Hello, > > I am trying to follow the Extend User How To. I receive compilation > errors when the compile target executes. One of the errors indicates > TurbineUserPeer is an unknown symbol in BaseStatusReportUserPeer.java. > If I edit that file to include import > org.apache.turbine.om.security.peer.*;, the error is fixed. My errors > seem to result from the inability to find class definitions. > > After I fix the compilation errors, the generated code > overwrites my changes. I think I am not configuring the properties > properly. > > Here is my schema: > > <database> > <table name="STATUS_REPORT_USER" javaName="StatusReportUser" > alias="TurbineUser" > baseClass="org.dyndns.jimknoll.status_report.om.TurbineUserAdapter" > > basePeerClass="org.dyndns.jimknoll.status_report.om.TurbineUserPeerAdapter"> > <column name="USER_ID" primaryKey="true" required="true" > type="integer"/> > </table> > > <table name="StatusEntries"> STATUS_ENTRIES? > <column name="StatusId" required="true" autoIncrement="true" STATUS_ID? > primaryKey="true" type="INTEGER"/> > <column name="USER_ID" required="true" type="INTEGER"/> > <foreign-key foreignTable="STATUS_REPORT_USER"> > <reference local="USER_ID" foreign="USER_ID"/> > </foreign-key> > <column name="Comment" size="255" type="VARCHAR"/> COMMENT? > <column name="Date" size="14" type="TIMESTAMP"/> DATE? (is this a reserved word?) > <column name="Progress" size="10" type="VARCHAR"/> PROGRESS? > </table> I think you need to define your columns before your foreign keys. Validating you schema is a great way to pick up errors. > </database> > > I would appreciate any help. > > Jim > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
