05/06/2001 16:50:36, "Sean Leach" <[EMAIL PROTECTED]> wrote:
>In the one of the docs it says to subclass your generated Peer class, and
>add your logic there.
>
>http://jakarta.apache.org/turbine/howto/peers-howto.html I think.
>
>Sean
>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'm slightly scared of posting too, Jim. I reported some of the contents of my
velocity.log to the velocity users list (logical enough, I thought) and got told
to push off cos it was a turbine issue - I've decided to just try to figure it
out for myself... It must get tiring to keep answering the same questions I
suppose but there isn't really an FAQ as such... (And yes! I'd be happy to put
one together and maintain it if it'd be useful but I can only do that when I
know enough! Catch 22)
>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?
Sean's right about what the howto says but notice that in your generated OM
classes you will have e.g. BaseRDFPeer and RDFPeer. In RDFPeer you can add your
own functionality and according to the docs in the java file itself, this file
will only be regenertaed if it doesn't exist in the directory. It seems to me
therfore that this subclassing step that Sean refers to is being done for you.
The whole build process of the TDK is imho fantastically brilliant and a
testament to the quality of the engineers contributing to this project (and
velocity and all the other excellent services bundled with the TDK).
I have also been thinking about simply duplicating my current webapp directory
tree elsewhere, binning the original and rebuilding it. I could then bring
across other source files that I have added to e.g. SQL.java where I have thrown
a lot of my own code.
Anyone else feel free to pull me up if I have misunderstood this issue.
BTW - I would be glad to update the docs for this if I am right that this
subclassing step has been automated...
colm
................................................................
colm mccartan
panasonic owl uk
[EMAIL PROTECTED]
(44) 131 561 1035
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]