> query.declareParameters("Long bind_pocId, Date bind_startDate, Date
> bind_endDate");
This is correct. However, I personally prefer the shorter form, where
instead of using filter "column == alias" along with
query.declareParameters("Type alias") you just use filter "column
== :alias" (note the colon before the alias name). Your query can be
rewritten as follows:
Query query = pm.newQuery(PocVacationSchedule.class);
query.setFilter("pocId == :pi && startDate == :sd && endDate == :ed");
List<PocVacationSchedule> rulesList = (List<PocVacationSchedule>)
query.execute(pocId, startFrom, endFrom);
--
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.