atom feed2 messages in com.googlegroups.google-appengine-javaRe: [appengine-java] Query requires 1...
FromSent OnAttachments
MujtabaJun 18, 2009 12:16 am 
Mujtaba HassanJun 18, 2009 1:06 am 
Subject:Re: [appengine-java] Query requires 1 parameters, yet 2 values have been provided WHY ?
From:Mujtaba Hassan ("aba@gmail.com)
Date:Jun 18, 2009 1:06:01 am
List:com.googlegroups.google-appengine-java

Problem Resolved By Following Way !!

query.declareParameters("java.util.Date startDateTime, java.util.Date endDateTime");

On Thu, Jun 18, 2009 at 12:17 PM, Mujtaba <abat@gmail.com> wrote:

Query requires 1 parameters, yet 2 values have been provided. WHY ??

Doew this Query does not requires two parameters.

javax.jdo.Query query= pm.newQuery(AccountingTransactionMaster.class); query.setFilter("dateTime >= startDateTime && dateTime <= endDateTime"); query.declareParameters("Date startDateTime"); query.declareParameters("Date endDateTime"); (java.util.List<AccountingTransactionMaster>)query.execute (startDate, endDate);