Thank you Rick.

The 'createRelatedTable' did not work but I am looking for it.

That advantages has the SQLRelatedJoin?

Regards

On 10/25/06, Rick Flosi <[EMAIL PROTECTED]> wrote:
>
> Add 'createRelatedTable=False' to your RelatedJoins like:
>      practica=RelatedJoin('practica', createRelatedTable=False)
> This might only be in 'SQLRelatedJoin' so you might have to use that over
> 'RelatedJoin'. 'SQLRelatedJoin' has some other advantages so you probably
> want to use that anyways.
>
> I'm not sure if 'createRelatedTable' is right, but it's something like
> that. I can look it up if that's wrong.
>
> Then create an SQLObject class for the centro_practica table:
> Fill in the ForeignKey() and additional SomeCol().
> class centroPractica(SQLObject):
>      centro=ForeignKey()
>      practica=ForeignKey()
>      estate=SomeCol()
>
> --
> Rick
>
> On Wed, 25 Oct 2006, marcelo schiavone wrote:
>
> > Hi
> >
> > I have the following file:
> >
> > from sqlobject import *
> > connection_string = 'mysql://[EMAIL PROTECTED]/bd'
> > connection = connectionForURI(connection_string)
> >
> > class centro(SQLObject):
> >    _connection=connection
> >    descripCentro=StringCol()
> >    practica=RelatedJoin('practica')
> >
> > class practica(SQLObject):
> >    _connection=connection
> >    descripPractica=StringCol()
> >    valorTotalPractica=FloatCol()
> >    centro=RelatedJoin('centro')
> >
> >
> > SQLObject generates the table "centro_practica".
> >
> > Since I do to add for example a FIELD "estate" to the table 
> > "centro_practica"?
> >
> > Regards
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > sqlobject-discuss mailing list
> > sqlobject-discuss@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to