Hi,

I've been looking at Torque for helping me create new (peer & map) objects
for accessing databases. However I seem to be running into some
difficulties..... again :-(

Torque did it's job (VERY) well !! Now I'm trying to use the objects. I can
access them but  I keep getting an exception in BasePeer because I think the
dbmapName is not correctly set. What is the correct procedure to access the
database?  this is what I am naively trying now

    CompanyPeer cP = new CompanyPeer();
      Criteria crit = new Criteria();
        crit.add(cP.COMPANYID, 10);
        Vector Company = cP.doSelect(crit);

And this is where it's going wrong.

        if (PoolBrokerService.getInstance().getDB(criteria.getDbName())
                       .objectDataNeedsTrans() &&
                criteria.containsObjectColumn(criteria.getMapName()))


Thanx

Colin



------------------------------------------------------------
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