I have this simple query:
Query query = pm.newQuery(Contact.class);
query.setFilter("accountKey == accountKeyParam && lastActionDate <
lastActionDateParam");
query.declareParameters("com.google.appengine.api.datastore.Key
accountKeyParam, Date lastActionDateParam");
query.declareImports("java.util.Date");

public class Contact {
 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
@Persistent
   private Date latestActionDate;

// ...
}

When I run this query I get this exception:
javax.jdo.JDOUserException: Invalid import declaration :
java.util.Date
        at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException
(NucleusJDOHelper.java:375)
        at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:275)

Any ideas why?
Thanks

--~--~---------~--~----~------------~-------~--~----~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to