Scott,
Thanks a bunch for the info. I should have read the properties
reference more closely. I do have one more tiny question. I have
forgotten how to configure Torque to use Objects instead of primitives
(eg, Integer instead of int) for passing values. I've dug through the
site, and haven't been able to find it.
--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com
-----Original Message-----
From: Scott Eade [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 4:11 PM
To: Apache Torque Developers List
Subject: Re: Foreign key relationships
Nathan Mcminn wrote:
>After generating my classes using Torque 3.1, this is no longer
>happening. When I generate my classes, all Base<table-name> and
>Base<table-name>Peer classes are created, but the methods I am used to
>seeing for handling foreign-key relationships are gone.
>
>
It looks like you are getting caught by the problem where maven doesn't
read the default properties for the plugin, in this case
complexObjectModel.
You should find answers in the mail archive, all you need to do is add
the following to your project.properties file:
torque.addGetByNameMethod = true
torque.addIntakeRetrievable = true
torque.addSaveMethod = true
torque.addTimeStamp = false
torque.basePrefix = Base
torque.complexObjectModel = true
torque.useManagers = true
torque.useClasspath = true
torque.saveException = TorqueException
torque.retrievableInterface = org.apache.turbine.om.Retrievable
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
---------------------------------------------------------------------
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]