cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank" <faro...@hotmail.com>
Subject help - mysql date search
Date Wed, 07 Mar 2007 16:06:31 GMT
Hello,

I cannot get cayenne to l imit records based on a mysql date field.
I tried two variations below.
The date is stored as datetime and has a date & time value.
I only need to limit records based on date.
What am I doing wrong?
//Expression qualifier = ExpressionFactory.matchDbExp(Bedlog.ADMIT_REQUEST_DATE_PROPERTY,
requestDate);

Expression qualifier = ExpressionFactory.betweenExp(Bedlog.ADMIT_REQUEST_DATE_PROPERTY, requestDate,requestDate);

query.andQualifier(qualifier);



Regards,

Frank

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message