db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Mcminn" <NMcm...@theblragency.com>
Subject RE: Foreign key relationships
Date Tue, 16 Mar 2004 16:46:13 GMT
Please disregard this question.

--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:nmcminn@NequalsOne.com
http://www.NequalsOne.com 

-----Original Message-----
From: Nathan Mcminn 
Sent: Tuesday, March 16, 2004 10:29 AM
To: Apache Torque Developers List
Subject: RE: Foreign key relationships

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:nmcminn@NequalsOne.com
http://www.NequalsOne.com 

-----Original Message-----
From: Scott Eade [mailto:seade@backstagetech.com.au] 
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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


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


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