It doesn't accept && nor ==, but

Query jquery = em.createQuery("SELECT FROM Player WHERE (age = ?2) AND
(name = ?1)");
jquery.setParameter(1, "Zarolho");
jquery.setParameter(2, 33);

works, while:

Query jquery = em.createQuery("SELECT FROM Player WHERE (name = ?1) AND
(age = ?2)");
jquery.setParameter(1, "Zarolho");
jquery.setParameter(2, 33);

doesn't :(

It doesn't make sense, it's the same code I only comment one line or
the other :(

Also,
Query jquery = em.createQuery("SELECT FROM Player WHERE (name
= \"Zarolho\") AND (age = 33)");
works.

-- 
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.

Reply via email to