> > and it was not possible to switch that database name to something
> > else on the fly. Is this the way things still work, or can I
> > just not declare a database name and set one dynamically when
> > I set up my Criteria objects?
> 
> If you do not use the database name attribute, you can specify the
> database to use in the Criteria.

Ok, this seems to work. Would this piece of code, generated
by torque for a database without a name specified in the
schema file, be a problem?

    public void doBuild ( ) throws Exception
    {
        dbMap = TurbineDB.getDatabaseMap("default");
        //...
    }

Just wondering, because when I did have a name for the schema,
it said instead

        dbMap = TurbineDB.getDatabaseMap("my-old-name");

Thanks,


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]

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

Reply via email to