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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to