You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Chris Campbell <ca...@zodiacnetworks.com> on 2001/04/19 02:13:39 UTC

TDK-Torque and ForiegnKey into TURBINE_USER

When I try to establish a foreignKey in a project-schema.xml table that
refrences TURBINE_USER's USER_ID, my om classes are not correctly generated.

During om class generation I get this error:

java.lang.NullPointerException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
        at
org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
:134)
        at
org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
a:230)
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)

        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

And the class that has the foriegn key does not get fully rendered. For
example, the following method:

 public void setUserPrefrences(UserPrefrences v) throws Exception
    {
        aUserPrefrences = null;
           set${column.JavaName}(v.get${colFK.JavaName}());
           aUserPrefrences = v;
    }

Is setting the foreingKey to refrence Turbine_User user_id column possible?
( Or the wrong thing to do ?)

Thanks
Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK-Torque and ForiegnKey into TURBINE_USER

Posted by Chris Campbell <ca...@zodiacnetworks.com>.
Hmmm... when I try this, I still get errors.: The sql gets generated with an
unresolved $fk variable for Turbine_User, even if the whole Turbine_User
table is copied into the project.xml file! And the generated
TurbineUser.java file is generated as an empty file. Hmmm... something wierd
is gonig on in torque land, is it me?

Chris

----- Original Message -----
From: Leon Messerschmidt
To: turbine-user@jakarta.apache.org
Sent: Thursday, April 19, 2001 12:10 AM
Subject: Re: TDK-Torque and ForiegnKey into TURBINE_USER


Hi Chris,

You can create a dummy table for TURBINE_USER to prevent this error.
Unfortunately you'll end up with wrong TurbineUser* classes in your om
directory.  I usually delete these and edit the code by hand to make it
compile.

I'd be grateful if you have a patch that works :-)

~ Leon


----- Original Message -----
From: "Chris Campbell" <ca...@zodiacnetworks.com>
To: <tu...@jakarta.apache.org>
Sent: Thursday, April 19, 2001 2:13 AM
Subject: TDK-Torque and ForiegnKey into TURBINE_USER


> When I try to establish a foreignKey in a project-schema.xml table that
> refrences TURBINE_USER's USER_ID, my om classes are not correctly
generated.
>
> During om class generation I get this error:
>
> java.lang.NullPointerException
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
>         at
>
org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
> :134)
>         at
>
org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
> a:230)
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
>
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>         at org.apache.tools.ant.Main.runBuild(Main.java:421)
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> And the class that has the foriegn key does not get fully rendered. For
> example, the following method:
>
>  public void setUserPrefrences(UserPrefrences v) throws Exception
>     {
>         aUserPrefrences = null;
>            set${column.JavaName}(v.get${colFK.JavaName}());
>            aUserPrefrences = v;
>     }
>
> Is setting the foreingKey to refrence Turbine_User user_id column
possible?
> ( Or the wrong thing to do ?)
>
> Thanks
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


problem with order-by

Posted by kidong <Ki...@public.uni-hamburg.de>.
hello,

i have problem with order-by function with criteria.
my first database connection to retrieve all rows is so:

Criteria crit2 = new Criteria();
Vector v2 = org.apache.turbine.ProjektePeer.doSelect( crit2 );

connection null!

i have tried again with this code:


Criteria crit2 = new Criteria();
Vector v2 = org.apache.turbine.ProjektePeer.doSelect( crit2,
GetDBConnection.getAnotherDBConnection()  );

it runs fine.

and now,

Criteria crit2 = new Criteria();
crit2.addOrderByColumn( ProjektePeer.NAME );
Vector v2 = org.apache.turbine.ProjektePeer.doSelect( crit2,
GetDBConnection.getAnotherDBConnection()  );

, where GetDBConnection class is following:

=================================================================
package de.silverscreen.turbine.bugtracker.util;

import java.lang.*;
import org.apache.turbine.util.db.pool.ConnectionPool;
import org.apache.turbine.util.db.pool.DBConnection;

/**
 *  the small database connections are made.
 *  When necessary, static final string could be modified.
 */

public class GetDBConnection
{

   public static final String DRIVER = "org.gjt.mm.mysql.Driver";


   public static final String URL =
"jdbc:mysql://127.0.0.1/bugtracker?user=root";
   public static final String ANOTHER_URL =
"jdbc:mysql://127.0.0.1/zef?user=root";
   public static final String USER = "root";
   public static final String PASSWORD = "";

