You can build a DatabaseMap using several MapBuilders (one per table, one
for defaults-one for app, or any other arrangement. A database should only
have one DatabaseMap. Just as each Table should only have one TableMap,
column/ColumnMap etc.
You should just write something like the following in your Builders:
dbMap = DBBroker.getInstance().getDatabaseMap();
instead of
dbMap = new DatabaseMap();
Then start adding table(s) to the dbMap.
John McNally
----- Original Message -----
From: Jon Stevens <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Monday, August 28, 2000 1:20 PM
Subject: [Peer] Multiple Map Files
> I think that having multiple map files (one for each table) defined was
> removed from the BasePeer functionality. Is that true?
>
> If so, I would like to propose that it is added back in to the system. The
> reason is that it makes it possible to easily combine multiple Map systems
> into one. For example, Scarab will take advantage of Turbine's DatabaseMap
> as well as Scarab's at the same time. I don't want to have to modify
> Turbine's and/or copy/paste it into Scarab's. It makes it hard to do
> code-reuse and upgrades.
>
> Ideas/Suggestions? or am I just interpreting things incorrectly?
>
> -jon
>
> --
> http://scarab.tigris.org/ | http://noodle.tigris.org/
> http://java.apache.org/ | http://java.apache.org/turbine/
> http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
> http://www.collab.net/ | http://www.sourcexchange.com/
>
>
>
>
> ------------------------------------------------------------
> 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]