Hi,
> Is it better practice to:
>
> 1) leave the standard tables (Visitor,Role) in the default
> DatabaseMap and add my business objects to using a separate
> MapBuilder.
> 2)Or should I create a new MapBuilder that would hold all the
> tables? (standard Turbine tables and my business objects).
You can have multiple MapBuilder classes but you should have only one DatabaseMap
object per database. In other words the different MapBuilder classes add tables
to the same DatabaseMap.
You can have these MapBuilder classes generated automatically for you with the
org.apache.turbine.tools.*OMGenetror classes. Even if you want to create these
classes by hand or just figure out how they work this is a good starting point.
> It seems like #1 would allow for upgrading Turbine. But, can I do
> a join between tables in different "maps"? I am new to the Peer
> model, but it looks like you have to specify the DatabaseMap when
> you create a Criteria (criteria = new Criteria("MyMapName")).
>
> I appreciate your time.
>
> Brian
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]