You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Michael C. Starkie" <mi...@michaelstarkie.com> on 2003/03/12 18:16:33 UTC

newapp difficulties changing schema

re: turbine-2.1 on Linux.

It's taking me too long to learn how to create a new turbine application from scratch.  The only way to do this, as far as I can tell, is to re-engineer the sample "newapp" and learn as you go.

A particular problem exists for new users who want to modify the newapp-schema.xml file.  It seems that the torque utility has already created the peer java source files for the old schema (because the tutorial asks you to run "ant" in the tdk home directory as a first step)

If I modify the schema I get runtime exceptions when trying to do an insert because turbine is looking for a class or method that contains "Rfd", a reference to the primary key in the old schema.

If I remove the torque generated java files in the modules directory I can't even compile the newapp application.

It appears my only solution is to modify the torque generated files which defeats the purpose of using turbine in the first place.

WHAT DO I NEED TO DO TO SET UP TORQUE SO IT RECOGNIZES MY SCHEMA CHANGES?

-- or --

WHERE CAN I LEARN HOW TO CREATE A NEW TURBINE APP FROM SCRATCH?

thanks,
Mike

Re: newapp difficulties changing schema

Posted by Luke Majewski <lu...@verizon.net>.
you removed the torque generated java files from the om directory?  What
about the *.class files in the class directory - get rid of those too.  Now
run an ant init from the build dir and it should work.

Luke

----- Original Message -----
From: "Michael C. Starkie" <mi...@michaelstarkie.com>
To: <tu...@jakarta.apache.org>
Sent: Wednesday, March 12, 2003 12:16 PM
Subject: newapp difficulties changing schema


> re: turbine-2.1 on Linux.
>
> It's taking me too long to learn how to create a new turbine application
from scratch.  The only way to do this, as far as I can tell, is to
re-engineer the sample "newapp" and learn as you go.
>
> A particular problem exists for new users who want to modify the
newapp-schema.xml file.  It seems that the torque utility has already
created the peer java source files for the old schema (because the tutorial
asks you to run "ant" in the tdk home directory as a first step)
>
> If I modify the schema I get runtime exceptions when trying to do an
insert because turbine is looking for a class or method that contains "Rfd",
a reference to the primary key in the old schema.
>
> If I remove the torque generated java files in the modules directory I
can't even compile the newapp application.
>
> It appears my only solution is to modify the torque generated files which
defeats the purpose of using turbine in the first place.
>
> WHAT DO I NEED TO DO TO SET UP TORQUE SO IT RECOGNIZES MY SCHEMA CHANGES?
>
> -- or --
>
> WHERE CAN I LEARN HOW TO CREATE A NEW TURBINE APP FROM SCRATCH?
>
> thanks,
> Mike
>


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