Another way which is more selective in the output

just add this line to your code:

System.out.println(criteria.toString());

to obtain the readable form of criteria to the standard output.
Note that this method works only if you have a standard output for your
Tomcat.
You can use this method to debug any other internal state of your
application (remember to remove these statement when you go in production
state)

bye, Andrea

----- Original Message -----
From: "Andrea Papotti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 4:32 PM
Subject: Re: Criteria


> >
> > Criteria criteria = new Criteria();
> > criteria.add(key,value(Sysdate),criteria.LESS_THAN);
> > ClassPeer.doSelect(criteria);
> >
> > But i don't get the result.
>
> just one hint (not a solution)
>
> try to enable debug of SQL statements generated by Turbine
>
> 'TurbineResources.properties' file
>
> services.LoggingService.sql.level = DEBUG
>
> so you can check 'Turbine.log' file to see the SQL that is executed an
maybe
> find the error (IMHO it should be a date format mismatch)
>
> Bye, Andrea
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to