Leandro Saad wrote:
>
> John McNally wrote:
> >
> > It generates code based on the fk's that other tables are using to
> > reference the alias.
> >
> > <table name=A alias=true>
> > <column name=a pk=true />
> > </table>
> >
> > <table name=B>
> > <column name=b pk=true />
> > <column name=a />
> > <fk table=A>
> > <localcolumn=a foreigncolumn=b />
> > </fk
> > </table>
> >
> > A.java will have methods like
> >
>
> Ok. Woudn't be resonable to presupose that A.java has already been
> written with all functionality it needs ?
>
First my example should read
<table name=A alias=AParent>
in this case a class A will be created which extends AParent which is
the OM class for the table which exists in the other schema. I am not
sure how A will already have all the functionality it needs, the usual
process with torque is to use torque to create the empty classes and the
classes with the generated methods (BaseA) then to add functionality to
A.java.
If you are referring to the ability to use AParent without extending it,
that might be advantageous in some circumstances though AParent will
likely not contain all the functionality it needs as it will have no
knowledge of the classes generated from the new schema. There still
might be circumstances where it is preferred to add the needed methods
manually. I (and others) would appreciate it if this functionality was
added to torque.
john mcnally
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]