   /*
   public static final String URL =
"jdbc:mysql://62.157.88.3:3306/bugtracker?user=silver";
   public static final String ANOTHER_URL =
"jdbc:mysql://62.157.88.3:3306/zef?user=silver";
   public static final String USER = "silver";
   public static final String PASSWORD = "tmfitsxy";
   */

   public static DBConnection getDBConnection() throws Exception
   {
      ConnectionPool cp = new ConnectionPool ( DRIVER, URL, USER,
PASSWORD );
      return cp.getConnection();
   }
   public static ConnectionPool getConnectionPool() throws Exception
   {
      return new ConnectionPool ( DRIVER, URL, USER, PASSWORD );
   }

   public static DBConnection getAnotherDBConnection() throws Exception
   {
      ConnectionPool cp = new ConnectionPool ( DRIVER, ANOTHER_URL, USER,
PASSWORD );
      return cp.getConnection();
   }
}
========================================================================

i got the following exception:

[Thu Apr 19 21:06:49 GMT+02:00 2001] -- INFO -- IDBroker thread was started.
[Thu Apr 19 21:06:49 GMT+02:00 2001] -- ERROR -- Turbine.handleException:
null
[Thu Apr 19 21:06:49 GMT+02:00 2001] -- ERROR --
 Exception:  java.lang.NullPointerException
 Stack Trace follows:
 java.lang.NullPointerException
 at
org.apache.turbine.om.peer.BasePeer.createQueryString(BasePeer.java:1004)
 at org.apache.turbine.om.peer.BasePeer.doSelect(BasePeer.java:1114)
 at
org.apache.turbine.BaseProjektePeer.doSelectVillageRecords(BaseProjektePeer.
java:187)
 at org.apache.turbine.BaseProjektePeer.doSelect(BaseProjektePeer.java:148)
 at
de.silverscreen.turbine.bugtracker.modules.screens.Index.doPerformThis(Index
.java:29)
 at
de.silverscreen.turbine.bugtracker.modules.screens.Index.doBuildTemplate(Ind
ex.java:18)
 at
org.apache.turbine.modules.screens.VelocityScreen.doBuildTemplate(VelocitySc
reen.java:115)
 at
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.jav
a:135)

any idea would be very thankful to me.

thanks,

kidong








---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK-Torque and ForiegnKey into TURBINE_USER

Posted by John McNally <jm...@collab.net>.
I started down a path like this and reverted back to just declaring the
relevant parts of the table in the xml and then telling torque not to
generate sql for the table.

This way torque still generates methods and classes for the related
table.  I think it should be possible to set up the class hierarchy so
that the torque class extends your custom table class or the other way
around.  It is complicated, but the alternative of leaving out any
reference to an external table in the om/peer classes does not seem like
a very good solution.

John McNally

