that's pretty much how it works. i always add the following method to all
my Peer classes (not the base peer class)
public static List doSelectAll() throws Exception
{
Criteria crit = new Criteria();
return doSelect(crit);
}
-----Original Message-----
From: brian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: using org.apache.turbine.util.db.Criteria
Hello,
I am using the class org.apache.turbine.util.db.Criteria and I am
trying to do a "select * from <tablename>". As I understand, the article
"High Velocity Web Application Design" said to use :
List workqueList = null;
Criteria criteria = new Criteria();
workqueList = WorkquePeer. doSelect(criteria);
context.put("workques", workqueList);
Which should be the same as "select * from Workque" , if the om has been
setup correctly, but when I print out the actual criteria used, it
displays "the criteria used is: Criteria::Current Query SQL (may not be
complete or applicable): SELECT FROM."
I may missing it, but I don't see this specified in the turbine-API for
org.apache.turbine.util.db.Criteria, am I missing something here? Thank
you for the assistance.
Brian Allen
Brian Allen
Software Engineer
Westpole,Inc.
(734)995-6390x19
[EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]