Thanks, Quinton, that helped.
However there is another problem: torque generates two classes in all of
these files:
BaseTurbineUser.java
BaseTurbineUserPeer.java
BaseTurbineUserManager.java
For example, BaseTurbineUser.java contains both of these classes
public abstract class BaseTurbineUser extends
de.geoconnect.audiotex.om.TurbineUserAdapter
implements org.apache.turbine.om.Retrievable
and
public abstract class BaseTurbineUser extends BaseObject
implements org.apache.turbine.om.Retrievable
Apparently what happens is that Torque generates object TurbineUser two
times, first time from turbine-schema.xml, and second time from
project-schema.xml.
How did you got around this?
My schema looks like this:
<table name="TURBINE_USER" alias="AudiotexUser"
baseClass="de.geoconnect.audiotex.om.TurbineUserAdapter"
basePeer="de.geoconnect.audiotex.om.TurbineUserPeerAdapter">
<column name="USER_ID" primaryKey="true" required="true"
type="INTEGER"/>
</table>
<table name="KUNDE">
<column name="KUNDE_ID" primaryKey="true" required="true"
type="INTEGER"/>
<foreign-key foreignTable="TURBINE_USER">
<reference local="KUNDE_ID" foreign="USER_ID"/>
</foreign-key>
</table>
Marc
> -----Ursprungliche Nachricht-----
> Von: Quinton McCombs [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 14. Dezember 2002 22:25
> An: 'Turbine Users List'
> Betreff: RE: Documentation update
>
>
> My applogies. It should have been getTitle(). This is the attribute
> that, in the example, we are adding to Turbine User. Sorry, I guess
> that was another reference that I over looked when converted the code
> that I am using into the example.
>
> -----Original Message-----
> From: Marc Lustig [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 14, 2002 2:16 PM
> To: Turbine Users List
> Subject: AW: Documentation update
>
>
> Quinton, I tried out your Extend-User howto. I'm running into various
> problems, but first of all: you have this method in your
> TurbineMapBuilderAdapter
>
> public void doBuild() throws java.lang.Exception
> {
> super.doBuild();
>
> // Make dummy object - required for adding a column to the map
> Integer integer = new Integer(0);
>
> // Add extra User columns.
> TableMap tMap =
> Torque.getDatabaseMap().getTable(getTableUser());
> tMap.addColumn(getClientId(),integer);
> ^^^^^^^^^^^^
> }
>
> Problem is there is no method getCliendId() neither in
> TurbineMapBuilderAdapter nor in
> org.apache.turbine.util.db.map.TurbineMapBuilder.
>
> Could you please let me know how you implemented this method ? Thanks!
>
> Once, this is fixed all the other compilations errors might fade away.
>
> Marc
>
>
> --
> 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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>