Chris Campbell wrote:
> 
> That's a bit beyond me at this point. But my initial guess would be to add
> an externalTable element to the database.dtd. It appears that the XmlParser
> is choking on the fact that the foreign-key's foriegnTable attribue doesn't
> match up to any of the tables defined in the xml.
> 
> For the sake of argument, maybe something like this would work:
> 
> <!ELEMENT externalTable >
> <!ATTLIST table
>   name CDATA #REQUIRED
>   javaName CDATA #IMPLIED
> >
> 
> and
> <!ELEMENT external-foreign-key (reference+)>
> <!ATTLIST external-foreign-key
>   externalForeignTable CDATA #REQUIRED
> >
> 
> and
> <!ELEMENT database(table+, externalTable*)>
> <blahblah>
> 
> Then in XML
> 
> <external-foreign-key externalForeignTable="TURBINE_USER">
>     <reference local="USER_ID" foreign="USER_ID"/>
> </foreign-key>
> 
> Does any of this make sense? If I was more competent with XML stuff I would
> try it, but I'm just so unfamiliar with the torque code and am swamped with
> work...
> 
> Chris
> 
> ----- Original Message -----
> From: Leon Messerschmidt
> To: turbine-user@jakarta.apache.org
> Sent: Thursday, April 19, 2001 12:10 AM
> Subject: Re: TDK-Torque and ForiegnKey into TURBINE_USER
> 
> Hi Chris,
> 
> You can create a dummy table for TURBINE_USER to prevent this error.
> Unfortunately you'll end up with wrong TurbineUser* classes in your om
> directory.  I usually delete these and edit the code by hand to make it
> compile.
> 
> I'd be grateful if you have a patch that works :-)
> 
> ~ Leon
> 
> ----- Original Message -----
> From: "Chris Campbell" <ca...@zodiacnetworks.com>
> To: <tu...@jakarta.apache.org>
> Sent: Thursday, April 19, 2001 2:13 AM
> Subject: TDK-Torque and ForiegnKey into TURBINE_USER
> 
> > When I try to establish a foreignKey in a project-schema.xml table that
> > refrences TURBINE_USER's USER_ID, my om classes are not correctly
> generated.
> >
> > During om class generation I get this error:
> >
> > java.lang.NullPointerException
> >         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
> >         at
> >
> org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
> > :134)
> >         at
> >
> org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
> > a:230)
> >         at
> > org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
> >         at org.apache.tools.ant.Target.execute(Target.java:153)
> >         at org.apache.tools.ant.Project.runTarget(Project.java:898)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
> >
> >         at org.apache.tools.ant.Target.execute(Target.java:153)
> >         at org.apache.tools.ant.Project.runTarget(Project.java:898)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:421)
> >         at org.apache.tools.ant.Main.main(Main.java:149)
> >
> > And the class that has the foriegn key does not get fully rendered. For
> > example, the following method:
> >
> >  public void setUserPrefrences(UserPrefrences v) throws Exception
> >     {
> >         aUserPrefrences = null;
> >            set${column.JavaName}(v.get${colFK.JavaName}());
> >            aUserPrefrences = v;
> >     }
> >
> > Is setting the foreingKey to refrence Turbine_User user_id column
> possible?
> > ( Or the wrong thing to do ?)
> >
> > Thanks
> > Chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK-Torque and ForiegnKey into TURBINE_USER

Posted by Chris Campbell <ca...@zodiacnetworks.com>.
That's a bit beyond me at this point. But my initial guess would be to add
an externalTable element to the database.dtd. It appears that the XmlParser
is choking on the fact that the foreign-key's foriegnTable attribue doesn't
match up to any of the tables defined in the xml.


For the sake of argument, maybe something like this would work:

<!ELEMENT externalTable >
<!ATTLIST table
  name CDATA #REQUIRED
  javaName CDATA #IMPLIED
>

and
<!ELEMENT external-foreign-key (reference+)>
<!ATTLIST external-foreign-key
  externalForeignTable CDATA #REQUIRED
>

and
<!ELEMENT database(table+, externalTable*)>
<blahblah>

Then in XML

<external-foreign-key externalForeignTable="TURBINE_USER">
    <reference local="USER_ID" foreign="USER_ID"/>
</foreign-key>


Does any of this make sense? If I was more competent with XML stuff I would
try it, but I'm just so unfamiliar with the torque code and am swamped with
work...

Chris

----- Original Message -----
From: Leon Messerschmidt
To: turbine-user@jakarta.apache.org
Sent: Thursday, April 19, 2001 12:10 AM
Subject: Re: TDK-Torque and ForiegnKey into TURBINE_USER


Hi Chris,

You can create a dummy table for TURBINE_USER to prevent this error.
Unfortunately you'll end up with wrong TurbineUser* classes in your om
directory.  I usually delete these and edit the code by hand to make it
compile.

I'd be grateful if you have a patch that works :-)

~ Leon


----- Original Message -----
From: "Chris Campbell" <ca...@zodiacnetworks.com>
To: <tu...@jakarta.apache.org>
Sent: Thursday, April 19, 2001 2:13 AM
Subject: TDK-Torque and ForiegnKey into TURBINE_USER


> When I try to establish a foreignKey in a project-schema.xml table that
> refrences TURBINE_USER's USER_ID, my om classes are not correctly
generated.
>
> During om class generation I get this error:
>
> java.lang.NullPointerException
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
>         at
>
org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
> :134)
>         at
>
org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
> a:230)
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
>
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>         at org.apache.tools.ant.Main.runBuild(Main.java:421)
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> And the class that has the foriegn key does not get fully rendered. For
> example, the following method:
>
>  public void setUserPrefrences(UserPrefrences v) throws Exception
>     {
>         aUserPrefrences = null;
>            set${column.JavaName}(v.get${colFK.JavaName}());
>            aUserPrefrences = v;
>     }
>
> Is setting the foreingKey to refrence Turbine_User user_id column
possible?
> ( Or the wrong thing to do ?)
>
> Thanks
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK-Torque and ForiegnKey into TURBINE_USER

