db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ron piterman <ron.piter...@gmx.net>
Subject Criteria parses to "SELECT FROM .."
Date Wed, 14 Jul 2004 07:11:44 GMT
Hi,
I use the following code to query (inside the Peer class, so the 
constants are class constants...)
   
        Criteria c = new Criteria();
        c.add(CATEGORIES_ID, id);
        c.add(LANGUAGE_ID, language.getLanguagesId());
        try {
            System.out.println(createQueryString(c));
            return  doSelect(c);
        }
        catch (TorqueException ex) {
            ex.printStackTrace();
            return EMPTY;
        }
    }
   
And it parses to :

SELECT  FROM categories_description WHERE 
categories_description.CATEGORIES_ID=20 AND 
categories_description.LANGUAGE_ID=0

Anyone a clue?

Cheers,
Ron


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message