Hi,
I thought it would give the same error. Though, it was my mistake thinking
that this was like a �bug�. After having a look at the docs, I found this
in the Criteria-howto:
Criteria criteria = new Criteria();
criteria.add(InvoicePeer.COST, 1000, Criteria.GREATER_EQUAL);
Criteria.Criterion criterion = criteria.getCriterion(InvoicePeer.COST);
criterion.and(
criteria.getNewCriterion(
criterion.getTable(),
criterion.getColumn(),
new Integer(5000),
Criteria.LESS_EQUAL )
);
There is also an explanation available, which clearly says why it has to be
done like this.
L
On Fri, Aug 01, 2003 at 11:59:32PM +0800, sailorhero wrote:
> I understand the diffrent .
> But i use the method which you said,It is also wrong.
> Just like I used andDate().
> I use Torque3.0.2.
> Which version has fixed this error?
> code:
> crit1.clear();
> crit1.addDate(BookPeer.TIME,2003,7,1,Criteria.GREATER_EQUAL);
> crit1.and(BookPeer.TIME, new GregorianCalendar(2003, 7, 1),Criteria.LESS_EQUAL);
>
--
Murvai-Buzog�ny L�szl�
T-Sys Kft.
Software developer
Tel.: (06)-1 436-8725
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]