Re: no suitable driver

2009-12-02 Thread wzhao6...@gmail.com
There may have been many syntax changes in Torque 3.3 from Torque 1.0, you may want to look into this. I think you need to specify database server and user/password information in the build.properties file (at least in our set up). Try to download the torque-3.3-gen package, and run a ant -f

How to strip off selected columns from a criteria object

2010-05-05 Thread wzhao6...@gmail.com
Hi there, I need to strip off all the selected columns (getSelectedColumns(), and getAsColumns()) from a criteria object, is there a way for me to do that? For examples: Criteria criteria = new Criteria(); criteria.addJoin(PermissionPeer.PERMISSION_ID,RolePermissionPeer.PERMISSION_ID);

Re: How to strip off selected columns from a criteria object

2010-05-10 Thread wzhao6...@gmail.com
a list of OM objects; Thanks again! David On Thu, May 6, 2010 at 8:39 AM, Thomas Vandahl t...@apache.org wrote: On 05.05.10 23:28, wzhao6...@gmail.com wrote: Hi there, I need to strip off all the selected columns (getSelectedColumns(), and getAsColumns()) from a criteria object

Re: How to strip off selected columns from a criteria object

2010-05-21 Thread wzhao6...@gmail.com
(); criteria.getSelectColumns().clean(); both criteria and criteriaClone have empty selectcolumn list. Thanks, David On Mon, May 10, 2010 at 1:02 PM, Thomas Vandahl t...@apache.org wrote: Hi Dave, wzhao6...@gmail.com schrieb: Thanks for your reply. But what I need to deal with is that: I have

how to contruct an object extending com.workingdogs.village.Record from a Record

2010-05-21 Thread wzhao6...@gmail.com
Hi there, I need to create a class, say BetterRecord, that extends com.workingdogs.village.Record. I couldn't figure out how to construct a BetterRecord object from an existing com.workingdogs.village.Record. public class BetterRecordextends Record { public RetterRecord (Record r) {

how to retrieve all the tables (tablemap) in the torque database

2011-10-18 Thread wzhao6...@gmail.com
Hi there, I'm trying to retrieve all the tables in the default database specified in schema.xml file. I tried: DatabaseMap dm = Torque.getDatabaseMap(); dm.initialize(); System.out.println(dm.getTables().length); but only a subset of tables are returned, am I doing something wrong here. Torque