MountainClimb / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

JPQL can't support numbered parameter. #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
query = em.createQuery("select m from Member where m.email=?1");
query.setParameter(1,"xxx@xxx.com");
query.getResultList();

no result.

but If  I use 
query = em.createQuery("select m from Member where m.email=:email");
query.setParameter(1,"xxx@xxx.com");
query.getResultList();

some result.

Original issue reported on code.google.com by Jun.T...@gmail.com on 18 Sep 2009 at 1:46

GoogleCodeExporter commented 8 years ago
the second query .
query.setParameter("email","xxx@xxx.com");

ps:I couldn't modify the issue.

Original comment by Jun.T...@gmail.com on 18 Sep 2009 at 1:48

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 25 Sep 2009 at 8:59