Daniel,
  the short answer is yes it can.  How?  Well,  the Java generator code
specifically for generating the classes that represent types can be seen in
[1],  but note that it itself is generated from the javajet template at [2]
(a JSP like syntax).

To generate [1] from[2] you need to add a Jet nature to the sdo-tools
project in eclipse, see [3].  Then it would be a case of tracing how the
existing arguments work and replicating that kind of behaviour.  Note that
when getting used to working with the generated generator [1], as a novice I
found it a bit difficult to see what's going on in a debugger. so I made a
sed script [4] that can be run as per the instructions in its comments to
make the generated code easier to debug.

Is this something you would be interested in providing a patch for?

Regards, Kelvin.

[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/tools/src/main/java/org/apache/tuscany/sdo/generate/templates/model/SDOClass.java
[2]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/tools/templates/models/SDOClass.javajet
[3] http://www.eclipse.org/articles/Article-JET/jet_tutorial1.html
[4]
https://svn.apache.org/repos/asf/incubator/tuscany/java/etc/make_javajet_sed.sed

On 23/05/07, Daniel Peter <[EMAIL PROTECTED]> wrote:

Hi all,

Can the generator be configured to add a
    static final long serialVersionUID = ...;
in the generated SDO classes?

I need to be able to keep the serialVersionUID
unchanged between different generations; thus I need
to be able to manually define it somewhere.

Any suggestions how I could achieve this?

Thanks, Daniel.


       __________________________________ Yahoo! Clever - Der einfachste
Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen.
www.yahoo.de/clever


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to