hi,
I use jpa as my persistence method.But I find I couldn't use
parameter query.
query = entityManager.createQuery("select a from A a where a.email=?
1");
query.setParameter(1,"[email protected]");
list = query.getResultList();
list is empty;
but If I use
query = entityManager.createQuery("select a from A a where
a.email='[email protected]'");
list = query.getResultList();
list isn't empty;
How to use parameter query?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---