I'm fairly new to Turbine myself so here's my newbie reply.

I think your main confusion is that the only java code generated is that to
access the databases, not the business logic.  This is generated from a
database schema defined in an XML file.

Your business logic, which uses the generated database access classes, is
not generated and will not be overwritten by the java generation routine.
Your business logic will usually come under the modules directory in your
webapps directory.  The generated data access classes will usually be
generated in an om directory in your webapp directory.

The generated java classes for database access are part of the Torque
product.  Look this up in the documentation.

HTH

Shaun



-----Original Message-----
From: Jim McNeill [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2001 21:29
To: [EMAIL PROTECTED]
Subject: Fools rush in


Having seen the reception that novices get in this list, I get the feeling
that I'm really going to regret this, but here goes.

I honestly have downloaded the TDK and got the example app going, and
amended it a bit OK. It lead me to ask several questions, which I'm having
difficulty answering from the howtos and other docs. I've had a look through
the mail archives too, but I'm still none the wiser.  I'll pose just one of
my questions, so that you can gauge the frightening extent of my ignorance:

Em, Turbine is an application generator, yeah? It creates java code from an
XML representation of database structure, plus some Velocity screen and
layout definitions. You add your business logic into the generated Java
code. So, standard question for code generators, how do I preserve my
business logic when I decide to add a few fields and generate the lot again?

And you thought I was joking when I said I was thick.

Cheers
Jim McNeill


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

Reply via email to