Hi,
here is my problem:
I need for some matter to execute a query thanks to the executeQuery
method of org.apache.torque.util.BasePeer. But when I first test it an
error occur saying that I have no DataSourceFactory configured for my
database... The fact is that in the same method I succeded in performing
a doSelect ( which also needs the DataSourceFactory as far as I know).
Here is the code...
List list = ContactPeer.doSelectAll(); // that is the doSelect
that works
Criteria criteria = new Criteria();
criteria.add(ContactPeer.CONTACT_ID, 1);
String query = ContactPeer.createQueryString(criteria);
ContactPeer.executeQuery(query); // that is the simple query I
wanted to test...
I don't know where the pb comes from ! Does someone have an idea ?
Thanks,
SaM.
|