You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Warner Onstine <wa...@warneronstine.com> on 2001/07/06 20:01:32 UTC
Torque Schema Reference
Hi all,
I have started to document the database.dtd and what everything means and
have some question regarding the database tag:
What exactly do the
package, baseClass, basePeer attributes do? Do they override settings in the
torque build.properties file? What additional functionality do they provide
the developer?
By specifying defaultIdMethod at the database level, what does that do?
Thanks
-warner
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: Torque Schema Reference
Posted by Warner Onstine <wa...@warneronstine.com>.
Thanks John,
Almost done with the database and table refs then.
-warner
----- Original Message -----
From: "John McNally" <jm...@collab.net>
To: <tu...@jakarta.apache.org>
Sent: Friday, July 06, 2001 1:41 PM
Subject: Re: Torque Schema Reference
> it is possible you may have several databases in one schema and not want
> all classes in the same package. the package attribute will override
> that specified in build.properties.
>
> baseClass overrides the default parent class for the OM classes which is
> BaseObject.
> basePeer does the same for the FooPeer classes.
>
> The baseClass does not have to extend BaseObject, but you will need to
> implement the Persistent interface somewhere along the chain.
>
> basePeer should have BasePeer as the top level class. Remember these
> classes are full of static methods so do not expect oo behavior.
>
> defaultIdMethod specifies the idMethod for tables that do not include
> the attribute.
>
> john mcnally
>
> Warner Onstine wrote:
> >
> > Hi all,
> > I have started to document the database.dtd and what everything means
and
> > have some question regarding the database tag:
> > What exactly do the
> > package, baseClass, basePeer attributes do? Do they override settings in
the
> > torque build.properties file? What additional functionality do they
provide
> > the developer?
> >
> > By specifying defaultIdMethod at the database level, what does that do?
> >
> > Thanks
> > -warner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: Torque Schema Reference
Posted by Warner Onstine <wa...@warneronstine.com>.
Ok,
table stuff now:
What are the following:
javaName
skipSql
abstract
alias - (Note, I know what an alias is, but am not sure how it used here =).
-warner
----- Original Message -----
From: "John McNally" <jm...@collab.net>
To: <tu...@jakarta.apache.org>
Sent: Friday, July 06, 2001 1:41 PM
Subject: Re: Torque Schema Reference
> it is possible you may have several databases in one schema and not want
> all classes in the same package. the package attribute will override
> that specified in build.properties.
>
> baseClass overrides the default parent class for the OM classes which is
> BaseObject.
> basePeer does the same for the FooPeer classes.
>
> The baseClass does not have to extend BaseObject, but you will need to
> implement the Persistent interface somewhere along the chain.
>
> basePeer should have BasePeer as the top level class. Remember these
> classes are full of static methods so do not expect oo behavior.
>
> defaultIdMethod specifies the idMethod for tables that do not include
> the attribute.
>
> john mcnally
>
> Warner Onstine wrote:
> >
> > Hi all,
> > I have started to document the database.dtd and what everything means
and
> > have some question regarding the database tag:
> > What exactly do the
> > package, baseClass, basePeer attributes do? Do they override settings in
the
> > torque build.properties file? What additional functionality do they
provide
> > the developer?
> >
> > By specifying defaultIdMethod at the database level, what does that do?
> >
> > Thanks
> > -warner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: Torque Schema Reference
Posted by John McNally <jm...@collab.net>.
it is possible you may have several databases in one schema and not want
all classes in the same package. the package attribute will override
that specified in build.properties.
baseClass overrides the default parent class for the OM classes which is
BaseObject.
basePeer does the same for the FooPeer classes.
The baseClass does not have to extend BaseObject, but you will need to
implement the Persistent interface somewhere along the chain.
basePeer should have BasePeer as the top level class. Remember these
classes are full of static methods so do not expect oo behavior.
defaultIdMethod specifies the idMethod for tables that do not include
the attribute.
john mcnally
Warner Onstine wrote:
>
> Hi all,
> I have started to document the database.dtd and what everything means and
> have some question regarding the database tag:
> What exactly do the
> package, baseClass, basePeer attributes do? Do they override settings in the
> torque build.properties file? What additional functionality do they provide
> the developer?
>
> By specifying defaultIdMethod at the database level, what does that do?
>
> Thanks
> -warner
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org