Hello,
Can you explain what is wrong?
I see no error in this code ... you will get back a List of
Objects of type XXX if you are in XXXPeer.
Best regards,
Andras.
ron piterman wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]