4 Replies Latest reply on Mar 7, 2008 10:50 AM by Mehdi Ghermezkon

    JPQL Like Statement

    Mehdi Ghermezkon Newbie

      hi
      how to send parameter to like statement?

      i'm use this syntax but it's error:
      List test = em.createQuery("select t from test t where t.uid like ':uid%'").setParameter("uid" , "1").getResultList();

      error:
      Syntax error: :uid parameter not found

      thanks