excellent,
works a treat now,
many thanks !
-----Original Message-----
From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
Sent: 16 July 2004 14:33
To: OJB Users List
Subject: Re: newbie: using timestamp in criteria, compound primary key
[EMAIL PROTECTED] wrote:
>very similar results using 1.0.0 final:
>
(I really should read mails more thouroughly :-) )
The problem seems to be that you used the wrong method on the criteria
object:
criteria.addGreaterThanField("log_time", t);
This method is intended to be used when comparing *with* a field, thus
the query building will assume that the second argument denotes a field
(i.e. its a string containing the field name).
Instead use
criteria.addGreaterThan("log_time", t);
and you should be fine.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]