Jason van Zyl wrote:
>
> On Tue, 21 Nov 2000, Chris Crossen wrote:
>
> >
> > > > Is there a way to have Torque generate one map builder for the database
> > > > instead of one per table?
> >
> > > Can you give me an example of what you're trying to do? Torque
> > > is very flexible. You could change the output by making
> > > a new set of templates. If what you're proposing is
> > > another OM generating mode can easily be made by
> > > slightly changing the existing templates.
> >
> > I am using Peers with one map builder per database (like TurbineMapBuilder).
> > I am currently writing a template to generate files for inclusion in my map
> > builder.
>
> Is there an advantage to the method your employing? Anyone? When
> is it desirable to use a MapBuilder per database as opposed to
> a MapBuilder per table?
I am not sure of the advantage. I orginally intended that there would
only be
one MapBuilder for a database, there was a property for it in TR.props;
my intent was to only include the table and column name abstraction
methods for the Turbine required tables, so the file would not be that
large. Jon Stevens and others preferred one per table and things were
altered quite a bit to support it.
I thought people might offer some other techniques for generating the
maps and they would write other MapBuilders i.e JDBCMetaMapBuilder,
XMLMapBuilder, SQLMapBuilder, etc. While I supplied the simplest form
(TurbineMapBuilder). It seemed easiest to me to have all this located
in a central location.
Since Torque is generating the MapBuilders and the db info is centrally
located in an xml file, it is probably better to have the multiple
builders. Each TableMap is built as needed and one less thing to hold
up that first screen after just starting the servlet engine.
John McNally
>
> --
> jvz.
>
> Jason van Zyl
> [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]