In all generated BaseFooPeer classes, torque does something
like this:

    /** Method to do selects */
    public static Vector doSelect( Criteria criteria ) throws Exception
    {
        criteria.setDbName(getMapBuilder().getDatabaseMap().getName());
        return doSelect (criteria,"com.bice.Cartola", null);
    }

Why is the name of the Criteria being forced? As far as I
understood, the only way to specify a DB other than "default"
was to create a Criteria object with the DB name as a parameter,
and have TR.props configured for a DB with that name. But
this code is forcing the name to something else; is this
correct?

Looking at the cvs log, this change seems to have been
introduced by John McNally with release 1.6 of file

  conf/torque/templates/om/Peer.vm

Mind you, I'm not saying this is wrong; I just don't know
enough to be able to tell if it is right... 8-). Thanks,


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to