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 ?
> addB(B b)
>
> Leandro Saad wrote:
> >
> > I think this is a direct message to john mcnally !
> >
> > I'm working on using torque to generate BO Managers and I have one
> > question:
> >
> > When a table is an alias can we presupose that :
> > - there is already sql and java code for it ( so we don't have to
> > generate it ) ?
> > - we can have fk's to this table ?
> > - this table shouldn't have fk's to the tables we are describing at
> > project-schema.xml ?
> > if the above is correct. why torque generates some code for a table that
> > has the attribute alias="true" ??
> >
> > ---------------------------------------------------------------------
> > 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]