Try also with two Date fields - the second keeping the year/month/date
part only
Something like:
// Entity
@Persistent
private Date birthDate;
@Persistent
private Date birthDateOnly;
public void setBirthDate(Date birthDate) {
this.birthDate = birthDate;
if (birthDate != null) {
this.birthDateOnly = new Date(birthDate.getYear(),birthDate.getMonth
(),birthDate.getDate()); }
}
}
// query
List<Object...> li;
Query query = pm.newQuery(Object...class);
query.setFilter("birthDateOnly == birthDateParam");
query.declareParameters("Date birthDateParam");
query.declareImports("import java.util.Date");
try {
li = (List<Object..>) query.execute(new Date(100,10,15));
}
...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---