Posted by John McNally <jm...@collab.net>.
some things that I have added that could help with integration:

you can define a table in the xml schema and not have the sql generated
with the <table skipSql="true" attribute.

you can setup a class hierarchy like

BaseObject
TurbineUser
BaseTorqueTurbineUser
TorqueTurbineUser

and

BasePeer
TurbineUserPeer
BaseTorqueTurbineUserPeer
TorqueTurbineUserPeer
 

i.e. there are attributes <table baseClass and basePeer where you can
give the fully qualified classNames.
So it is conceivable to have torque generate the User class.  There
could be quite a bit of complication in that the user class is expected
to be manipulated through TurbineSecurity.

I know Jon Stevens is looking at this, time permitting, but I wanted to
throw this information out there in case it helps anyone else
considering the problem. 

John McNally

Leon Messerschmidt wrote:
> 
> Hi Chris,
> 
> You can create a dummy table for TURBINE_USER to prevent this error.
> Unfortunately you'll end up with wrong TurbineUser* classes in your om
> directory.  I usually delete these and edit the code by hand to make it
> compile.
> 
> I'd be grateful if you have a patch that works :-)
> 
> ~ Leon
> 
> ----- Original Message -----
> From: "Chris Campbell" <ca...@zodiacnetworks.com>
> To: <tu...@jakarta.apache.org>
> Sent: Thursday, April 19, 2001 2:13 AM
> Subject: TDK-Torque and ForiegnKey into TURBINE_USER
> 
> > When I try to establish a foreignKey in a project-schema.xml table that
> > refrences TURBINE_USER's USER_ID, my om classes are not correctly
> generated.
> >
> > During om class generation I get this error:
> >
> > java.lang.NullPointerException
> >         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
> >         at
> >
> org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
> > :134)
> >         at
> >
> org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
> > a:230)
> >         at
> > org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
> >         at org.apache.tools.ant.Target.execute(Target.java:153)
> >         at org.apache.tools.ant.Project.runTarget(Project.java:898)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
> >         at
> > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
> >
> >         at org.apache.tools.ant.Target.execute(Target.java:153)
> >         at org.apache.tools.ant.Project.runTarget(Project.java:898)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:421)
> >         at org.apache.tools.ant.Main.main(Main.java:149)
> >
> > And the class that has the foriegn key does not get fully rendered. For
> > example, the following method:
> >
> >  public void setUserPrefrences(UserPrefrences v) throws Exception
> >     {
> >         aUserPrefrences = null;
> >            set${column.JavaName}(v.get${colFK.JavaName}());
> >            aUserPrefrences = v;
> >     }
> >
> > Is setting the foreingKey to refrence Turbine_User user_id column
> possible?
> > ( Or the wrong thing to do ?)
> >
> > Thanks
> > Chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK-Torque and ForiegnKey into TURBINE_USER

Posted by Leon Messerschmidt <le...@opticode.co.za>.
Hi Chris,

You can create a dummy table for TURBINE_USER to prevent this error.
Unfortunately you'll end up with wrong TurbineUser* classes in your om
directory.  I usually delete these and edit the code by hand to make it
compile.

I'd be grateful if you have a patch that works :-)

~ Leon


----- Original Message -----
From: "Chris Campbell" <ca...@zodiacnetworks.com>
To: <tu...@jakarta.apache.org>
Sent: Thursday, April 19, 2001 2:13 AM
Subject: TDK-Torque and ForiegnKey into TURBINE_USER


> When I try to establish a foreignKey in a project-schema.xml table that
> refrences TURBINE_USER's USER_ID, my om classes are not correctly
generated.
>
> During om class generation I get this error:
>
> java.lang.NullPointerException
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
>         at
>
org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java
> :134)
>         at
>
org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.jav
> a:230)
>         at
> org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>         at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
>
>         at org.apache.tools.ant.Target.execute(Target.java:153)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>         at org.apache.tools.ant.Main.runBuild(Main.java:421)
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> And the class that has the foriegn key does not get fully rendered. For
> example, the following method:
>
>  public void setUserPrefrences(UserPrefrences v) throws Exception
>     {
>         aUserPrefrences = null;
>            set${column.JavaName}(v.get${colFK.JavaName}());
>            aUserPrefrences = v;
>     }
>
> Is setting the foreingKey to refrence Turbine_User user_id column
possible?
> ( Or the wrong thing to do ?)
>
> Thanks
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org